I hereby claim:
- I am buren on github.
- I am buren (https://keybase.io/buren) on keybase.
- I have a public key whose fingerprint is 323D 61B6 0AC7 6D5D AAE3 9F9B 1C12 24B1 298D BF94
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Shameless steal from http://askubuntu.com/a/85111 | |
# git branch in zsh-prompt | |
echo ' | |
autoload -Uz vcs_info | |
precmd () { vcs_info } | |
setopt prompt_subst | |
PS1="\$vcs_info_msg_0_$PS1"' >> ~/.zshrc |
class RetryableCall | |
DEFAULT_OPTIONS = { | |
sleep: 0.5, | |
max_retries: 5 | |
} | |
def self.perform options = {}, &block | |
new(options).perform(&block) | |
end |
I hereby claim:
To claim this, I am signing this object:
package utils; | |
import java.net.URL; | |
public class Enduro { | |
private static Enduro ourInstance = new Enduro(); | |
public static Enduro getInstance() { | |
return ourInstance; | |
} |
# https://gist.github.com/buren-trialbee/f51c6d37ea96618bcc49 | |
task :console do | |
require 'irb' | |
require 'irb/completion' | |
require 'my_gem' | |
ARGV.clear | |
IRB.start | |
end |
class Meta | |
def self.make_method(meth_name) | |
define_method meth_name do |adjective| | |
puts "#{meth_name} is a #{adjective} method name" | |
end | |
end | |
def method_missing(meth, *args, &block) | |
puts "Method #{meth} is not defined on this class" | |
self.class.make_method(meth) |
ROOM_ID=yourroomname | |
OWNER_ID=XXXYYYX | |
AUTH_TOKEN=XXXYYYXXX | |
MESSAGE="Hello world!" | |
curl --header "content-type: application/json" --header "Authorization: Bearer $AUTH_TOKEN" -X POST \ | |
-d "{\"name\":\"dev\",\"privacy\":\"private\",\"is_archived\":false,\"is_guest_accessible\":false,\"topic\":\"cURL\",\"message\":\"Message sent to HipChat from cURL\",\"color\":\"green\",\"owner\":{\"id\":$OWNER_ID}}" https://api.hipchat.com/v2/room/$ROOM_ID/notification |
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
require 'set' | |
last = (ARGV.shift || fail('<int> Permute of last n chars must be set')).to_i | |
seed = ARGV | |
fail 'At least one seed must be provided' if seed.empty? | |
def say(name) | |
puts name | |
`say #{name}` |