Skip to content

Instantly share code, notes, and snippets.

@dojiong
dojiong / hello.go
Created May 13, 2013 14:19
gae http proxy
//GAE app的主体
package hello
import (
"appengine"
"appengine/urlfetch"
"bytes"
"encoding/gob"
"io"
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@kindohm
kindohm / fft.js
Created May 1, 2012 20:50
audiolib.js fft
/*
This code demonstrates how to use a Fast Fourier Transform
with audiolib.js. It pushes samples to an FFT and draws
the FFT spectrum on an HTML5 canvas.
Author: Mike Hodnick
MIT License
*/
@dsosby
dsosby / config-highlight.cfg
Created August 3, 2011 15:24
A dark highlighting theme for Python's IDLE IDE based on Notepad++'s Obsidian color scheme
[Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #293134
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
@zandev
zandev / haskell-palindromes-benchmark.hs
Created February 17, 2011 10:21
Some benchmarks on solutions provided to exercise 5 chapter 3 of Real World Haskell
import Criterion
import Criterion.Main (defaultMain, bench)
-- Chris Forno 2008-09-03
isPalindromeLastInit :: (Eq a) => [a] -> Bool
isPalindromeLastInit [] = False
isPalindromeLastInit (x:[]) = True
isPalindromeLastInit (x:y:[]) = x == y
isPalindromeLastInit (x:xs) = x == last xs && isPalindromeLastInit (init xs)