#Yoeman, bower, grunt.js cli tool usage
Installation, node.js
and npm
are required.
npm install -g yo grunt-cli bower
compass is a sass compoments of ruby, and you can install compass
by rubygem
gem install compass
var exec = require('child_process').exec; | |
var set = function (app) { | |
app.post('/deploy', function (req, res) { | |
var feedback; | |
var branch = 'master'; | |
try { | |
feedback = JSON.parse(req.body.payload); |
fs = require('fs'); | |
var sandbox = {}; | |
vm.runInNewContext(data, sandbox); | |
socket.on('data',function(data){ | |
// after proccessed data, left the callback function name. | |
callback = JSON.parse(fs.readFileSync('./' + data)); | |
callback.fn(); | |
}); |
# 1. Create a new file at /Library/LaunchDaemons/org.mongo.mongod.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.mongo.mongod</string> | |
<key>RunAtLoad</key> | |
<true/> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.redis.redis-server</string> | |
<key>Program</key> | |
<string>/usr/local/bin/redis-server</string> | |
<key>ProgramArguments</key> |
nodemailer = require 'nodemailer' | |
fs = require 'fs' | |
_sendMail = (email, code) -> | |
contentHtml = [ | |
"親愛的 Node.js 台灣社群朋友," | |
"<p>" | |
"由於你的支持,社群活動才能夠得以持續進行,因此特別送上 JSDC 邀請碼," | |
"<br/>" | |
"<br/>" |
$lolcommits --disable | |
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib | |
Referenced from: /usr/local/bin/mogrify | |
Reason: image not found | |
/Library/Ruby/Gems/1.8/gems/mini_magick-3.5.0/lib/mini_magick.rb:26:in `image_magick_version': private method `split' called for nil:NilClass (NoMethodError) | |
from /Library/Ruby/Gems/1.8/gems/mini_magick-3.5.0/lib/mini_magick.rb:34:in `valid_version_installed?' | |
from /Library/Ruby/Gems/1.8/gems/lolcommits-0.4.3/lib/lolcommits/configuration.rb:137:in `valid_imagemagick_installed?' | |
from /Library/Ruby/Gems/1.8/gems/lolcommits-0.4.3/bin/lolcommits:43:in `die_on_fatal_conditions!' |
var Speakers = [ | |
{ | |
"name": "Kuro Hsu", | |
"job": "", | |
"topic": "Optimizing Your Mobile Web Apps." | |
}, | |
{ | |
"name": "Paul Li", | |
"job": "", | |
"topic": "樸實與浮華 (Plain and Vanity)" |
#Yoeman, bower, grunt.js cli tool usage
Installation, node.js
and npm
are required.
npm install -g yo grunt-cli bower
compass is a sass compoments of ruby, and you can install compass
by rubygem
gem install compass
var express = require('express'), | |
routes = require('./routes'), | |
http = require('http'), | |
server; | |
var app = express(); | |
app.configure(function(){ | |
app.set('port', process.env.PORT || 3000); | |
app.set('views', __dirname + '/views'); |
var http = require('http') | |
http.createServer(function (req, res) { | |
(function () { | |
res.write('hello world \n'); | |
setTimeout(arguments.callee, 500); | |
})(); | |
}).listen(3000, '127.0.0.1'); |