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
package main | |
import ( | |
"context" | |
"io" | |
"os" | |
"os/exec" | |
"github.com/creack/pty" | |
) |
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
require "benchmark/ips" | |
require "benchmark/memory" | |
require 'bundler' | |
class Bundler::Settings | |
def original(name) | |
key = key_for(name) | |
value = configs.values.map {|config| config[key] }.compact.first | |
converted_value(value, name) |
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
# frozen_string_literal: true | |
require 'action_controller' | |
require 'benchmark/ips' | |
require 'benchmark/memory' | |
puts "ActionPack.version = #{ActionPack.version}" | |
module Actions | |
def foo | |
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
# frozen_string_literal: true | |
require 'benchmark/ips' | |
require 'benchmark/memory' | |
def original(name) | |
name.to_s.split(/-/).map {|s| s.capitalize }.join('-') | |
end | |
def string(name) | |
name.to_s.split('-').map {|s| s.capitalize }.join('-') |
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
require 'benchmark/ips' | |
require 'stack_frames' | |
STACK_FRAMES_BUFFER = StackFrames::Buffer.new(500) | |
def recurse(n, &block) | |
if n > 0 | |
recurse(n - 1, &block) | |
else | |
yield |
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
njero - http://neverlet.be | |
sutto - http://blog.ninjahideout.com | |
zapnap - http://blog.zerosum.org | |
tpope - http://tpope.net | |
reinh - http://reinh.com | |
bryanl - http://smartic.us | |
linoj - http://www.vaporbase.com | |
technicalpickles - http://technicalpickles.com | |
MaD15 - enlightsolutions.com/ | |
qrush - http://litanyagainstfear.com/ |
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 | |
set -e | |
for opt in $* ; do | |
case "$opt" in | |
--debug) hubot_debug="coffee --nodejs --debug";; | |
esac | |
done |
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
namespace :db do | |
task :pull do | |
run "cd #{current_release} && RAILS_ENV=#{rails_env} rake db:data:dump" | |
download "#{current_release}/db/data.yml", "db/data.yml" | |
`rake db:reset db:data:load` | |
end | |
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
# Using Sonic-Pi | |
samps = "/Users/technicalpickles/Dropbox/sonicpi-samples/" | |
##| use_bpm 120 | |
define :mario_waha do |options={}| | |
options ||= {} | |
sample samps, "mlpit_mario_waha.wav", options | |
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
# Description: | |
# Get help from @yourorg/it for your information technology problems. Oh by the way.... Your Welcome. | |
# | |
# Commands: | |
# hubot it me <problem> - get help from @yourorg/it about your information technology <problem> | |
module.exports = (robot) -> | |
robot.respond /it(?: me)?(?: (.*))?/i, (msg) -> | |
problem = msg.match[1] |
NewerOlder