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
| { | |
| "name": "curso", | |
| "version": "0.0.1", | |
| "dependencies": { | |
| "express.io": "~1.1.13" | |
| } | |
| } |
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
| this.httpServer.get('/files/download/:organization/course/:course/class/:class', function(req, res){ | |
| var zip = zipstream.createZip({ level: 1 }); | |
| res.setHeader('Content-disposition', 'attachment; filename=' + req.params.course); | |
| zip.on('data', function(data){ | |
| res.write(data); | |
| }); | |
| Files.find({ |
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
| siedrixs-MacBook-Pro:bdpn-node siedrix$ jitsu deploy --debug | |
| info: Welcome to Nodejitsu siedrix6 | |
| info: jitsu v0.11.4, node v0.8.14 | |
| info: It worked if it ends with Nodejitsu ok | |
| info: Executing command deploy | |
| info: Analyzing application dependencies in app.js | |
| debug: { method: 'GET', | |
| debug: uri: 'https://api.nodejitsu.com/apps/siedrix6/bdpn', | |
| debug: headers: | |
| debug: { Authorization: '*********************************', |
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 socket = io.connect('http://192.168.1.118:3500'); | |
| console.log('jump', io, socket); | |
| socket.on('jump', function(data){ | |
| window.location = 'http://192.168.1.118:3500/?page=' + data.url; | |
| }); | |
| //dentro del folder de public |
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
| npm install | |
| node server.js | |
| node swarm [usersSpawnPerSecond] [MessagesSendPerUserPerSecond] |
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
| [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 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
| 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 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
| [ | |
| { "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 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
| [ | |
| { "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 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
| /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. |