Skip to content

Instantly share code, notes, and snippets.

@cmc333333
cmc333333 / gist:9619f67d550a4b70e2ad
Created August 7, 2014 16:33
Quick ftp download all
∴ cat ftpall.py
from ftplib import FTP
import sys
from urlparse import urlparse
if len(sys.argv) == 1:
print "Usage: python ftpall.py ftp://path/to/dir"
exit(1)
'use strict';
var Mapusaurus = {
map: null,
dataStore: {tract: {}},
layers: {tract: {minority: null}},
dataWithoutGeo: {tract: {minority: {}}},
initialize: function (map) {
map.setView([41.88, -87.63], 12);
(mapusaurus)vagrant@vagrant-debian-wheezy:~/mapusaurus$ git log --pretty=oneline --abbrev-commit
588ac8a PWD problem. Mirrors are fine
4ef7c3f Who needs mirrors
1d5e721 Travis has postgis installed
0d46bee Fix apt-add-repo issue
9f7664e Account for lots of quotes
19eba64 Travis file should be in the correct location
455d148 First stab at travis -- will no doubt fail
@cmc333333
cmc333333 / gist:8244055
Last active January 2, 2016 03:29
Table widths
max_width = 0
for header_row in table['header']:
width = sum(cell['colspan'] for cell in header_row)
max_width = max(max_width, width)
# Just in case a row is longer than the header
row_max = max(len(row) for row in table['rows'])
max_width = max(max_width, row_max)
# Now pad rows if needed
@cmc333333
cmc333333 / 301-hhs-far-tweak.txt
Created October 30, 2013 01:07
Tweaked HHS File
PART 301—HHS ACQUISITION REGULATION SYSTEM
Contents
Subpart 301.1—Purpose, Authority, and Issuance
301.101 Purpose.
301.103 Authority.
301.106 Office of Management and Budget approval under the Paperwork Reduction Act.
Subpart 301.2—Administration
301.270 Executive Committee for Acquisition.