I hereby claim:
- I am statonjr on github.
- I am statonjr (https://keybase.io/statonjr) on keybase.
- I have a public key whose fingerprint is 5017 2133 BC35 DD9A 8CBD A997 3869 FC94 42C2 D6ED
To claim this, I am signing this object:
# Rails only allows databases local to your machine. If you run your databases in a VM | |
# (and you should), then you need to add this | |
namespace :db do | |
def local_database?(config, &block) | |
if config['host'].in?(['127.0.0.1', 'localhost', '172.16.12.102']) || config['host'].blank? | |
yield | |
else | |
$stderr.puts "This task only modifies local databases. #{config['database']} is on a remote host." | |
end |
# target: dist - Archive and deploy to local Immutant VM | |
dist: | |
lein immutant archive && \ | |
scp target/charon.ima local@172.16.12.105:apps/ && \ | |
scp resources/deployment/local.clj 'local@172.16.12.105:.immutant/current/jboss/standalone/deployments/charon.clj' && \ | |
ssh -t local@172.16.12.105 "touch ~/.immutant/current/jboss/standalone/deployments/charon.clj.dodeploy" | |
# target: help - Display callable targets. | |
help: | |
egrep "^# target:" Makefile |
I hereby claim:
To claim this, I am signing this object:
: sum-digits ( n -- n ) number>string [EBNF rule=[0-9]+ EBNF] [ 1 swap <string> string>number ] map 0 [ + ] reduce ; |
--- | |
language: objective-c | |
before_script: | |
- ./scripts/travis/add-key.sh | |
after_script: | |
- ./scripts/travis/remove-key.sh | |
after_success: | |
- ./scripts/travis/testflight.sh | |
env: | |
global: |
EDN ::= Whitespace (Comment | (Discard Whitespace)? (Tag Whitespace)? (List | Vector | Map | Set | String | Number | Keyword | Symbol | Nil | Boolean | Char) Whitespace Comment?) | |
Nil ::= "nil" | |
True ::= "true" | |
False ::= "false" | |
Boolean ::= True | False | |
Symbol ::= (Namespace "/")? ("/" | (Alphabetic Alphanumeric*)? (("-" | "." | "+")? Alphabetic | ("*" | "!" | "_" | "?" | "$" | "%" | "&" | "=")) (Alphanumeric | "#" | ":")*) /* FIXME: very inaccurate */ | |
Keyword ::= ":" Symbol | |
/* Whitespace */ |
I hereby claim:
To claim this, I am signing this object:
[[NSBundle bundleWithPath:'/Library/Frameworks/JSON.framework'] load]; |
#!/usr/bin/macruby | |
# Need the AddressBook framework | |
framework 'AddressBook' | |
# Singleton | |
ab = ABAddressBook.sharedAddressBook | |
# me is the ABRecord of the current logged in user | |
# valueForProperty() is the KVO method to get the constant |