Skip to content

Instantly share code, notes, and snippets.

@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.
@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
(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
'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);
@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)
diff --git a/foia_hub/views.py b/foia_hub/views.py
index 3debba1..e0249b5 100644
--- a/foia_hub/views.py
+++ b/foia_hub/views.py
@@ -9,20 +9,23 @@ from jinja2 import Environment, PackageLoader
from foia_hub.models import Agency, FOIARequest
-env = Environment(loader=PackageLoader('foia_hub', 'templates'))
-env.globals['ANALYTICS_ID'] = settings.ANALYTICS_ID
diff --git a/foia_hub/tests/test_views.py b/foia_hub/tests/test_views.py
index d16be2d..85e0a4b 100644
--- a/foia_hub/tests/test_views.py
+++ b/foia_hub/tests/test_views.py
@@ -2,6 +2,7 @@ from datetime import date
from django.core.urlresolvers import reverse
from django.test import SimpleTestCase
+from mock import patch
'use strict';
// Namespace
var Init = {
// State/Zip are only marked "required" if country == USA
countryRequirements: function() {
var country = $('#id_country'),
countryReqLabels = $('label[for=id_state], label[for=id_zip_code]');
country.change(function() {
INFO:root:Rewrote data/ACUS.yaml with 3 new keywords
INFO:root:Rewrote data/PC.yaml with 38 new keywords
INFO:root:Rewrote data/DNFSB.yaml with 4 new keywords
INFO:root:Rewrote data/CEQ.yaml with 6 new keywords
INFO:root:Rewrote data/FHFA.yaml with 45 new keywords
INFO:root:Rewrote data/FCSIC.yaml with 3 new keywords
INFO:root:Rewrote data/FTC.yaml with 65 new keywords
INFO:root:Rewrote data/SIGAR.yaml with 5 new keywords
INFO:root:Rewrote data/IAF.yaml with 11 new keywords
INFO:root:Rewrote data/OSHRC.yaml with 12 new keywords
diff --git a/contacts/data/ABMC.yaml b/contacts/data/ABMC.yaml
index 2e09d57..606fd23 100644
--- a/contacts/data/ABMC.yaml
+++ b/contacts/data/ABMC.yaml
@@ -18,4 +18,7 @@ description: "The American Battle Monuments Commission, established by the Congr
\ in 1923, is an agency of the Executive Branch of the Federal Government. \n\n\
The Commission-guardian of America´s overseas commemorative cemeteries and memorials-honors\
\ the service, achievements and sacrifice of United States Armed Forces."
+keywords:
+- Freedom of information