This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$words_attempted = { } # global list of words already attempted | |
$word_dictionary = { } # global dictionary of valid words | |
# Returns the indicies for current_word as an array. Setting | |
# optimized to true will place non-matching characters between | |
# the current and target words at the beginning of the array. | |
def get_letter_indicies(optimized, current_word, target_word) | |
[].tap do |letter_indicies| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y update | |
sudo apt-get -y dist-upgrade | |
sudo apt-get -y install apticron build-essential curl git-core ntp sendmail | |
sudo apt-get -y autoremove | |
# reboot | |
shutdown -r now | |
# update email address for update notifications | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install build-essential curl gettext | |
wget http://download.mono-project.com/sources/mono/mono-3.2.5.tar.bz2 | |
tar jxf mono-3.2.5.tar.bz2 | |
cd mono-3.2.5/ | |
./configure --prefix=/usr/local; make; make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install build-essential curl gettext mysql-server redis-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential curl git-core redis-server | |
# setup git | |
git config --global user.name "Josh Rickard" | |
git config --global user.email josh.rickard@gmail.com | |
# install RVM | |
curl -L https://get.rvm.io | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspiration from: https://gist.github.com/2045188 | |
# horizontally & vertically center a table within its container | |
t = make_table(table_data, { :position => :center }) | |
move_down((bounds.height - t.height) / 2.0) | |
t.draw | |
# calculate the table's offset from its container | |
x_offset = (bounds.width - t.width) / 2 | |
y_offset = (bounds.height - t.height) / 2 |