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
| //GAE app的主体 | |
| package hello | |
| import ( | |
| "appengine" | |
| "appengine/urlfetch" | |
| "bytes" | |
| "encoding/gob" | |
| "io" |
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
| # 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 |
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
| /* | |
| 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 | |
| */ |
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
| [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 |
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
| 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) |
NewerOlder