Skip to content

Instantly share code, notes, and snippets.

View newbamboo's full-sized avatar

New Bamboo newbamboo

View GitHub Profile
/* This works as a bookmarklet, but I can't for the life of me work out how to capture the keypress away from Gmail's grasp */
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.3.2",function($,L){
var sigs = [
['damien@new-bamboo.co.uk', 'bamboo'],
['damien@5places.com', '5places']
];
var iframe = $("#canvas_frame").contents();
function insert_sig() {
var from = iframe.find('input[name="from"]').val();
if(from) {
/* MODELS */
var ProjectCollection = function(projects){
var self = this;
var projects = projects;
this.create = function(attrs){
projects.push(attrs)
// might want to a bit of ajax here
File formats:
D. = Demuxing supported
.E = Muxing supported
--
E 3g2 3GP2 format
E 3gp 3GP format
D 4xm 4X Technologies format
D IFF IFF format
D ISS Funcom ISS format
D MTV MTV format
/Users/makoto/work/sample/ndkbox2dtest20090707/apps/box2dtest/project/src
Unknown-00-21-e9-db-a7-d3:src makoto$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: com/akjava/android/box2d/JBox2dControler.java
# modified: com/akjava/android/box2d/NDKBox2dControler.java
# modified: com/akjava/android/box2dtest/AbstractBox2dTestRender.java
# modified: com/akjava/android/box2dtest/AndroidBox2dTest.java
/Users/makoto/work/sample/ndkbox2dtest20090707/apps/box2dtest/project/src
Unknown-00-21-e9-db-a7-d3:src makoto$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: com/akjava/android/box2d/JBox2dControler.java
# modified: com/akjava/android/box2d/NDKBox2dControler.java
# modified: com/akjava/android/box2dtest/AbstractBox2dTestRender.java
# modified: com/akjava/android/box2dtest/AndroidBox2dTest.java
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>index</title>
<script type ="text/javascript">
function drawOnCanvas () {
(character (value あ) (width 300) (height 300) (strokes ((54 58)(249 68)) ((147 10)(145 201)(182 252)) ((224 103)(149 230)(82 240)(53 204)(86 149)(182 139)(240 172)(248 224)(228 250))))

Installing Panda on your local machine or server

This guide is an alternative to using the prebuilt AMI which includes all the software required to run Panda.

Please note that this guide been mainly tested on OSX and Ubuntu. Please post modifications to the mailing list if you try another platform.

Before starting, your system must have a working Ruby (1.8.x) installation along with Rubygems (>= 1.3.1) and MySQL running happily.

Install dependencies

#!/bin/bash
# Startup script for a Panda encoder.
PORT=5000
MERB_ROOT="/var/www/panda/current"
PID_FILE="$MERB_ROOT/log/merb.encoder.pid"
RETVAL=0
# Go no further if merb app conf is gone
[ -a "$MERB_ROOT" ] || exit 0