Matt Polito mattpolito

View gist:5512404
1
Why are you so awesome?
View default_formatter.rb
1 2 3 4 5 6 7 8 9 10
require 'stringio'
 
class DefaultFormatter
attr_reader :output
 
def initialize(output = StringIO.new)
@output = output
end
 
def display(message)
View carrierwave.rb
1 2 3 4 5 6 7 8
CarrierWave.configure do |config|
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: Settings.aws.access_key,
aws_secret_access_key: Settings.aws.secret
}
config.fog_directory = Settings.aws.bucket
end
View gist:1232825
1 2 3 4
only /Propane/ do
map "<Cmd-Option-Left>", "<Cmd-Shift-[>"
map "<Cmd-Option-Right>", "<Cmd-Shift-]>"
end
View ateam.feature
1 2 3 4 5 6 7 8 9 10
Feature:
Background:
Given the year is 1972
And there is a crack commando unit
And that unit has been sent to prison by a "military court"
And it was a crime they did not commit
 
Scenario:
Given the men have escaped from a "maximum security stockade" to the "Los Angeles underground"
And today they are still wanted by the government
View keymandorc.rb
1 2 3 4 5 6 7 8 9 10
# Start Keymando at login
# -----------------------------------------------------------
start_at_login
 
# Disable Keymando when using these applications
# -----------------------------------------------------------
# disable "Remote Desktop Connection"
# disable /VirtualBox/
 
# Basic mapping
View gist:1146988
1 2 3 4 5 6 7 8 9 10
only "Mail" do
nmap "c", "<Cmd-n>" # New message
nmap "j", "<Down>" # Down
nmap "k", "<Up>" # Up
nmap "e", "<Shift-Cmd-e>" # Archive
nmap "<Shift-3>", "<Cmd-Backspace>" # Delete
nmap "s", "<Shift-Cmd-l>" # Star
nmap "r", "<Cmd-r>" # Reply
nmap "a", "<Shift-Cmd-r>" # Reply all
nmap "f", "<Shift-Cmd-f>" # Forward
View poop.rb
1 2 3 4 5 6 7 8 9 10
class Poop
class << self
def outta_my_butt
"( 0 )"
end
end
# or for all you hipsters
# def self.outta_my_butt
# "( 0 )"
# end
View gist:908483
1 2 3 4 5 6 7 8 9 10
/* MrCrankyPants - block users and images from Propane!
* to use, place it in ~/Library/Application Support/Propane/unsupported/caveatPatchor.js (yes, it must be that file name)
*
* Created by ripping code off of https://gist.github.com/825404 and https://gist.github.com/310162
*/
 
Campfire.MrCrankyPants = Class.create({
options: {
blockedUsers: ['Abe L.', 'George W.'],
usersDisallowedToPostImages: ['Theodore R.'],
View .irbrc
1 2 3 4 5 6 7 8 9 10
# Color definitions
ANSI = {}
ANSI[:RESET] = "\e[0m"
ANSI[:BOLD] = "\e[1m"
ANSI[:UNDERLINE] = "\e[4m"
ANSI[:LGRAY] = "\e[0;37m"
ANSI[:GRAY] = "\e[1;30m"
ANSI[:RED] = "\e[31m"
ANSI[:GREEN] = "\e[32m"
ANSI[:YELLOW] = "\e[33m"
Something went wrong with that request. Please try again.