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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
b { font-weight: normal; background-color: #f0f; } | |
i { font-style: normal; background-color: #ff0; } | |
pre { background-color: #0ff; } | |
.arrg { white-space: pre; background-color: #f00; } | |
body { background: #333; } | |
</style> |
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
// the difference between ceylon and scala | |
// | |
shared | |
class Polar(Float angle, Float radius) { | |
shared | |
Float angle = angle; | |
shared | |
Float radius = radius; |
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
// #1 Launch Chrome | |
// #1.1 If you are on the Beta channel you are fine | |
// #1.2 If you are not on the Beta channel enable Web Audio API in about:flags | |
// #2 Ctrl+Shift+C or Apple+Shift+J | |
// #3 Open Console | |
// #4 Paste | |
var bufferSize = 2048 | |
var ctx = new webkitAudioContext() | |
var js = ctx.createJavaScriptNode(bufferSize, 0, 1) | |
var phase = 0.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
package go | |
import java.util.concurrent.{ | |
BlockingQueue => JBlockingQueue, | |
ArrayBlockingQueue => JArrayBlockingQueue | |
} | |
object Channel { | |
def empty[A]: Channel[A] = new BlockingChannel() | |
def make[A]: Channel[A] = make(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
//lift version 2.3-M1 | |
object ErrorSnippet extends DispatchSnippet { | |
val showBug = true | |
def dispatch = { | |
case _ => bug | |
} | |
def bug = { | |
val id = nextFuncName |
NewerOlder