This file contains 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
#!/usr/bin/tclsh8.5 | |
package require md5 | |
set script { | |
tell application "Terminal" | |
tell %s | |
set the background color to { %s } | |
end tell | |
%s | |
end tell |
This file contains 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
class ParkBenchTimer { | |
let startTime:CFAbsoluteTime | |
var endTime:CFAbsoluteTime? | |
init() { | |
startTime = CFAbsoluteTimeGetCurrent() | |
} | |
func stop() -> CFAbsoluteTime { |
This file contains 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 Cocoa | |
// *Really* minimal PCG32 code / (c) 2014 M.E. O'Neill / pcg-random.org | |
// Licensed under Apache License 2.0 (NO WARRANTY, etc. see website) | |
// Converted to Swift by Peter da Silva, backing out some C optimizations | |
// and hardcoding Knuth's LCG parameters | |
class pcg32_random { | |
var state: UInt64; | |
This file contains 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
// Defn of ClientData: | |
// #ifndef _CLIENTDATA | |
// # ifndef NO_VOID | |
// typedef void *ClientData; | |
// # else | |
// typedef int *ClientData; | |
// # endif | |
// # define _CLIENTDATA | |
// #endif |