I hereby claim:
- I am undees on github.
- I am undees (https://keybase.io/undees) on keybase.
- I have a public key ASBQfkAu8M24QD4pVcAqwB0WbR6VtxTyWjrlGT-fuDh7pgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
klass = Object.const_set :Baz, Class.new | |
method = klass.dynamic_method :main do |generator| | |
generator.push_self | |
generator.push 42 | |
generator.allow_private | |
generator.send_stack :puts, 1 | |
generator.ret | |
end |
change_mind = true | |
attempts = 1000 | |
successes = 0 | |
attempts.times do | |
prize_door = rand(3) | |
guess_door = rand(3) | |
other_doors = [0, 1, 2] - [prize_door, guess_door].uniq | |
empty_door = other_doors.sort_by { rand }.first | |
alt_door = ([0, 1, 2] - [guess_door, empty_door]).first |
# Demo of YARD "duck typing" features; see http://yardoc.org | |
# | |
# Returns an Array containing two of everything in a collection | |
# (it need not be an Enumerable; it just has to have an #each method). | |
# | |
# @param [#each] collection items to double | |
# @return [Array] contains two of each item | |
# | |
def two_of_everything(collection) | |
result = [] |
[alias] | |
gitpatch = log --template 'From: {author}\nDate: {date|date}\nSubject: [PATCH] {desc|firstline}\n\n\n' -p |
require 'oauth' | |
consumer_key = '...' # from SalesForce | |
consumer_secret = '...' # from SalesForce | |
oauth_options = { | |
:site => 'https://login.salesforce.com', | |
:scheme => :body, | |
:request_token_path => '/_nc_external/system/security/oauth/RequestTokenHandler', | |
:authorize_path => '/setup/secur/RemoteAccessAuthorizationPage.apexp', |
#!/bin/sh | |
curl --url http://localhost:50000 -d \ | |
"<plist version=\"1.0\"> \ | |
<dict> \ | |
<key>command</key> \ | |
<string>simulateTouch</string> \ | |
<key>viewXPath</key> \ | |
<string>//UIToolbarButton[1]</string> \ | |
</dict> \ | |
</plist>" |
jruby --ng-server 127.0.0.1:55555 |
alias jr='jruby --ng' | |
alias jrb='jruby --ng -S jirb --noreadline' | |
alias j='jruby --ng -S' |
diff --git a/ApplicationConstants.h b/ApplicationConstants.h | |
--- a/ApplicationConstants.h | |
+++ b/ApplicationConstants.h | |
@@ -32,6 +32,7 @@ | |
#define kTagTask @"task" | |
#define kTagPosition @"position" | |
#define kTagComplete @"complete" | |
+#define kTagMembership @"membership" | |
#define kDefaultsApiToken @"apiToken" |