Download the Raspberian image for the Raspberry PI and copy the image to an SD card.
Boot the RPI with the SD card.
Make a note of the IP address of the RPI
Using the RPI config menu. Select all disk to use.
Enable SSH
<?php | |
/* | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
* | |
* Copyright 2010 Oracle and/or its affiliates. All rights reserved. | |
* | |
* Oracle and Java are registered trademarks of Oracle and/or its affiliates. | |
* Other names may be trademarks of their respective owners. | |
* | |
* The contents of this file are subject to the terms of either the GNU |
var HighResolutionTimer = window.HighResolutionTimer = window.HighResolutionTimer || (function() { | |
var HighResolutionTimer = function(options) { | |
this.timer = false; | |
this.total_ticks = 0; | |
this.start_time = undefined; | |
this.current_time = undefined; |
Download the Raspberian image for the Raspberry PI and copy the image to an SD card.
Boot the RPI with the SD card.
Make a note of the IP address of the RPI
Using the RPI config menu. Select all disk to use.
Enable SSH
// Updated requestAnimationFrame polyfill that uses new high-resolution timestamp | |
// | |
// References: | |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// https://gist.github.com/1579671 | |
// http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision | |
// | |
// Note: this is my initial stab at it, *requires additional testing* | |
(function () { |
/** | |
* @constructor | |
*/ | |
function Profiler() { | |
} | |
/** | |
* Uses the best resolution timer that is currently available. | |
* The return value of this can only be used for measuring the time interval, |
<?php | |
/* | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
* | |
* Copyright 2010 Oracle and/or its affiliates. All rights reserved. | |
* | |
* Oracle and Java are registered trademarks of Oracle and/or its affiliates. | |
* Other names may be trademarks of their respective owners. | |
* | |
* The contents of this file are subject to the terms of either the GNU |
#!/bin/sh | |
# | |
# ******************************************* | |
# WARNING: this does *not* handle 3-way merges properly. | |
# Anything modified on the local branch since the common base will get ignored. | |
# | |
# FOR ANYONE LANDING HERE: | |
# This script is now updated as part of the git-whistles gem. | |
# https://github.com/mezis/git-whistles | |
# ******************************************* |
// 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 | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |