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
# Git | |
alias gs='git status' | |
alias go='git checkout' | |
alias gadd='git add -p' | |
alias gi='git commit' | |
alias gd='git diff' | |
alias gb='git branch' | |
alias gl='git log' |
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
trap('INT') { exit } # graceful exit | |
ROOT = Dir.pwd | |
SRC = File.join(ROOT, 'src') | |
Dir.mkdir(SRC) unless File.directory?(SRC) | |
Dir.chdir(SRC) | |
loop do | |
Dir['**/*.moon'].each do |file| |
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
module ApplicationHelper | |
def markdown(text, *renderer) | |
case renderer[0] | |
props = { | |
hard_wrap: true, | |
gh_blockcode: true, | |
safe_links_only: true, | |
filter_html: true | |
} | |
when :authored |
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
# | |
# Learn Ruby The Hard Way | |
# ======================= | |
# This tool will download you an offline | |
# single-page html version of the book | |
# ======================= | |
# NOTE: This was only does to test how well it performs. | |
# You should read the book on the site: | |
# http://ruby.learncodethehardway.org/book/ | |
# |
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
# | |
# Mirras Runescape IRC Bot | |
# Author: Clooth <[email protected]> | |
# Feature: Settings | |
# | |
require 'cinch/storage/yaml' | |
class Setting | |
@name = nil | |
@value = nil |
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
[2011/12/26 01:05:32.411] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/irc.rb:320:in `block in on_mode': uninitialized constant Cinch::IRC::UnsupportedFeature (NameError) | |
[2011/12/26 01:05:32.413] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/irc.rb:286:in `each' | |
[2011/12/26 01:05:32.413] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/irc.rb:286:in `on_mode' | |
[2011/12/26 01:05:32.413] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/irc.rb:211:in `parse' | |
[2011/12/26 01:05:32.413] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/irc.rb:112:in `block (2 levels) in start_reading_thread' | |
[2011/12/26 01:05:32.413] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/helpers.rb:91:in `rescue_exception' | |
[2011/12/26 01:05:32.413] !! /Users/Nico/.rvm/gems/ruby-1.9.3-p0@mirras/gems/cinch-2.0.0/lib/cinch/irc.rb:110:in `block in start_reading_thread' |
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
# | |
# Mirras Runescape IRC Bot | |
# Author: Clooth <[email protected]> | |
# Feature: InviteJoiner | |
# Somewhat fun way to allow the bot to join channels on invite | |
# | |
class InviteJoiner | |
include Cinch::Plugin | |
include Authentication |
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
# | |
# Mirras Runescape IRC Bot | |
# Author: Clooth <[email protected]> | |
# Feature: InviteJoiner | |
# Somewhat fun way to allow the bot to join channels on invite | |
# | |
class InviteJoiner | |
include Cinch::Plugin | |
include Authentication |
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
#!/bin/bash | |
# Paths | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
VIRTUALENV_DIR="${DIR}/venv" | |
APPLICATION_DIR="${DIR}/Source/bender" | |
REQUIREMENTS_DIR="${APPLICATION_DIR}/requirements" | |
# Text formatting variables | |
UNDERLINE=$(tput sgr 0 1) |
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
# Colors | |
declare -A Colors | |
Colors[black]="\[\033[0;30m\]" | |
Colors[red]="\[\033[0;31m\]" | |
Colors[green]="\[\033[0;32m\]" | |
Colors[yellow]="\[\033[0;33m\]" | |
Colors[blue]="\[\033[0;34m\]" | |
Colors[magenta]="\[\033[0;35m\]" | |
Colors[cyan]="\[\033[0;36m\]" | |
Colors[white]="\[\033[0;37m\]" |
OlderNewer