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
private static var runNextFrameMutex = new Mutex(); | |
private static var runNextFrameQueue0 = new Array<Void->Void>(); | |
private static var runNextFrameQueue1 = new Array<Void->Void>(); | |
private static var runOnExitFrameMutex = new Mutex(); | |
private static var runOnExitFrameQueue0 = new Array<Void->Void>(); | |
private static var runOnExitFrameQueue1 = new Array<Void->Void>(); | |
// runNextFrame calls func at the beginning of the next ENTER_FRAME event. |
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
___ | |
/\_ \ __ | |
\//\ \ /\_\ ___ ___ __ | |
\ \ \ \/\ \ /' __` __`\ /'__`\ | |
\_\ \_\ \ \/\ \/\ \/\ \/\ __/ | |
/\____\\ \_\ \_\ \_\ \_\ \____\ | |
\/____/ \/_/\/_/\/_/\/_/\/____/ | |
Lime Command-Line Tools (2.9.1) |
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
package; | |
import openfl.display.Bitmap; | |
import openfl.display.BitmapData; | |
import openfl.display.Sprite; | |
import openfl.events.Event; | |
import openfl.geom.Rectangle; | |
import openfl.Assets; |
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
steamcharts=# \d game_players | |
Table "public.game_players" | |
Column | Type | Modifiers | |
--------+--------------------------+--------------- | |
appid | integer | | |
time | timestamp with time zone | default now() | |
count | integer | | |
Indexes: | |
"game_players_appid_idx" btree (appid) | |
"game_players_time_idx" btree ("time") |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"os" | |
"os/exec" | |
) | |
func main() { |
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
$ clang -E -dM -xc -m64 - <<EOF | |
#line 3 "/Users/jamesgray/proj/term4k/wat/main.go" | |
void hrrr() {} | |
#define hrr hrrr | |
#define saywat hrr | |
#include <sys/types.h> /* for size_t below */ | |
/* Define intgo when compiling with GCC. */ |
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
$ cat main.c | |
int main() { | |
(int); | |
return 0; | |
} | |
$ gcc main.c | |
main.c: In function ‘main’: | |
main.c:2: error: expected expression before ‘;’ token |
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
diff -r a10c7a350ab5 src/cmd/cgo/gcc.go | |
--- a/src/cmd/cgo/gcc.go Sat Oct 12 18:40:41 2013 -0400 | |
+++ b/src/cmd/cgo/gcc.go Mon Oct 14 02:12:48 2013 -0500 | |
@@ -306,7 +306,7 @@ | |
b.WriteString("void __cgo__f__(void) {\n") | |
b.WriteString("#line 1 \"cgo-test\"\n") | |
for i, n := range toSniff { | |
- fmt.Fprintf(&b, "%s; /* #%d */\nenum { _cgo_enum_%d = %s }; /* #%d */\n", n.C, i, i, n.C, i) | |
+ fmt.Fprintf(&b, "(%s); /* #%d */\nenum { _cgo_enum_%d = %s }; /* #%d */\n", n.C, i, i, n.C, i) | |
} |
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
diff -r 414057ac1f1f src/pkg/encoding/json/bench_test.go | |
--- a/src/pkg/encoding/json/bench_test.go Tue Aug 13 15:33:06 2013 +1000 | |
+++ b/src/pkg/encoding/json/bench_test.go Sun Oct 13 00:17:22 2013 -0500 | |
@@ -24,6 +24,10 @@ | |
} | |
type codeNode struct { | |
+ codeNodeData | |
+} | |
+ |
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
package main | |
import ( | |
"fmt" | |
glfw "github.com/go-gl/glfw3" | |
) | |
func errorCallback(err glfw.ErrorCode, desc string) { | |
fmt.Printf("%v: %v\n", err, desc) | |
} |
NewerOlder