This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var url = require('url'); | |
var fs = require('fs'); | |
var path = require('path'); | |
/*var targetURL = process.argv[2] || null;*/ | |
var targetURL = 'http://www.stust.edu.tw/'; | |
if (!targetURL) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: Cannot read property 'theFile' of undefined | |
at C:\Users\Kang\WebstormProjects\ftpserver\server.js:25:26 | |
at Layer.handle [as handle_request] (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\layer.js:82:5) | |
at next (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\route.js:110:13) | |
at Route.dispatch (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\route.js:91:3) | |
at Layer.handle [as handle_request] (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\layer.js:82:5) | |
at C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\index.js:267:22 | |
at Function.proto.process_params (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\index.js:321:12) | |
at next (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\router\index.js:261:10) | |
at expressInit (C:\Users\Kang\WebstormProjects\ftpserver\node_modules\express\lib\middleware\init.js:23:5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Post() { | |
//example 1 | |
this.getTen = function(){} | |
} | |
//example 2 | |
Post.prototype.getTen = function(){} | |
//example 3 |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const JackyHuang = { | |
username: "Jacky Huang", | |
gender: "Male", | |
birthday: "1992-01-24", | |
skill: { | |
front_end: ['HTML', 'CSS', 'JavaScript', 'jQuery', 'SASS', 'Bootstrap', 'Vue', 'React', 'ES6', 'RWD', 'Redux'], | |
back_end: ['NodeJS', 'Express', 'Mocha'], | |
experiences: [ | |
'Familiar with git version control', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const portfolio = [ | |
{ | |
name: "Facebook messenger bot using AWS Lamba and API Gateway", | |
url: "https://www.facebook.com/events/724852200951265/", | |
repo: "https://github.com/goodideas-studio/facebook-messenger-bot-using-aws" | |
}, { | |
name: "uni-order-no", | |
description: "Unique order no generator", | |
repo: "https://github.com/jacky810124/uni-order-no" | |
}, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const 404 = 'Page Not Found' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Axure RP 7.0注册码 | |
用户名:axureuser | |
序列号:8wFfIX7a8hHq6yAy6T8zCz5R0NBKeVxo9IKu+kgKh79FL6IyPD6lK7G6+tqEV4LG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class State { | |
approve() { | |
throw 'Should override this function' | |
} | |
reject() { | |
throw 'Should override this function' | |
} | |
} | |
class Verifying extends State { |
OlderNewer