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
| Backbone.Widget = function() { | |
| this.initialize.apply(this, arguments); | |
| }; | |
| _.extend(Backbone.Widget.prototype, Backbone.Events, { | |
| initialize : function(){}, | |
| }); | |
| Backbone.Widget.extend = Backbone.View.extend; |
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
| import redis | |
| import json | |
| register = { | |
| "src" : "nodebots-dev.mx", | |
| "target" : "http://127.0.0.1:4500/" | |
| } | |
| registerAsStr = json.dumps(register) |
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": "url-patterns", | |
| "version": "0.0.0", | |
| "authors": [ | |
| "Siedrix <[email protected]>" | |
| ], | |
| "license": "MIT", | |
| "ignore": [ | |
| "**/.*", | |
| "node_modules", |
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": "backbone-react-example", | |
| "version": "1.0.0", | |
| "authors": [ | |
| "Siedrix <[email protected]>" | |
| ], | |
| "description": "backbone react todo list", | |
| "license": "MIT", | |
| "dependencies": { | |
| "backbone": "~1.1.2", |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| watch: { | |
| scripts: { | |
| files: ['test/*.js', 'lib/*.js'], | |
| tasks: ['mochaTest'], | |
| options: { | |
| spawn: true, | |
| } | |
| } |
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 level = require('level'); | |
| var db = level('./chelajs-demo'); | |
| db.put("foo", "bar", function () { | |
| console.log("foo has been saved"); | |
| }); |
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'); | |
| var app = express(); | |
| app.get('/', function (req, res) { | |
| res.send('Express.js Hello world'); | |
| }); | |
| app.listen(8000); |
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 Grid = function(columns, rows) { | |
| columns = columns || 20; | |
| rows = rows || 20; | |
| var self = {}; | |
| self.element = $('<table class="grid"></table>'); | |
| for(var r = 0; r < rows; r++) { | |
| var row = $('<tr></tr>'); | |
| for(var c = 0; c < columns; c++) { |
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.io'); | |
| var server = express(); | |
| var mensajes = []; | |
| var respuestas = []; // <--------- | |
| server.get('/', function (req, res) { | |
| res.send('Hello World'); | |
| }); |
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" | |
| } | |
| } |