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 randString(){ | |
$n = 20; | |
$characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
$string = ""; | |
$l = strlen($characters); | |
for ($i = 0; $i < $n; $i++) { | |
$string .= $characters[rand(0, $l)]; | |
} | |
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 WebSocket = require('faye-websocket'), | |
http = require('http'), | |
express = require('express'); | |
var app = express.createServer() | |
app.get('/', function(req, res){ | |
res.send('Hello World'); | |
}); |
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 requirejs = require('requirejs'); | |
requirejs.config({ | |
baseUrl: 'scripts', | |
nodeRequire: require | |
}); | |
requirejs(['bar'], | |
function ( bar ) { | |
console.log('bar: ', bar); |
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(global){ | |
var app = global.app = new Loki(); | |
Class(Loki.Views, 'ListView').inherits(Loki.View)({ | |
templateUrl : 'templates/main.html', | |
templateMap : { | |
slug : '#description', | |
link : '#more a[href=/link/{:id}]' | |
}, | |
prototype : { |
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
/bdpn-node$ jitsu deploy | |
info: Welcome to Nodejitsu siedrix6 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in app.js | |
warn: Local version appears to be old. | |
warn: Your package.json version will be incremented for you automatically. | |
warn: About to write /home/siedrix/bdpn-node/package.json | |
warn: Using '*' as version for dependencies may eventually cause issues. | |
warn: Please use specific versions for dependencies to avoid future problems. |
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
[ | |
{ "keys": ["ctrl+u", "ctrl+i"], "command": "insert_snippet", "args": {"contents": "console.log('$SELECTION',$SELECTION);"} }, | |
{ "keys": ["ctrl+u", "ctrl+o"], "command": "insert", "args": {"characters": "console.log();"} }, | |
{ "keys": ["ctrl+u", "ctrl+p"], "command": "insert", "args": {"characters": "debugger;"} } | |
] |
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
[ | |
{ "keys": ["ctrl+u", "ctrl+i"], "command": "insert_snippet", "args": {"contents": "console.log('$SELECTION',$SELECTION);"} }, | |
{ "keys": ["ctrl+u", "ctrl+o"], "command": "insert", "args": {"characters": "console.log();"} }, | |
{ "keys": ["ctrl+u", "ctrl+p"], "command": "insert", "args": {"characters": "debugger;"} } | |
] |
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
git log --pretty="%H" --author="Siedrix" --no-merges | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq -c | sort -r > files.txt |
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
[if !wget -> brew install wget] | |
wget https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -O ~/.git-completion | |
source ~/.git-completion |
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
npm install | |
node server.js | |
node swarm [usersSpawnPerSecond] [MessagesSendPerUserPerSecond] |
OlderNewer