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
#!/usr/bin/env node | |
/** | |
* Version up this package. | |
*/ | |
"use strict"; | |
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
doSomething('foo') | |
doSomething('foo','bar') | |
doSomething('foo','bar', 'baz'); | |
doSomething('foo','bar', {verbose:true}); | |
doSomething('foo','bar', function done(){/*...*/}) | |
doSomething('foo','bar', {verbose:true}, function done(){/*...*/}) |
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
$ bower install jquery |
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
{ | |
"TITLE": "オクニシタカドットコム", | |
"WELCOME_MESSAGE": "オクニシタカドットコムへようこそ" | |
} | |
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
"dependencies":{ | |
"async":"*", | |
"glob":"latest" | |
} |
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
$ cp src/*.html dest |
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
// nodeunitのテストケース | |
exports.setUp = function(done){ | |
// console.logを何もしない関数と置き換える | |
console.log = function noop() { | |
} | |
done(); | |
}; |
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
// Mysql connect config. | |
var config = { | |
user: 'root', | |
password: 'my_password', | |
host: 'localhost', | |
database: 'my_db' | |
}; | |
// Get spec for connected database | |
mysqlspec(config, function (err, schema) { | |
console.log("schema=" + JSON.stringify(schema, null, 4)); |
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
# Instal coz via npm | |
$ npm install coz -g |
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
#!/bin/env node | |
var exec = require('child_process').exec, | |
fs = require('fs'), | |
path = require('path'), | |
here = process.cwd(); | |
(function (bin_name) { | |
var resolve = path.resolve, |
OlderNewer