Skip to content

Instantly share code, notes, and snippets.

View joekim's full-sized avatar

Joseph Kim joekim

View GitHub Profile
@joekim
joekim / SketchSystems.spec
Created March 12, 2020 01:45
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
some event -> First State
#!/bin/bash
#
# Written by Tobias Lensing, http://tlensing.org
# For more information see http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-objective-c-2-0-blocks-runtime-gcd-on-ubuntu-12-04/
#
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' curl | grep "install ok installed")
echo Checking for curl: $PKG_OK
if [ "" == "$PKG_OK" ]; then
sudo apt-get install curl -y
@joekim
joekim / json-protocol.js
Created December 7, 2011 03:12
A simple carriage-return, line-feed delimited JSON protocol.
/*
A simple newline delimited JSON protocol.
Receiving Usage:
protocol = require('./json-protocol');
// parsing data
parser = protocol.StreamParser();