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/bash | |
echo "*** Removing saved user…" | |
rm -rf "${HOME}/Library/Application Support/GitHub for Mac/usersByServer.plist" | |
echo "*** Removing keychain items…" | |
security -q delete-internet-password -s github.com/mac | |
security -q delete-generic-password -l 'GitHub for Mac — github.com' |
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
[[[NSUserDefaults standardUserDefaults] rac_subscribableForKeyPath:@"MyUserDefault" onObject:self] subscribeNext:^(id x) { | |
NSLog(@"%@", x); | |
}]; |
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
#ifndef _DCT_WEAK_H | |
#define _DCT_WEAK_H | |
// Macros for portable support of notionally weak properties with ARC | |
// Forked from https://gist.github.com/1354106 | |
// Updated by Rowan James | |
// Available at https://gist.github.com/1530868 | |
// Defines: | |
// dct_weak to be used as a replacement for the 'weak' keyword: | |
// @property (dct_weak) NSObject* propertyName; |