This file contains hidden or 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
# | |
# Disable MAC OS X screenshot ( Shift + Cmd + 4, Space ) shadow | |
# | |
# ref: http://osxdaily.com/2011/05/23/disable-shadow-screen-shots-mac/ | |
# | |
defaults write com.apple.screencapture disable-shadow -bool true | |
killall SystemUIServer | |
# To revert back to default use : |
This file contains hidden or 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 express = require('express'), | |
app = express(), | |
http = require('http'), | |
server = http.createServer(app), | |
io = require('socket.io').listen(server); | |
app.get('/', function(req, res) { | |
res.send('<!doctype html> \ | |
<html> \ | |
<head><meta charset="utf-8"></head> \ |
This file contains hidden or 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 express = require('express'), | |
app = express(), | |
http = require('http'), | |
server = http.createServer(app), | |
users = 0, | |
MemoryStore = express.session.MemoryStore, | |
sessionStore = new MemoryStore(), | |
parseCookie = require('cookie').parse, | |
utils = require('connect').utils, | |
io = require('socket.io').listen(server); |
This file contains hidden or 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() { | |
var modules = {}, cache = {}; | |
if (this.require && this.require.modules) { | |
modules = this.require.modules; | |
} | |
var require = function(name, root) { | |
var path = expand(root, name), indexPath = expand(path, './index'), module, fn; | |
module = cache[path] || cache[indexPath]; |
This file contains hidden or 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 express = require('express') | |
, passport = require('passport') | |
, sessionStore = new express.session.MemoryStore() | |
, app = module.exports = express.createServer() | |
, nowjs = require('now'); | |
app.configure( function () { | |
app.use(express.bodyParser()); |
NewerOlder