Skip to content

Instantly share code, notes, and snippets.

View sbseltzer's full-sized avatar

Sam Seltzer-Johnston sbseltzer

View GitHub Profile
# To install:
# Save as runspacemacs and make sure it's in your PATH (I keep mine in ~/bin)
# Run chmod u+x runspacemacs
if [ "$1" == "" ]; then
emacsclientw $new_frame -a "" $@ &
sbseltzer / 1_ubuntu_terminal_command
Last active July 30, 2018 19:54 — forked from lucasdavila/1_ubuntu_terminal_command
Installing Source Code Pro fonts in ubuntu
# to execute this gist, run the line bellow in terminal
\curl -L | sh
sbseltzer / Makefile
Last active March 23, 2017 14:28
Root Makefile for use with Orx
# Requires MSBuild.exe and CL.exe for your respective Visual Studio version to be in your System Environment Path variable.
ifeq ($(OS),Windows_NT)
VS_VERSION = vs2013
# Tutorials
ifeq ($(OS),Windows_NT)
tutorial/build/premake4 --file=tutorial/build/premake4.lua $(VS_VERSION)
sbseltzer / timestamp.js
Created October 31, 2016 16:54 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time
sbseltzer / .gitignore
Last active August 30, 2015 02:20 — forked from thebeardphantom/.gitignore
Unity GitIgnore
# Ignore everything
# Inverse ignore some stuff
# OS Stuff
sbseltzer / swizzle.lua
Created February 14, 2015 16:27
A simple function that adds configurable swizzling to any metatable.
Add swizzling functionality to a metatable!
@param MOriginal - Original metatable to add swizzling to.
@param keys - Ordered array of key names we want to swizzle on.
@param components - Ordered array of characters to associate with the key names from the keys array.
@param defaults - Optional list of default values to be used when t[GetComponent(c)] == nil.
@param constructor - When swizzling on valid keys, a list of associated values preceded by the custom swizzle metatable is passed to the constructor (in keys) from the __index metamethod, that is, constructor(MSwizzle, ...). The result of this function is returned by the __index metamethod.
@return MOriginal - The original metatable (which has been modified).
@return GetKey(i) - A function that returns the key name at index i from the keys parameter.
sbseltzer / tumblr_rwu_test.php
Created February 12, 2012 05:56
Testing TumblrRWU
header( "Content-Type: text/plain" );
echo "Welcome to the test!\n";
include "TumblrReader.php";
include "TumblrWriter.php";
include "TumblrUser.php";
$consumer_key = 'your_consumer_key';
$consumer_secret = 'your_secret_key';