More info later.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/node | |
var express = require('express'); | |
var zlib = require('zlib'); | |
var fs = require('fs'); | |
var app = express(); | |
app.post('/*', function(req, res){ | |
console.log("-----------------------------------------------------------------------------"); | |
console.log('POST /' + req.originalUrl); | |
var chunks = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MKDIRP_H | |
#define MKDIRP_H | |
#include <sys/stat.h> | |
#include <errno.h> | |
#define DEFAULT_MODE S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH | |
/** Utility function to create directory tree */ | |
bool mkdirp(const char* path, mode_t mode = DEFAULT_MODE) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aws = require('aws-sdk'); | |
var Promise = require('promise'); | |
/** Patch aws.Request to have a promise() method that returns a promise */ | |
exports.patch = function() { | |
aws.Request.prototype.promise = function() { | |
var that = this; | |
return new Promise(function(accept, reject) { | |
that.on('complete', function(response) { | |
if (response.error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ENV['AWS_ACCESS_KEY_ID'] == nil or ENV['AWS_SECRET_ACCESS_KEY'] == nil | |
raise Vagrant::Errors::VagrantError.new, | |
"This vagrantfile requires AWS credentials as environment variables!\n" | |
end | |
Vagrant.configure("2") do |config| | |
config.vm.box = "jonasfj-taskcluster-dev-0.0.0" | |
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/20140126/saucy-server-cloudimg-amd64-vagrant-disk1.box" | |
config.vm.provision "shell", inline: <<-SCRIPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Calculus of Communicating Systems */ | |
(function(CCS){ | |
/** CCS Process System | |
* When creating a CCS process hierarchy this class must be used to all CCS | |
* objects within the labelled transition system. | |
* All CCS objects will have a reference to this object, as the object will | |
* responsible for caching objects, assigning ids, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "taskcluster-dev-0.1.0" | |
config.vm.box_url = "https://s3.amazonaws.com/task-cluster-dev/0.1.0/taskcluster_dev.box" | |
end |
OlderNewer