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/sh | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
consoleregexp='^[^#]*mp[^a-zA-Z0-9]' | |
# CHECK | |
if test $(git diff --cached | grep $consoleregexp | grep + | wc -l) != 0 | |
then |
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
class Object | |
def log_error message, object=nil | |
if Device.simulator? | |
mp "ERROR: #{message}" | |
mp object if object | |
else | |
NSLog("ERROR: #{message}: %@\n".to_s, object) | |
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
### Keybase proof | |
I hereby claim: | |
* I am dchersey on github. | |
* I am davidhersey (https://keybase.io/davidhersey) on keybase. | |
* I have a public key ASDllaV0hEsBCUkII2Ehzi6YaZ0XILf7BZi5kZF1F1pruAo | |
To claim this, I am signing this object: |