Skip to content

Instantly share code, notes, and snippets.

View rejacobson's full-sized avatar

Ryan Jacobson rejacobson

  • HappyCo
  • 20:06 (UTC -07:00)
View GitHub Profile
Stats = {}
Stats.__index = Stats
function Stats:Create(stats)
local this =
{
mBase = {},
mModifiers = {}
}
-- Shallow copy
These are the rules for the Reddit Warriors Clan.
CoC chat has a character limit of 128.
Each section below is delimited by a ----- so each one can be safely copy/pasted into chat.
------------------------------------------------------------------------
1. Be polite and mature; No offensive language.
2. Mandatory wars on Saturday. You must use both attacks and bring your A game.
------------------------------------------------------------------------
3. Donate only max troops for war requests and use only max troops on your own war attacks.
7 Days to Die
Alien Arena
Ark SE
Armagetron Advanced
Assault Cube
Bitfighter
Black Wake
BZFlag
Counter Strike 1.6
Counter Strike GO
@rejacobson
rejacobson / bashcolors.sh
Created December 6, 2016 23:29
bash color helper functions
function color() { # auto complete helper, second argument is a grep against the function list
if [[ '' == "$@" ]]
then
echo "Parse Namespaced Functions List"
cat $BASH_SOURCE | grep "^function[^(]" | awk '{j=" USAGE:"; for (i=5; i<=NF; i++) j=j" "$i; print $2" "j}'
else
echo "Parse Functions Matching: $@"
cat $BASH_SOURCE | grep "^function[^(]" | awk '{j=" USAGE:"; for (i=5; i<=NF; i++) j=j" "$i; print $2" "j}' | grep $@
fi
}
function follow(url) {
$.getJSON(url, function(json) {
console.log(json);
if (json['follow']) {
follow(json['follow']);
}
});
};
follow('http://letsrevolutionizetesting.com/challenge.json');
@rejacobson
rejacobson / .bash_profile
Created August 2, 2011 22:59
bash profile from work
export EDITOR='vim'
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White