I hereby claim:
- I am randombrein on github.
- I am randombrein (https://keybase.io/randombrein) on keybase.
- I have a public key whose fingerprint is 2C32 B010 07BB F5D2 9D6A 928D 5276 996E 63B2 9769
To claim this, I am signing this object:
| #!/bin/bash | |
| ############################ | |
| # 'pre-push' script that prompt the push to user and | |
| # then call another script which exist at %rel_path/%script_name | |
| # (mostly lays at $SRCROOT) | |
| #set your script | |
| script_name="another.sh" | |
| #relative path |
| #!/bin/bash | |
| function get_env_val { | |
| path=$(xcode-select -print-path) | |
| var=$($path/usr/bin/xcodebuild -showBuildSettings | sed -n -e 's/'"$1"' = \(.*\)/\1/p') | |
| echo $var | |
| } | |
| SRCROOT=$(get_env_val "SRCROOT") |
| #!/bin/bash | |
| ################################ | |
| # Xcode post-build action script | |
| # to send adhoc to TestFlight over Upload API | |
| # | |
| TESTFLIGHT_BUILD=1 | |
| if [[ $TESTFLIGHT_BUILD -ne 1 ]] | |
| then | |
| exit |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxCxDxBxegedabagacadexport | |
| export PATH="$HOME/bin:$PATH" | |
| export PATH="/usr/local/bin:$PATH" | |
| export PATH="/usr/local/sbin:$PATH" | |
| alias ll='ls -l' | |
| alias nano='nano -m -S' | |
| alias subl="'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl'" |
| import shutil | |
| from os.path import expanduser, dirname, abspath, join, isfile | |
| from datetime import datetime as dt | |
| import lxml.html | |
| from biplist import readPlist, writePlist, InvalidPlistException, NotBinaryPlistException | |
| from time_uuid import TimeUUID | |
| """ | |
| TODO: | |
| - read/unread |
I hereby claim:
To claim this, I am signing this object:
| /* | |
| We have to jump through some serious hoops to get the bundle of the caller; | |
| [self class] doesn't work reliably when our classes are generated at the runtime. | |
| Instead, we fetch the return address, look up the container image, | |
| and attempt to match it against a loaded bundle. | |
| */ | |
| NSBundle *bundle = nil; | |
| void *p = __builtin_return_address(0); |
| #import <Foundation/Foundation.h> | |
| typedef void (^ReceptionistTask)(NSString *keyPath, id obj, NSDictionary *change); | |
| @interface Receptionist : NSObject | |
| + (instancetype)receptionistForObject:(id)obj withKeyPath:(NSString*)keyPath withQueue:(NSOperationQueue*)queue withTask:(ReceptionistTask)task; | |
| @end | |
| @implementation Receptionist { | |
| id _observerdObj; |
| # -*- coding: utf-8 -*- | |
| """ | |
| Monotonic increasing sinusoidal curve with same entrance/exit angle | |
| """ | |
| import numpy as np | |
| import pylab | |
| def discrt_tan(x0, y0, x1, y1): |