Skip to content

Instantly share code, notes, and snippets.

View RichardMarks's full-sized avatar

Richard Marks RichardMarks

View GitHub Profile
@RichardMarks
RichardMarks / .bash_profile
Last active June 22, 2017 22:00
OSX bash profile
# GNU coreutils
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
# bash completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
# Added by n-install (see http://git.io/n-install-repo).
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"
@RichardMarks
RichardMarks / haxe-auto-installer.sh
Created September 3, 2014 10:46
Installing Haxe, OpenFL, HaxeFlixel on Ubuntu
#!/bin/sh
HAXE_VERSION=3.1.3
HAXE_VERSION_COMMA=3,1,3
NEKO_VERSION=2.0.0
if [ "$1" = "y" -o "$1" = "-y" ]; then
@RichardMarks
RichardMarks / Reflection.cpp
Created June 9, 2014 20:37
C++ Reflection System by Mattias Gustavsson - Used with Permission.
//*** Reflection.cpp ***
#include "Reflection.h"
#define _CRT_SECURE_NO_WARNINGS
#include <assert.h>
#include <string.h>
@RichardMarks
RichardMarks / cbpy.py
Last active August 29, 2015 14:02
codingbat-python-solutions
# Warmup-1
def sleep_in(weekday, vacation):
if weekday and not vacation:
return False
return True
def monkey_trouble(a_smile, b_smile):
if a_smile and not b_smile or not a_smile and b_smile:
return False
return True
@RichardMarks
RichardMarks / gist:767590
Created January 6, 2011 06:02 — forked from jakevsrobots/gist:460662
Python script for compiling OGMO tile layers into CSV
#!/usr/bin/python
import os, sys
from xml.dom import minidom
#--------------------------------------
BASE_PATH = os.path.dirname(__file__)
MAP_SRC_DIR = os.path.join(BASE_PATH, 'data/maps')
MAP_COMPILED_DIR = os.path.join(BASE_PATH, 'data/maps/compiled')
#!/usr/bin/python
import os, sys
from xml.dom import minidom
#--------------------------------------
BASE_PATH = os.path.dirname(__file__)
MAP_SRC_DIR = os.path.join(BASE_PATH, 'data/maps')
MAP_COMPILED_DIR = os.path.join(BASE_PATH, 'data/maps/compiled')