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
| step = require 'step' | |
| mongoose = require 'mongoose' | |
| Schema = mongoose.Schema | |
| schemas = {} | |
| schemas.Foobar = new Schema | |
| name : { type: String, trim: true, required: true, unique: true } | |
| connection = mongoose.createConnection 'mongodb://127.0.0.1:27017/sandbox' | |
| models = {} |
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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <svg width="100%" height="100%"viewBox="0 0 50 50"></svg> | |
| </body> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
| <script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore.js"></script> | |
| <script type="text/javascript" src="http://documentcloud.github.com/backbone/backbone.js"></script> | |
| <script type="text/javascript"> |
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
| def factorial_sumofdigits(n): | |
| val = 1 | |
| for i in xrange(1,n+1): | |
| val *= i | |
| return sum([int(c) for c in str(val)]) | |
| for i in xrange(1,10000): | |
| f = factorial_sumofdigits(i) | |
| print i, f | |
| if f == 8001: |
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
| #!/usr/bin/python | |
| # script to tell us when the lollapalooza front page has changed, presumably to get ticket deals | |
| import urllib2 | |
| import time | |
| import md5 | |
| import smtplib | |
| import random | |
| from email.mime.text import MIMEText |
NewerOlder