Skip to content

Instantly share code, notes, and snippets.

View jalbertbowden's full-sized avatar

albert jalbertbowden

View GitHub Profile
@jonathansampson
jonathansampson / Proto-Crawler.js
Last active August 29, 2015 13:57
Enumerates all properties of an object, including those found along the prototype chain.
var output = (function ( object ) {
"use strict";
function getProperties ( object ) {
return object ? Object.getOwnPropertyNames( object )
.concat( getProperties( Object.getPrototypeOf( object ) ) ) : [] ;
}
function getUnique ( array ) {
@fj
fj / gist:9691518
Last active August 29, 2015 13:57
"Your Mission", by Ellen M. H. Gates (1865)
If you cannot, on the ocean, sail among the swiftest fleet,
Rocking on the highest billows, laughing at the storms you meet,
You can stand among the sailors, anchored yet within the bay,
You can lend a hand to help them, as they launch their boats away.
If you are too weak to journey up the mountain steep and high,
You can stand within the valley, while the multitudes go by;
You can chant in happy measure, as they slowly pass along;
Though they may forget the singer, they will not forget the song.
@addyosmani
addyosmani / resources.md
Last active August 29, 2015 14:00
Polymer resources for FITC

Web Components Can Do That?! extras

Thanks a ton for coming down to my talk, folks <33z. Your energy was amazing. This page has a few extra resources for you.

Slides

http://addyosmani.github.io/fitc-wccdt/

@jsantell
jsantell / webaudioscratchsheet.md
Last active August 29, 2015 14:01
Firefox Developer Tools' Web Audio Editor scratchpad

Originally from etherpad

The Web Audio Editor in Firefox Developer Tools is still a work in progress. A lot of love is needed in its current state, and once the basic features are working, here are some dream features, and future planning.

Milestones

{
"type": "FeatureCollection",
"features": [...],
"legend": {
"title": "Population Quantiles",
"symbols": [
{"from": 0, "to": 10, "color": "ffffff", "symbol": "square"},
{"from": 10, "to": 50, "color": "cffff1", "symbol": "square"},
{"from": 50, "to": 80, "color": "afff33", "symbol": "square"}
]
@benbalter
benbalter / transparency-is-so-08.md
Last active August 29, 2015 14:02
Transparency is so '08: Why treating data as code & collaboration are the next frontier for open gov (Notes from Transparency Camp 2014, http://transparencycamp.org/schedule/2014/transparency-is-so-08-why-treating-data-as-code-co/)

Transparency is so '08: Why treating data as code & collaboration are the next frontier for open gov

Question: Open government is a great first step, but how can we push towards collaborative government, the world's largest and longest-running open source project

Background

  • What differentiates open source from transparency is collaboration: the essential promise that you can see the underlying source code and make things better.
  • PDF of excel spreadsheets are technically transparency, but that's really not good enough.
  • A central promise of open source is not just to see the process, but participate and be able to modify source
  • Nothing -> FOIA -> Open Gov -> (Collaborative Gov?)
@axemclion
axemclion / Readme.md
Last active August 29, 2015 14:03
GPU Composited CSS - Performance

Ariya Hidayat has written an excellent article on GPU Composited CSS and how it can be used to optimize web rendering performance.

The impact of adding CSS transforms is evident in developer timline and this experiment is a way to capture that information using browser-perf. The results from this experiment clearly indicate how certain CSS properties move rendering load to the GPU, and how that that impact the overall responsiveness of the page.

Pre-requisites

  1. Ensure that you have node and npm installed
  2. Ensure that you have Selenium running, or can connect to Sauce Labs
  3. Dowload this gist using git clone https://gist.github.com/853d34ebd776047836f3.git
  4. Install other dependencies using npm install
@nathansmith
nathansmith / #1 example.css
Last active August 29, 2015 14:04
JS to detect non-IE browsers. IE10 & IE11 throw false positives about "preserve 3D" CSS transforms.
.not-IE .foobar {
/*
3D CSS transforms here.
*/
}
@philshem
philshem / revgeo.py
Last active August 29, 2015 14:09
Google reverse geocoding for a list of latitude & longitude (CSV output)
import requests
urlbase = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='
key = None
# list of latitude, longitude pairs
latlong = [(40.714224,-73.961452), (47.3667, 8.5500)]
for xy in latlong:
This file has been truncated, but you can view the full file.
# copyright 2015 by timothy clemans released as free open source code under GPL
# this code marks which Go reports can be auto released and which need review/redaction
import os
import re
from datetime import datetime
from datetime import date
def calculate_age(born):
today = date.today()