Skip to content

Instantly share code, notes, and snippets.

View ticktricktrack's full-sized avatar

Rainer Kuhn ticktricktrack

  • Groundsure
  • Brighton, UK
View GitHub Profile
@robbers_money = '0'
@robbers_combination = nil
@safe = 'closed'
@safe_combination = 1234
@safe_money = 10000000
@bank_money = @safe_money
@bank_alarmed = true
def robbing_the_bank(deactivate_alarm, combination)
if deactivate_alarm
alias rg="rg --smart-case -g='!*.json' -g='!*.svg' --hidden"
alias ag="rg"
export HISTFILESIZE=30000
export HISTSIZE=30000
# Avoid duplicates
export HISTCONTROL=ignoreboth:erasedups
export HISTIGNORE="atom*:ag*:rg*:cat*:history:subl*:touch*:g:ls:rm*:mv*:cp*:ll:cd*:push:pull:git*:GS_ENV=live*"
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
#myImg {
border-radius: 5px;
cursor: pointer;
class Animalize
attr_reader :easting, :northing
def initialize(easting, northing)
@easting = easting
@northing = northing
end
HORSE = [[59, 338], [63, 350], [105, 376], [105, 347], [93, 347], [80, 335], [76, 330], [76, 330], [70, 289], [73, 282], [97, 277], [146, 263], [171, 296], [171, 296], [212, 379], [213, 385], [211, 393], [193, 422], [225, 422], [230, 401], [238, 389], [230, 369], [230, 369], [223, 344], [218, 323], [205, 262], [312, 258], [329, 318], [319, 347], [284, 395], [268, 422], [302, 423], [303, 410], [304, 406], [313, 396], [327, 370], [364, 333], [364, 333], [369, 323], [365, 300], [382, 263], [406, 288], [437, 314], [437, 314], [444, 321], [456, 343], [469, 386], [466, 399], [466, 399], [454, 422], [485, 422], [485, 408], [486, 405], [486, 405], [493, 392], [474, 328], [474, 328], [472, 305], [469, 295], [458, 281], [444, 246], [441, 187], [419, 144], [461, 256], [461, 263], [502, 263], [411, 135], [352, 121], [219, 130], [72, 40], [45, 44], [3, 41], [25, 59], [26, 114], [
@ticktricktrack
ticktricktrack / .rubocop.yml
Created February 13, 2016 08:06
test driving updated rubocop config
# This is the default configuration file. Enabling and disabling is configured
# in separate files. This file adds all other parameters apart from Enabled.
# inherit_from:
# - enabled.yml
# - disabled.yml
# Common configuration.
AllCops:
# Include common Ruby source files.

hahahHHahaH͂̇̈ͅa̱̤̲̺̹ͣͬ͒̌̂ͨ̚h̵̹͚̆ạ̵̹͎̹͖̫̒h͔̦͉ͩ̑́͌̚ā̹͌̿͒̓͘H͎̹͈̃͒͞Aͨ̽ͣ͟H̳̖͉͚ͤͦͩͣ̋̇͜A̬̙ͪͯH̠̤͉̔ͭͬͧ͋ͭͅA̙͈̰͙̘ͣ̃h̉̐̚͏̷̶̙͖͈̮a̦͈͛̓͋̋͒͜h̷̢̦̩͍͇̥̬͌̂ͅa̰͇̥̠̗̩͈̍ͮ̉ͭͣͬ͛̿ͅh̵̥̫̬̠͚͚̭̐͆̀â̵̯͉ͤ̐̕H̸̡̲̩̳̯̲͚ͦ̓ͭͪͮ̚͝hͥ̏ͮ͛̀͗ͪ̋͐҉̵̟̱̤̗̫͇̳̩̘a̷̮̬̯̱̓ͭͨ͗ͫ͒͂h̸̤̩̟̭̟͈͍̫̙ͦͯ̔̓ͦ̔ͨ͘͡a̻̗̥̲̬͙̿̽͌ͪ̽ͣ̏̈̕H̷̨̪̩̜̝̞̺͓͕̒͡A̝̺̦͚̘͕͓̎̅͐̊́̽͑͌̇̀͡h̸̴̺͚͓̹̗͓̖̠̪̖̤͈̯̤̻̺̹̐ͨͭͬͦ̽͊̔̈̎͋̆ͥ́͢ả̢̪̦̥̪̹̻̟̱̯̝͙̳̟̊̊ͧͥ̾̓͒̊͋ͪͬͪ̉̓̿̃͝ͅͅh̴̆̑̇͑̑̓ͫ̌̒̓̏̈̓ͣ̏̅̚̚͠҉̗͔͍̣̟̭̦͕̝̠̯̩̗͚̘̜͎͓͡a̷̙̫̬͈̖̺̤̪̟̟̍ͬͧͤ̃̒͢ḩ̸̙̺͕̠̩̲̫̼̮͍̠͚̘̹̪͕̅̄̍̍̃̿̅̀ͤ̓͌ͪ̌̏̎ͬ̏̇͑͢͟͝ǎͭͯ̾̈̀̊̂ͮ͆ͧ̋̃ͬͪͥͨ̋͏̢̖̮̘̼̱̩̰͙̥̪̠͇͍̻͔̝͢͝H̴̸̵̱̜͍̻̖̥̹̤̱ͯ̏̃̊͗ͬͨ̈͠A̛̰̠̙̰͓͔͖͈̫̠̝̘͈̠̘̥̣̦̯͂͛ͮ̍̌̽̈́͒ͮͮͣ͊͌̊͋ͭ̀̚͢͝H̷̴͓̼̺̝͓̜̎ͫ͑̂͂̿̅̔̓ͣ͋͆̒̀̚̚͞ͅAͧ̓́ͯ̈́̽̾̍̑̇̏̋̈́͑ͮͮͨ҉̛͖̖̪̙̻h̢͉̮̠̟͎͎̃̎̃̏̏̾̉ͨ̾̚͟h̶̢̘̺͈̜̲̼̩͖̝̗̗ͤͩͪ͒͊̈͊̑́̀̚͞͞a̷̧̡̲͕͓͙̥̫̱̮̝ͣͩ̊̎ͪͯ̅̇͑̃ͧ̿̃̑̂̕ḥ̨̰̥̙͔̖̱͔̭͕̳̘͓͌̓̿͌͂̄͛̿̑̅̈́͒ͦ̉̓̔͠͝͡a̸̧͍̯̼͉̬͇̘̼̲̙͎̗̙͕͔̤͕̥͊̎ͮͤ͛ͬͩ́͊́̿͐ͬ̃̂̊̒̍̉

@ticktricktrack
ticktricktrack / .0rails_installation_ubuntu.sh
Last active August 29, 2015 14:16
Ruby on Ubuntu Installation
# general dependencies
sudo apte-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
# git
sudo apt-get install curl git-core bash-completion
# rbenv in one go
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
# bashrc + rbenv
class Player
def play_turn(warrior)
@health ||= 20
@attacked ||= false
@warrior = warrior
@space = warrior.feel(:forward)
@spaces = warrior.look(:forward)