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
| define(function(require, exports, module){ | |
| var test = {}; | |
| var _ = require('underscore'), | |
| _loggers = {}, | |
| _levelNames = { | |
| 0: 'NOTSET', | |
| 1: 'TRACE', | |
| 2: 'DEBUG', | |
| 3: 'INFO', |
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
| define([ | |
| ], function(){ | |
| var months = ['January', 'February', 'March', 'April', 'May', | |
| 'June', 'July', 'August', 'September', 'October', | |
| 'November', 'December']; | |
| // All values assumed to be ISO 8601 and in UTC | |
| // 2013-08-29T14:29Z |
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
| from timeit import Timer | |
| from itertools import islice | |
| from itertools import cycle | |
| def add_list_small(target, source): | |
| target += source | |
| def add_list_large(target, source): |
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
| #!/bin/bash | |
| # install rvm | |
| aptitude install -y curl libz-dev | |
| curl -L https://get.rvm.io | bash -s stable --ruby | |
| source /usr/local/rvm/scripts/rvm | |
| gem install fpm | |
| # git clone | |
| aptitude install -y git |
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
| from itertools import cycle, izip | |
| import operator import add | |
| fizz = cycle(['', '', 'fizz']) | |
| buzz = cycle(['','','','','buzz']) | |
| r = izip(fizz, buzz) | |
| index = 1 | |
| while index < 101: | |
| print("{}: {}".format(index, add(*r.next()))) | |
| index = index + 1 |
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
| # http://docs.neo4j.org/chunked/snapshot/rest-api-traverse.html#rest-api-traversal-returning-nodes-below-a-certain-depth | |
| try: | |
| import simplejson as json | |
| except ImportError: | |
| import json | |
| from neo4jrestclient import client | |
| from neo4jrestclient.request import Request | |
| from neo4jrestclient.request import NotFoundError |
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
| /* | |
| smtpd.js is SMTP server written for node.js | |
| MIT License | |
| */ | |
| var tcp = require('tcp'); | |
| var sys = require('sys'); | |
NewerOlder