I moved my solutions to a full-fledged repo, so that's where you should go looking for my latest kludges.
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/env python | |
from urllib2 import urlopen, urlencode | |
from pymongo import connection | |
import json | |
from optparse import OptionParser | |
from time import sleep | |
verbose = 1 | |
parser = OptionParser() |
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
/* if you want images to drop a shadow */ | |
img { | |
box-shadow: 10px 10px 5px #888; | |
} | |
/* if you want "fleurons" instead of bullets in unordered lists */ | |
ul { | |
padding-left:1em; | |
list-style:none; | |
margin-left:0; |
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/env csi -ss | |
(use srfi-42) | |
(define (range from upto) | |
(list-ec (:range n from upto) n)) | |
(define (zero-length? l) | |
(= (length l) 0)) |
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
(use srfi-42) | |
(define (range from upto) | |
(list-ec (:range n from upto) n)) | |
(define (zero-length? l) | |
(= (length l) 0)) | |
(define (no-remainder? n d) | |
(= (remainder n d) 0)) | |
(define (rounded-sqrt n) | |
(inexact->exact (round (sqrt n)))) |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
Bundestagswahl 2005 | |
Endgültig | |
Nr;Gebiet;gehört;Wahlberechtigte;;;;Wähler;;;;Ungültige;;;;Gültige;;;;SPD;;;;CDU;;;;CSU;;;;GRÜNE;;;;FDP;;;;Die Linke.;;;;Offensive D;;;;REP;;;;NPD;;;;Die Tierschutzpartei;;;;GRAUE;;;;PBC;;;;DIE FRAUEN;;;;FAMILIE;;;;BüSo;;;;BP;;;;ZENTRUM;;;;Deutschland;;;;AGFG;;;;APPD;;;;50Plus;;;;MLPD;;;;Die PARTEI;;;;PSG;;;;Pro DM;;;;CM;;;;DSU;;;;HP;;;;HUMANWIRTSCHAFTS- PARTEI;;;;STATT Partei;;;;UNABHÄNGIGE;;;;Übrige;;;; | |
;;zu;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;;Zweitstimmen;;Erststimmen;; |
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
config = { | |
'site' : 'doe13', | |
'user' : 'notarealname', | |
'password' : 'notarealpassword' | |
} | |
from wordpress_xmlrpc import Client | |
from wordpress_xmlrpc.methods import posts, media | |
def flatten(l): |
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
import shelve | |
from contextlib import closing | |
class Store: | |
'''Simple persistent key-value store.''' | |
def __init__(self, shelf='data.shelf'): | |
self.shelf = shelf | |
def store(self, key, value): | |
with closing(shelve.open(self.shelf)) as db: | |
db[key] = value |
I hereby claim:
- I am jboynyc on github.
- I am jboy (https://keybase.io/jboy) on keybase.
- I have a public key whose fingerprint is C481 C66B 553D 9DC4 3A38 0164 74A7 A4B3 3DE1 D395
To claim this, I am signing this object:
Following the announcement about the migration of Graduate Center email to the
hosted Microsoft Office365 service (and thus the gradcenter.cuny.edu
domain),
I inquired with GC IT about when our old gc.cuny.edu
addresses will expire,
since the announcement sent out by IT was unclear on this point.
According to the help desk, our old addresses will not be phased out so much as killed:
Once June 1st comes around, the @gc.cuny.edu accounts will be removed from our
OlderNewer