This Gist is now embodied in the form of Undergarment. That is all.
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
struct crb_game { | |
int state; | |
char *name; | |
crb_gfx *gfx; | |
crb_snd *snd; | |
crb_lua *lua; | |
int (*on_start)(void); | |
int (*on_stop)(void); |
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
shapeOptions = [ | |
{ | |
node: "select" | |
children: [ | |
{ | |
node: "option" | |
attrs: { | |
value: "rectangle" | |
} | |
content: "Rectangle" |
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
<?php | |
/* Let's say the variable $input contains a user-submitted link */ | |
$parsed_url = parse_url($input); | |
if ($parsed_url != false) { | |
/* The domain should be found using the 'host' key */ | |
$domain = $parsed_url['host']; | |
/* Now check that domain against the DBL */ | |
$dbl_record = dns_get_record($domain); |
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
gameLoop: -> | |
@running = true | |
@lastTickCount = 0 | |
@totalTickCount = 0 | |
lastTick = lastFrame = psTicks = 0 | |
ticksSince = 0 | |
frames = ticks = 0 | |
doTick = doFrame = no | |
updateLoop = (currentTicks) => | |
doTick = (currentTicks - lastTick) > (1000 / @targetTickrate) |
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 "crb/preferences.h" | |
static struct crb_preferences *prefs; | |
int crb_preferences_initialize(char *prefs_file) | |
{ | |
if (prefs != NULL) | |
crb_preferences_cleanup(); | |
if (prefs_file == NULL) { |
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
/vendor/firmware/ducati-m3.bin | |
/vendor/firmware/libpn544_fw.so | |
/vendor/firmware/smc_pa_wvdrm.ift | |
/vendor/lib/libsec-ril.so | |
/vendor/lib/libwvdrm_L1.so | |
/vendor/lib/libwvm.so | |
/vendor/lib/libWVStreamControlAPI_L1.so | |
/vendor/lib/drm/libdrmwvmplugin.so | |
/vendor/lib/hw/gps.omap4.so | |
/etc/permissions/com.vzw.hardware.ehrpd.xml |
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
--- util/google/sparsehash/sparseconfig.h | |
+++ util/google/sparsehash/sparseconfig.h | |
@@ -5,7 +5,7 @@ | |
#define GOOGLE_NAMESPACE ::google | |
/* the location of <hash_fun.h>/<stl_hash_fun.h> */ | |
-#define HASH_FUN_H "hash_fun.h" | |
+#define HASH_FUN_H </usr/include/c++/4.2.1/ext/hash_fun.h> | |
/* the location of <hash_map> */ |
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 <stdlib.h> | |
#include <string.h> | |
#ifndef barr_malloc | |
# define barr_malloc(sz) malloc(sz) | |
#endif | |
#ifndef barr_realloc | |
# define barr_realloc(ptr, sz) realloc(ptr, sz) | |
#endif |
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
[eddie@localhost sysbench]$ for f in prepare run cleanup; do sysbench --test=fileio --file-test-mode=rndrw --max-time=60 --max-requests=0 --file-extra-flags=direct $f; done | |
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
128 files, 16384Kb each, 2048Mb total | |
Creating files for the test... | |
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 1 |