var object = {};
_.extend(object, Backbone.Events);
var en = function(name){
console.log('hello '+name);
}
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
"use strict"; | |
//natural numbers. | |
function* naturalNumbers(){ | |
var n = 1; | |
while (true){ | |
yield n++; | |
} | |
} |
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
//algoritmo de la gente normal que busca películas en internet | |
if (pelicula.release_date>(now.substract("2 months") ) ) { | |
download.from("thepiratebay") | |
} | |
else { | |
if (pelicula.is.in("netflix")) { | |
watch.it.in("netflix") | |
} | |
else { | |
download.from("thepiratebay") |
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
# Store data in /usr/local/var/mongodb instead of the default /data/db | |
storage: | |
dbPath: "/usr/local/var/mongodb" | |
journal: | |
enabled: false | |
# Append logs to /usr/local/var/log/mongodb/mongo.log | |
systemLog: | |
destination: file |
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
//https://www.npmjs.com/package/json-stringify-safe | |
var stringify = require("json-stringify-safe"); | |
var a = { | |
type: "Son", | |
name: "John" | |
}; | |
var b = { | |
type: "father", |
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 sift = require("sift"); | |
// var torender = [ { keypath: 'employee', | |
// template: '{{first_name}} {{ last_name }}' }, | |
// { keypath: 'employee.division', template: '{{division}}' }, | |
// { keypath: 'certificate_type', | |
// template: '{{#peoplesoft_id}}{{peoplesoft_id}}: {{/peoplesoft_id}}{{title}}' } ]; | |
var objects = [ | |
{n: 3}, |
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
[ | |
{ | |
"caption": "Reg Replace: Google Docs to Ractive", | |
"command": "reg_replace", | |
"args": {"replacements": [ | |
"google_docs_remove_html", | |
"google_docs_remove_ractive_rows", | |
"unescape_html_tags_for_markup_open", | |
"unescape_html_tags_for_markup_close" | |
]} |