- Enter my email address twice.
- Download an 800MB file at a snailcrawl or install suspicious download manager. (Opted for snailcrawl)
- wait 45 minutes for said download with a 20Mb/s pipe.
- Enter my email address twice more.
- Get a 65MB "maniaplanet update" I get that your company is maniaplanet but what do I need to update a client I literally JUST DOWNLOADED for?
- Restart the client thing.
- enter my email YET AGAIN. Honestly, what. the. balls.
- log in with username/pass
- Download a 200MB update.
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
Pry's handling of heredocs within existing indented | |
blocks such as method definitions. Steps to reproduce: | |
1. start pry | |
2. start a method definition | |
3. Open <<EOF style heredoc (as opposed to <<-EOF) | |
4. Type any text | |
5. Close the heredoc | |
6. End the method | |
7. Observe that the input buffer does not close until it is cleared with '!' |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
# gem "rails" | |
gem "nokogiri" |
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
class GuessRange | |
attr_accessor :min, :max | |
def initialize min, max | |
@min, @max = min, max | |
end | |
def average | |
(min + max) / 2 | |
end |
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
five_hour_clock = Clock.new(5) | |
five_hour_clock.next_hour #=> 0 | |
five_hour_clock.next_hour #=> 1 | |
five_hour_clock.next_hour #=> 2 | |
five_hour_clock.reset! | |
five_hour_clock.pass_time(16) #=> 1 | |
four_hour_clock = Clock.new(4) |
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
PLATFORM VERSION INFO | |
Windows : 6.1.7600.0 (Win32NT) | |
Common Language Runtime : 4.0.30319.544 | |
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100) | |
clr.dll : 4.0.30319.544 (RTMLDR.030319-5400) | |
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100) | |
dfshim.dll : 4.0.31106.0 (Main.031106-0000) | |
SOURCES | |
Deployment url : http://play-windows.s3.amazonaws.com/Play.application |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background-color: white; | |
color: black; | |
} | |
/* every p inside a div */ |
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
# models/debate.rb | |
class Debate < ActiveRecord::Base | |
attr_accessible :opposition_id, :proposition_id, :title | |
validates :proposition_user_id, presence: true | |
validates :proposition_id, presence: true | |
validates :title, presence: true | |
has_many :users | |
has_one :proposition |
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 | |
CHAT_SESSION=${CHAT_SESSION:-weechat} | |
CHAT_ROOM=${CHAT_ROOM:-ops} | |
GITHUB_ACCOUNT=${GITHUB_ACCOUNT:-$(git config github.user)} | |
PROJECT=${PROJECT:-"$GITHUB_ACCOUNT/$(basename `pwd`)"} | |
tmux send-keys -t $CHAT_SESSION "/buffer $CHAT_ROOM" C-m | |
tmux send-keys -t $CHAT_SESSION "hubot deploy $PROJECT" C-m |
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
posts GET /posts(.:format) posts#index | |
POST /posts(.:format) posts#create | |
new_post GET /posts/new(.:format) posts#new | |
edit_post GET /posts/:id/edit(.:format) posts#edit | |
post GET /posts/:id(.:format) posts#show | |
PUT /posts/:id(.:format) posts#update | |
DELETE /posts/:id(.:format) posts#destroy |