- Classic Casual -
game_type 0game_mode 0 - Classic Competitive -
game_type 0game_mode 1 - Arms Race -
game_type 1game_mode 0 - Demolition -
game_type 1game_mode 1 - Deathmatch -
game_type 1game_mode 2
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'csv' | |
| abort("You must specify a CSV file") unless ARGV.length == 1 | |
| CSV do |out| | |
| CSV.foreach(ARGV[0], encoding: 'ISO-8859-1') do |row| | |
| out << row.map { |c| c.nil? ? nil : c.encode('UTF-8') } | |
| end |
This file contains hidden or 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
| http://facebook.com/ | |
| http://twitter.com/ | |
| http://google.com/ | |
| http://youtube.com/ | |
| http://wordpress.org/ | |
| http://adobe.com/ | |
| http://blogspot.com/ | |
| http://wikipedia.org/ | |
| http://linkedin.com/ | |
| http://wordpress.com/ |
Download the appropriate version for your OS at http://www.vim.org/download.php
vimtutor
This file contains hidden or 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
| require 'yaml' | |
| module MyRailsApp | |
| module Config | |
| extend self | |
| def [](key) | |
| hash[key.to_sym] | |
| end |
This file contains hidden or 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
| def body_tag(&blk) | |
| controller_name = controller.class.to_s.underscore.gsub(/_controller$/, '').gsub(/\//,'_') | |
| action_name = controller.action_name.underscore.gsub(/_/,'-') | |
| content_tag(:body, :id => "#{controller_name}-#{action_name}", :class => controller_name, &blk) | |
| end |
This file contains hidden or 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
| [core] | |
| editor = /usr/bin/vim | |
| [alias] | |
| st = status | |
| br = branch | |
| d = diff | |
| ci = commit -v | |
| cia = commit -v -a | |
| co = checkout | |
| cp = cherry-pick |
This file contains hidden or 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
| begin | |
| require 'autotest/growl' | |
| Autotest::Growl::image_dir = File.join(ENV['HOME'], '.autotest-growl') | |
| Autotest::Growl::hide_label = true | |
| Autotest::Growl::clear_terminal = false | |
| rescue LoadError | |
| puts "No Growl support -- gem install autotest-growl" | |
| end |
This file contains hidden or 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
| TARGET=pomodoro | |
| MCU=attiny13 | |
| CC=/usr/bin/avr-gcc | |
| CFLAGS=-g -Os -Wall -mcall-prologues -mmcu=$(MCU) | |
| OBJ2HEX=/usr/bin/avr-objcopy | |
| AVRDUDE=/usr/bin/avrdude | |
| program : $(TARGET).hex | |
| sudo $(AVRDUDE) -c usbtiny -p$(MCU) -U flash:w:$(TARGET).hex |