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
// stack_trace.c | |
// | |
// gcc stack_trace.c -ldw -lunwind -g -o stack_trace | |
#define UNW_LOCAL_ONLY | |
#include <elfutils/libdwfl.h> | |
#include <libunwind.h> | |
#include <stdio.h> |
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 java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.StringTokenizer; | |
public class Split { | |
private static String string = "a/b/c/d/e/f/g/h/i/j/asd/asdas/dasdjasodjoa/sjd/oajs/djoasjd/as/odj/jaowdj/oajw/odj/aojwd/oja/owjd/oja/wjdoja/wdj/awjdojaw/odj/oawjd/oja/wjdoawjdojaw/d/dff"; |
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
// ==UserScript== | |
// @name XKCD Hell playable game | |
// @namespace http://example.com/ | |
// @description Turns XKCD comic #724 into playable game | |
// @include http://xkcd.com/724/ | |
// @version 1.0 | |
// ==/UserScript== | |
/* | |
* Physaxe (http://code.google.com/p/physaxe/) copyright notice: |
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
#include <stdio.h> | |
#include <curses.h> | |
int main(int argc, char*argv[]) | |
{ | |
initscr(); | |
printw("curses - press any key"); | |
getch(); | |
endwin(); |
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
public class Test { | |
static int a; | |
public static boolean f(int b) { | |
while(true) { | |
if( a==3 ) { | |
return true; | |
} | |
try { |
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
<html> | |
<head> | |
<script> | |
function put(data, callback) { | |
request("PUT", "https://api.myjson.com/bins/4wq17", JSON.stringify(data), callback) | |
} | |
function get(callback) { | |
request("GET", "https://api.myjson.com/bins/4wq17", null, callback) | |
} | |
function request(method, url, data, callback) { |
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/python | |
import gtk, webkit, sys, time, gobject | |
class Browser: | |
def __init__(self, window, url): | |
self.window = window | |
self.view = (webkit.WebView(), webkit.WebView()) | |
self.url = url |
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 java.util.Random; | |
public class R { | |
private static long doRead(final Random r, final long rangeStart, | |
final long rangeEnd) { | |
long retVal = 0; | |
final long range = rangeEnd - rangeStart; | |
// Fill until we get to range |
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 --git a/gl.go b/gl.go | |
index 89581f3..8ba19cb 100644 | |
--- a/gl.go | |
+++ b/gl.go | |
@@ -4,13 +4,8 @@ | |
package gl | |
-// #cgo darwin LDFLAGS: -framework OpenGL -lGLEW | |
-// #cgo windows LDFLAGS: -lglew32 -lopengl32 |
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
// stack_trace.c | |
// | |
// gcc stack_trace.c -ldw -lunwind -g -o stack_trace | |
#define UNW_LOCAL_ONLY | |
#include <elfutils/libdwfl.h> | |
#include <libunwind.h> | |
#include<signal.h> |
NewerOlder