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
javascript:(function(){var jq = document.createElement('script');jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(jq);jQuery.noConflict();})() |
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
javascript:(function(){var jq = document.createElement('script');jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(jq); setTimeout(function(){jQuery.noConflict(); var i=0; jQuery(".DeAcDataGridItemB td:nth-child(3)").each(function(){i += parseInt(jQuery(this).html())}); alert("Your total credit count is " + i);})})() |
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 | |
from matplotlib import pyplot as plt | |
import sys | |
if len(sys.argv) != 5: | |
print 'Usage: ./csv_to_histogram.py [INPUT CSV] [OUTPUT PNG] [TARGET COL] [NUM BINS]' | |
sys.exit(1) | |
in_fname = sys.argv[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
db.getMongo().getDBNames().forEach(function(i){db.getMongo().getDB(i).dropDatabase()}) |
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 | |
import sys | |
from urlparse import parse_qs | |
from operator import itemgetter | |
try: | |
# first argument is input ping log | |
in_file = open(sys.argv[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
mongo HOST --eval "printjson(db.getSiblingDB('DB')['COLLECTION'].find().toArray())" >> output.json |
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
db.COL1.find().toArray().filter(function(doc){return !db.COL2.find(IDENTIFIER).count()}) |
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
[ [43/1951] | |
{ | |
"_id" : { | |
"t" : ISODate("2014-04-14T13:48:07Z"), | |
"vh" : BinData(0,"SK9o5qTZfIsFvOsRRPMrvA=="), | |
"ph" : BinData(0,"HC+s0NvoJhAjtxUDTpI9bQ==") | |
}, | |
"vaup" : { | |
"auto" : 0, | |
"unkn" : 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
def main(): | |
""" | |
[debug-only] | |
""" | |
define("domain", default="theverge.com") | |
define("path", default=None) | |
define("console", default=True, type=bool) | |
define("debug", default=True, type=bool) | |
define("click_through_host", default="localhost") | |
define("minutes", default=5) |
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
javascript:(function()%7Bvar name%3Dprompt(%27Enter a name%27)%3B%24(%27%23team-grid li h3%27).each(function()%7Bif(!%24(this).html().match(new RegExp(name,%27i%27)))%7B%24(this).parent().parent().parent().toggleClass(%27dim%27)%7D%7D)%7D)()%3B |
OlderNewer