This file contains hidden or 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
<html> | |
<head> | |
<script src="cufon-yui.js" type="text/javascript"></script> | |
<script src="Raleway_Dots_400.font.js"></script> | |
</head> | |
<body> | |
<h1 id="h1">HELLO CUFON CANVAS!</h1> | |
<canvas id="a" width="200" height="200" style="background-color:#ccc;"></canvas> | |
<script type="text/javascript"> | |
Cufon.set('engine', 'canvas'); |
This file contains hidden or 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 http = require('http'); | |
var qs = require('querystring'); | |
var frontport = 10000; | |
var backport = 10001; | |
var Queue = function() { | |
this.data = []; | |
}; |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
this.t = 9; | |
this.d = 1; | |
}; | |
Robot.prototype.onWallCollision = function(ev) { | |
var robot = ev.robot; |
This file contains hidden or 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 restify = require('restify'); | |
var crypto = require('crypto'); | |
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
function voiceRespond(req, res, next) { | |
var voice = req.params.voice; | |
var text = req.query.text; | |
var key = voice+'___'+text; | |
var hash = crypto.createHash('md5').update(key).digest("hex"); |
This file contains hidden or 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
int LED = 11; | |
int SWITCH = 10; | |
// int VOLUME = A1; | |
int KNOB0 = 9; | |
int KNOB1 = 8; | |
// 00 -> 10 -> 11 -> 00 | |
int knobstate = 0; |
This file contains hidden or 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
/*-- Enrolment view page - Start --*/ | |
/* The frame */ | |
table.enrolmentTableFrame | |
{ | |
/* The colour of the frame */ | |
background-color:#336699; | |
/* Margin from the frame to the text inside it */ | |
padding:20; | |
/* Margin round the frame */ |
This file contains hidden or 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
-- haskell plasma attempt | |
-- compile with: ghc plasma.hs | |
-- run: plasma 80 50 | |
import Data.Maybe | |
import Data.List | |
import System.Posix.Unistd | |
import System.Environment | |
coordValue :: Float -> Float -> Float -> Float |
This file contains hidden or 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
#!/bin/bash | |
led() { | |
IDX=$1 | |
RGB=$2 | |
# echo "led $IDX $RGB" | |
R="${RGB:0:1}" | |
G="${RGB:1:1}" | |
B="${RGB:2:1}" | |
This file contains hidden or 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 sys = require('util'); | |
var rest = require('restler'); | |
var fs = require('fs'); | |
var database = {}; | |
var list = [ 'AAPL', 'IBM', 'GE' ]; | |
var done = 0; | |
function save_all_tickers() { | |
console.log('done, all data:', database); |
This file contains hidden or 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
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooooooolllllllooooooolllllllllllllllllllllllllll | |
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooollllllllloolllllllllllllllllllllllllllllllll | |
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllooooollllllllllllllllllllllllllllllllllllllllllllllll | |
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll | |
lllllllllllllllllllllllllcccc::::ccclllllllllllllllllllllllllllllllllllllllllooollllllllllllllllllllllllllllllllllllllll | |
lllllllllllllllllllllllc:;,''......',;;:cclllllloooolllllllllllllllllllllllllooollllllllllllllllllllllllllllllllllllllll | |
oooooooooooollllllllllc:,'............',,;::lloooooolllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooollll | |
oooooolllloolllllllc:;,,,;:clll:;;,'......';:lllllllllllllllolllllllllllllllllllllllllllllllllllllllllllllloooooolllllll | |
oooooollllllllllllcc:c:codkOxdlc::;;,'......',;:lllllooo |