I hereby claim:
- I am jerem on github.
- I am jerem (https://keybase.io/jerem) on keybase.
- I have a public key whose fingerprint is D0EB C74F 9940 21E5 E82B BCCA 42A1 BCF7 6298 4EE4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
letters = ['A', 'B', 'C'] | |
nb_letters = len(letters) | |
total = 100 | |
step = total / nb_letters | |
index = 0 | |
results = [] | |
for i in range(1, total + 1): | |
if index == nb_letters: | |
index -= 1 |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import datetime | |
from ftplib import FTP | |
from BeautifulSoup import BeautifulSoup | |
_multilines_re = re.compile(r'<([a-z0-9\-]+)\s+(.*?)\s+</\1>', re.S | re.M) | |
_singleline_re = re.compile(r'<(product|version)>\s+(.+)$', re.M) |
#!/usr/bin/env python | |
import sys | |
import os | |
if __name__ == '__main__': | |
module = __import__(sys.argv[1]) | |
path = module.__file__.replace('.pyc', '.py') | |
if os.path.basename(path) == '__init__.py': | |
path = os.path.dirname(path) | |
print 'Opening "%s"' % path |
var mongoose = require('mongoose') | |
, Schema = mongoose.Schema | |
mongoose.connect('localhost', 'testing_tojsonWithVirtuals'); | |
var PersonSchema = new Schema({ | |
name : String | |
, age : Number | |
}); |
var mongoose = require('mongoose'); | |
var TestSchema = new mongoose.Schema({ | |
a : Array, | |
s : String, | |
n : Number | |
}); | |
var Test = mongoose.model('Test', TestSchema); | |
mongoose.connection.once('open', function() { |
#!/usr/bin/env python | |
import gevent.monkey | |
gevent.monkey.patch_all() | |
import sys | |
import optparse | |
import gevent | |
from boto.s3.connection import S3Connection |
# Include the Dropbox SDK libraries | |
import httplib | |
from dropbox import client, rest, session | |
# Proxy settings | |
HTTP_PROXY_HOST = '127.0.0.1' | |
HTTP_PROXY_PORT = 8888 | |
# Get your app key and secret from the Dropbox developer website | |
APP_KEY = 'XXXXX' |
sudo find /var/log -type f -exec sh -c 'echo -n "" > "{}"' \; |
DDR Version 1.00 20120529 | |
In | |
DDR3 | |
freq | |
300MHz | |
config state | |
pctl | |
phy | |
mem |