Skip to content

Instantly share code, notes, and snippets.

View jonasfj's full-sized avatar

Jonas Finnemann Jensen jonasfj

View GitHub Profile
@jonasfj
jonasfj / readme.md
Created November 19, 2015 21:57 — forked from gregarndt/readme.md

Docker Images for use in TaskCluster

This folder contains various docker images used in taskcluster as well as other misc docker images which may be useful for hacking on gecko.

Organization

Each folder describes a single docker image. These images depend on one another, as described in the FROM line at the top of the Dockerfile in each folder.

@jonasfj
jonasfj / auth.js
Last active August 29, 2015 14:04 — forked from lightsofapollo/auth.js
/**
* Create a client class from a JSON reference.
*
* Returns a Client class which can be initialized with following options:
* options:
* {
* // TaskCluster credentials, if not provided fallback to defaults from environment variables
* // if defaults are not explicitly set with taskcluster.config({...})
* // To create a client without authentication (and not using defaults) use `credentials: {}`
* credentials: {
def list_partitions(bucket, prefix='', level=0, schema=None, include_keys=False):
#print "Listing...", prefix, level
if schema is not None:
allowed_values = schema.sanitize_allowed_values()
delimiter = '/'
if level > 3:
delimiter = '.'
for k in bucket.list(prefix=prefix, delimiter=delimiter):
partitions = k.name.split("/")
if level > 3:
@jonasfj
jonasfj / rAF.js
Last active November 11, 2024 03:28 — forked from paulirish/rAF.js
A list-based fallback implementation of `requestAnimationFrame` that reduces the number of `setTimeout`s needed.
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
// list-based fallback implementation by Jonas Finnemann Jensen
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];