Skip to content

Instantly share code, notes, and snippets.

erichurst / US Zip Codes from 2013 Government Data
Created Dec 9, 2013
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source:
View US Zip Codes from 2013 Government Data
This file has been truncated, but you can view the full file.
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
bijij / viewimage.user.js
Last active Apr 11, 2021
Userscript version of the View Image chrome extension
View viewimage.user.js
// ==UserScript==
// @name View Image
// @namespace
// @version 3.4.1
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Joshua B
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL
ReneHollander / main.cpp
Created Dec 29, 2016
Skia on the Raspberry Pi
View main.cpp
#include <iostream>
#include <assert.h>
#include <stdio.h>
#include <cstdio>
#include <bcm_host.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
marcoarment / feed-subscribers.php
Created Jul 10, 2013
Better RSS-subscribers script for the post-Google-Reader world.
View feed-subscribers.php
<?php /* With apologies to Dr. Drang and John Siracusa.
By Marco Arment.
Released into the public domain with no warranties and no restrictions.
Usage: Pipe an Apache access log into stdin, e.g.:
php -f feed-subscribers.php < /var/log/httpd/access_log
View gist:8de90a6ebe9f08933bc94c6ab18d1bfd
A Visual Introduction to Machine Learning
UC Berkeley CS188 Intro to AI -- Course Materials
Eyeo 2016 – Gene Kogan
svoisen / Of Mice and Men
Created Mar 21, 2013
Information on low-level scrolling events on Mac OS X
View Of Mice and Men
From the WebKit documentation at:
// Of Mice and Men
// ---------------
// There are three types of scroll data available on a scroll wheel CGEvent.
// Apple's documentation ([1]) is rather vague in their differences, and not
// terribly helpful in deciding which to use. This is what's really going on.
phnessu4 / wwdc2014
Last active Aug 22, 2020
wwdc 2014 sessions and pdf
View wwdc2014
View StringScanner.swift
import Foundation
/// `StringScanner` is a fast scanner for Strings and String-like objects.
/// It's used to extract structured bits from unstructured strings, while
/// avoiding making extra copies of string bits until absolutely necessary.
/// You can build Scanners over Substrings, allowing you to scan
/// parts of strings and use smaller, more specialized scanners to extract bits
/// of that String without needing to reuse another scanner.
public struct StringScanner<Input: StringProtocol> {
let input: Input
View NilError.swift
public struct NilError: Error, CustomStringConvertible {
let file: String
let line: Int
public init(file: String = #file, line: Int = #line) {
self.file = file
self.line = line
khanlou / MD5StringTest.swift
Last active Apr 12, 2019
MD5 and SHA1 on String in Swift 3
View MD5StringTest.swift
import XCTest
@testable import <#project#>
class StringMD5Test: XCTestCase {
func testMD5() {
let string = "soroush khanlou"
XCTAssertEqual(string.md5, "954d741d14b14002d1ba88f600eee635")