I hereby claim:
- I am idawhale on github.
- I am idawhale (https://keybase.io/idawhale) on keybase.
- I have a public key ASCcHyYgBkp9Buq2z3sUIEBfb6ELTioam5xSpm9xBAKHswo
To claim this, I am signing this object:
mongodump --db=<old_db_name> --collection=<collection_name> --out=data/ | |
mongorestore --db=<new_db_name> --collection=<collection_name> data/<db_name>/<collection_name>.bson |
from Tkinter import * | |
def ablend(a, fg, bg): | |
return ((1-a)*fg[0]+a*bg[0], | |
(1-a)*fg[1]+a*bg[1], | |
(1-a)*fg[2]+a*bg[2]) | |
root = Tk() | |
num=8.0 |
var mention_id = 620996; | |
db.mentionStats.aggregate([ | |
{ $match: {'mention_id': mention_id}}, | |
{ $group: {'_id': { | |
'year': { '$year': "$verification_date" }, | |
'month': { '$month': "$verification_date" }, | |
'day': { '$dayOfMonth': "$verification_date" } | |
}, | |
'retweets': { $last: "$retweets" }}}, |
I hereby claim:
To claim this, I am signing this object:
import logging | |
logging.basicConfig(level=logging.DEBUG, format='[%(levelname)s] %(processName)s:%(threadName)-12s %(name)s:%(lineno)-7d (%(asctime)s) %(message)s', ) | |
logger = logging.getLogger('MdnMonReport') | |
def test(): | |
try: | |
print('holder') | |
raise Exception('We got an exception') | |
except Exception as e: |
// increment.gs | |
function increment() { | |
var s = SpreadsheetApp.getActive().getSheetByName('Sheet1').getRange('A1'); | |
var cur = parseInt(s.getValue()); | |
s.setValue(cur + 1); | |
} |
import sys | |
import ConfigParser | |
import paramiko | |
import functools | |
args = sys.argv | |
zconfig = ConfigParser.RawConfigParser() | |
zconfig.read(args[1]) | |
compconfig = ConfigParser.RawConfigParser() |
#!/usr/bin/env python | |
#(@)dddns.py by Jan-Piet Mens, February 2012 | |
import dns.resolver | |
import dns.e164 | |
from dns.exception import DNSException | |
import sys, re | |
import optparse | |
def enum(aus, verbose): |