Skip to content

Instantly share code, notes, and snippets.

View mnem's full-sized avatar

Dave Clayton-Wagner mnem

View GitHub Profile
@mnem
mnem / file.js
Created June 12, 2012 20:07
Hacked file.js to work around node_redis breaking binary data.
// Read a file from disk, store it in Redis, then read it back from Redis.
var redis = require("redis"),
client = redis.createClient(),
fs = require("fs"),
filename = "kids_in_cart.jpg";
// Get the file I use for testing like this:
// curl http://ranney.com/kids_in_cart.jpg -o kids_in_cart.jpg
// or just use your own file.
@mnem
mnem / gist:3797163
Created September 27, 2012 23:53
Hmm.
Generating tests.
Running each test 10000 times.
Running: UTHash test add
########################################
Running: Boost hash test add
########################################
Running: Std::map hash test add
########################################
@mnem
mnem / .gitignore
Created November 15, 2012 10:26
Simple test to illustrate a small audio latency in the PPAPI version of the Flash plugin in Chrome.
.DS_Store
function foo()
if bingle
if bangle
if bongle
do
some
really
really
really
long
@mnem
mnem / CommandConnection.as
Created April 24, 2013 17:51
Simple local TCP line command listener thungumy.
/**
* Copyright
*/
package org.tryharder.levelup2013
{
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.ServerSocketConnectEvent;
import flash.net.ServerSocket;
import flash.net.Socket;
@mnem
mnem / Main.as
Last active December 17, 2015 08:28
Not sure if bug, or just user error.
package
{
import ash.core.Engine;
import ash.core.Entity;
import flash.display.Sprite;
public class Main extends Sprite
{
@mnem
mnem / ConEmu.xml
Last active January 20, 2019 09:22
My ConEmu.xml file. See comment for further details and how to install. To find out more about ConEmu, see: https://code.google.com/p/conemu-maximus5/
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2013-08-29 11:28:09" build="130827">
<value name="ColorTable00" type="dword" data="00000000"/>
<value name="ColorTable01" type="dword" data="00ee0000"/>
<value name="ColorTable02" type="dword" data="0000cd00"/>
<value name="ColorTable03" type="dword" data="00cdcd00"/>
<value name="ColorTable04" type="dword" data="000000cd"/>
<value name="ColorTable05" type="dword" data="00cd00cd"/>
@mnem
mnem / install_all_the_things.sh
Last active September 7, 2016 21:03
Things to install on a fresh Mac: bash <(curl -fsSL https://gist.github.com/mnem/6560977/raw/install_all_the_things.sh)
#!/usr/bin/env bash
function execute_after_confirm {
read -p "$1 ($2) ? [y/n] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
shift
for var in "$@"
do
@mnem
mnem / game_dev_links.md
Last active December 15, 2023 22:38
Some game dev links that I should probably keep note of.
iOS release build
Eigen additions 375
Eigen multiplications 1258
GLM additions 620
GLM multiplications 767
CML additions 397
CML multiplications 3029