Skip to content

Instantly share code, notes, and snippets.

View patperry's full-sized avatar

Patrick O. Perry patperry

View GitHub Profile
# the --recursive is important, this has a submodule!
git clone --recursive https://github.com/asciinema/asciicast2gif.git
cd asciicast2gif
# If you forget to use --recursive you can do
git submodule init
git submodule update
# install npm dependencies
npm install
@rolandoam
rolandoam / Makefile
Created March 19, 2013 19:15
makefile for both native and emscripten projects: make js # will make the js port, output a projectname.js make native # will compile the native port, output project.native make sure there are no important files named `project.*` because they will be cleaned by the `clean` target
EMSCRIPTEN_HOME = ~/Documents/inbox/emscripten
PROJECT = myproject
SOURCES = $(wildcard *.cc) $(wildcard *.c)
OBJECTS = $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES)))
set-native:
$(eval CXX := clang -x c++)
$(eval CC := clang)
$(eval CPPFLAGS := -g -O2 -DHAS_TR1)