View bower.json
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
{ | |
"name": "backbone-react-example", | |
"version": "1.0.0", | |
"authors": [ | |
"Siedrix <Siedrix@gmail.com>" | |
], | |
"description": "backbone react todo list", | |
"license": "MIT", | |
"dependencies": { | |
"backbone": "~1.1.2", |
View bower.json
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
{ | |
"name": "url-patterns", | |
"version": "0.0.0", | |
"authors": [ | |
"Siedrix <Siedrix@gmail.com>" | |
], | |
"license": "MIT", | |
"ignore": [ | |
"**/.*", | |
"node_modules", |
View add-register.py
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
import redis | |
import json | |
register = { | |
"src" : "nodebots-dev.mx", | |
"target" : "http://127.0.0.1:4500/" | |
} | |
registerAsStr = json.dumps(register) |
View backbone.widget.js
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
Backbone.Widget = function() { | |
this.initialize.apply(this, arguments); | |
}; | |
_.extend(Backbone.Widget.prototype, Backbone.Events, { | |
initialize : function(){}, | |
}); | |
Backbone.Widget.extend = Backbone.View.extend; |
View PHP rand string
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)]; | |
} | |
View wp-app.js
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'); | |
}); |
View App.js
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); |
View Sample app
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 : { |
View Output
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. |
View key.json
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;"} } | |
] |
OlderNewer