I hereby claim:
- I am mcgaffin on github.
- I am bookbubdavid (https://keybase.io/bookbubdavid) on keybase.
- I have a public key whose fingerprint is 82D4 DB39 4888 8B56 61A1 86FE CF3B 0136 81B5 564A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from facebook/react-native#1706
First I put this in my constructor function:
var getSectionData = (dataBlob, sectionID) => {
return dataBlob[sectionID];
}
var getRowData = (dataBlob, sectionID, rowID) => {
return dataBlob[sectionID + ':' + rowID];| nvm use 0.10.36 | |
| curl -o meteor_install_script.sh https://install.meteor.com/ | |
| chmod +x meteor_install_script.sh | |
| sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh | |
| ./meteor_install_script.sh |
| # submitted by a user via intercom: https://app.intercom.io/a/apps/hb7wi6ch/inbox/unassigned/conversations/681962001 | |
| mkdir ~/clone/git_clone | |
| mkdir ~/clone/changes_only | |
| cd ~/clone/git_clone | |
| git clone https://username:password@repo | |
| cd ~/clone/git_clone/repo | |
| tar cf - $(git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $COMMIT_ID) | ( cd ~/clone/changes_only; tar xpf -) | |
| lftp -c "open -u $FTP_USER,$FTP_PASSWORD 31.186.174.218; set ssl:verify-certificate no; mirror -R ~/clone/changes_only/ /remote_dir" |
| #!/usr/local/bin/zsh | |
| for (( num=1; num <= 500; num++ )) | |
| do | |
| echo "${num}" | |
| curl -X POST -H "Authorization: Basic <personal_access_token_goes_here>" -H "Cache-Control: no-cache" -d "{\"name\":\"repo${num}\", \"auto_init\": true}" https://api.github.com/orgs/codeshiptest/repos | |
| done |
| // This is inside a subclass of UINavigationController that has been set as the root view of the app. | |
| - (BOOL)shouldAutorotate | |
| { | |
| if ([self.topViewController isKindOfClass:[DetailViewController class]]) { | |
| return [self.topViewController shouldAutorotate]; | |
| } | |
| return NO; | |
| } |
| // adapted from: http://blog.zachwaugh.com/post/309927273/programmatically-retrieving-ip-address-of-iphone | |
| - (NSString *)getIPAddress { | |
| Boolean result; | |
| CFHostRef hostRef; | |
| CFArrayRef addresses; | |
| NSString *hostname = @"domain.myhost.com"; | |
| NSString *ipAddress = @""; | |
| hostRef = CFHostCreateWithName(kCFAllocatorDefault, (CFStringRef)hostname); | |
| if (hostRef) { |