Skip to content

Instantly share code, notes, and snippets.

@adamreisnz
adamreisnz / Setup GitHub issue labels script
Last active November 17, 2016 14:38 — forked from hubertursua/setup github issues labels.sh
A terminal script to setup GitHub issue labels for a project.
Setup GitHub issue labels script

How to read an FCC Notice of Proposed Rulemaking

This short guide will teach you to read an FCC NPRM with grep. The underlying assumption is that stop words can be used to find key pieces of information in a large body of text. In the case of a notice of proposed rulemaking, those key pieces of information are tentative conclusions and requests for comment.

"We" words

FCC NPRMs often use the word "we" when referring to the office or bureau responsible for the document, or sometimes even the Commission itself. With this knowledge, it's possible to find out the types of actions the FCC is taking.

$ grep -R "We" corpus.txt --no-filename
@vdavez
vdavez / new_lims.py
Last active August 29, 2015 14:00
Using the new LIMS
#!/usr/bin/env python3
from urllib import request, parse
import json
base_url = "http://lims.dccouncil.us/_layouts/15/uploader/AdminProxy.aspx/"
keyword_test = ""
# Generic function to get Data from LIMS
def getFromLIMS(view, payload):
@max-mapper
max-mapper / index.js
Last active May 9, 2021 02:20
fast loading of a large dataset into leveldb
// data comes from here http://stat-computing.org/dataexpo/2009/the-data.html
// download 1994.csv.bz2 and unpack by running: cat 1994.csv.bz2 | bzip2 -d > 1994.csv
// 1994.csv should be ~5.2 million lines and 500MB
// importing all rows into leveldb took ~50 seconds on my machine
// there are two main techniques at work here:
// 1: never create JS objects, leave the data as binary the entire time (binary-split does this)
// 2: group lines into 16 MB batches, to take advantage of leveldbs batch API (byte-stream does this)
var level = require('level')
@mikemorris
mikemorris / coffee.geojson
Last active March 26, 2018 01:02
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@campeterson
campeterson / data-sets.md
Last active November 1, 2022 23:59
Data sets
@ashleygwilliams
ashleygwilliams / woodchuck.rb
Last active December 18, 2015 02:29
how much wood would a woodchuck chuck? a lesson in the difference between class and instance variables and methods.
class Woodchuck
attr_accessor :chuck_count
@@woodchuck_count = 0
def initialize
@chuck_count = 0
@@woodchuck_count += 1
end