Skip to content

Instantly share code, notes, and snippets.

Avatar

Eddie Ringle EddieRingle

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am eddieringle on github.
  • I am eddieringle (https://keybase.io/eddieringle) on keybase.
  • I have a public key ASBXWoQrKrN87i6ilKnDBWvgWuQO6YMd3gZy2rQJZ81Qzwo

To claim this, I am signing this object:

View 01.python
2015-03-17 15:57:38 +0000
python
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
@EddieRingle
EddieRingle / vagus-sysbench.txt
Created Mar 16, 2015
Vagus (i7 4770k / Samsung 840 Pro 256GB) - sysbench
View vagus-sysbench.txt
[eddie@vagus 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
@EddieRingle
EddieRingle / cpls-sysbench.txt
Created Mar 16, 2015
Chromebook Pixel (2015) LS - sysbench
View cpls-sysbench.txt
[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
@EddieRingle
EddieRingle / barr.c
Created Jan 10, 2014
A dynamic bit array, I guess.
View barr.c
#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
View hash_fun.patch
--- 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> */
@EddieRingle
EddieRingle / gist:3179361
Created Jul 25, 2012
A Slide-out Navigation Implementation for Android
View gist:3179361

This Gist is now embodied in the form of Undergarment. That is all.

@EddieRingle
EddieRingle / gist:3086528
Created Jul 10, 2012
List of things pooshed to the AOSP 4.1.1 build from the I/O JB image for toro
View gist:3086528
/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
View preferences.c
#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) {
View gameLoop.coffee
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)