原创 nodejs 寫爬蟲爬取最近上映電影數據

直接上代碼:這是http模塊 'use strict' //引入內建和第三方模塊 const https = require("https") const url = require("url") const Promise = requ

原创 重視前端技術從node.js開始

樓主跟着大家一步一步開始學習node.js!!!!!!求推薦好書啊 var http = require("http"); http.createServer(function(request,response){ response

原创 react技術棧+完整框架demo

https://github.com/cbbfcd/react-javascript.git

原创 深入javaScript--一些有趣的技巧、閉包

<html> <head> <title>js的一些技巧性代碼整理</title> </head> <body> <div id="content"></div> <div> <ul id="myUl"> </

原创 google拓展應用

google拓展程序小demo 參考文獻 http://blog.csdn.net/sysuzjz/article/details/51648163 http://open.chrome.360.cn/extension_dev

原创 apache nifi client with es6

https://github.com/cbbfcd/nifi-client.git

原创 常用工具代碼總結

1.xml 字符串處理 public static String htmlEncode(int i){ if (i=='&') return "&"; else if (i=='<') return "<";

原创 react+redux+router+webpack+immutable.js框架

https://github.com/cbbfcd/react-router-redux.git 直接可以使用,好評加星

原创 常用webservice註解

怕忘了,mark一些。 @WebService     1、serviceName: 對外發布的服務名,指定 Web Service 的服務名稱:wsdl:service。缺省值爲 Java 類的簡單名稱 + Service。(字

原创 Vagrant+virtualbox+centos 搭建linux虛擬機

vagrant author : huangteng Ruby寫的一個輕巧的構建虛擬環境的工具。就目前而言,我覺得除了Apache NIFI項目需要外,還有別的兩個重要的用途: 構建一個統一的環境,這個環境也可以是像生產

原创 nodejs筆記(1)--事件模型

events是node.js 最重要的模塊,events模塊只提供了一個對象events.EventEmitter,EventEmitter 的核心是事件發射與事件監聽器。 Node.js中大部分的模塊,都繼承自Event模塊。

原创 javascript深度解析2--this

this this的作用是隱式的傳遞一個上下文對象。使得我們的代碼更加的優雅。 function foo(){ console.log(this.name.toUpperCase()); } var obj = {

原创 python簡單爬蟲,Beautifulsoup4解析,爬取直播吧部分熱門新聞及鏈接

import urllib.request from bs4 import BeautifulSoup # 爬取直播吧新聞 url = "http://news.zhibo8.cc/zuqiu/" def __getPage(url)

原创 python+beautifulsoup爬取豆瓣電影TOP250

import urllib.request from bs4 import BeautifulSoup import re # 豆瓣電影top250 def __getHtml(): data = [] pageNum = 1

原创 javaScript深度解析(1)--作用域

作用域 若要轉載,請著名出處。 編程語言最基本的功能就是存儲變量中的值,並可以對其進行修改。 爲了能夠存儲變量,並找到它們,就需要一套嚴密的規則,這套規則其實 就是作用域。 讓我們先了解一下編譯原理 javaScript(文章