Skip to content

Instantly share code, notes, and snippets.

Mark Chadwick markchadwick

  • Vistar Media
  • Philadelphia
Block or report user

Report or block markchadwick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
markchadwick / geo-header.sql
Created Dec 12, 2014
Populate a postgres table for 2010 sf1 geo headers based on a scratch table containing each row of geo file as a string
View geo-header.sql
View gist:8466502
while [ $ex -eq 0 ]; do
gom test ./net/ --v
sleep 0.1
View gist:5367511
probably_the_most_descriptive_name_in_the_word = 'data'
for segment in response.get(probably_the_most_descriptive_name_in_the_word, []):
View gist:5224893
Object.defineProperty process.env, 'TZ',
get: 'EST'
set: throw Error('Nice work, asshole')
View gist:5215126
import pycurl
import sys
import time
from cStringIO import StringIO
def fetch(requets, concurrent=5):
multi = pycurl.CurlMulti()
View gist:4113087
>>> from datetime import datetime
>>> import time
>>> d = datetime.utcfromtimestamp(1343793600)
>>> time.mktime(d.timetuple())
>>> time.mktime(d.utctimetuple())
View gist:3994969
package main
import (
func whatsMyName() (string, error) {
return "", nil
View gist:3834053
package main
import (
func main() {
c := make(chan int)
View gist:3492451
// Unmarshal decodes the first document found within the in byte slice
// and assigns decoded values into the object pointed by out.
// Maps, pointers to structs and ints, etc, may all be used as out values.
// If an internal pointer within a struct is not initialized, goyaml
// will initialize it if necessary for unmarshalling the provided data,
// but the struct provided as out must not be a nil pointer.
// The type of the decoded values and the type of out will be considered,
// and Unmarshal() will do the best possible job to unmarshal values
import os
import errno
import json
from base64 import urlsafe_b64encode
from flask import Flask
from flask import Response
from flask import abort
from flask import request
from flask import session
You can’t perform that action at this time.