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
import Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
/// define an operation success or error result | |
enum Result<T> { | |
case error(Error) | |
case success(T) | |
} |
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
""" | |
Prerequisites: | |
$ pip install biplist | |
$ pip install requests | |
Usage: | |
python dsym_symbolizer.py --dsym_url https://www.example.com/MyStuff.framework.dSYM.zip \ | |
--source_path /Users/MeMySelfAndI/MyStuffSources \ | |
--binary_path /Users/MeMySelfAndI/MyProject/Pods/MyStuff/MyStuff.framework | |
""" |
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 | |
PLUGINS_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode/Plug-ins" | |
XCODE_INFO_PATH=$(xcode-select -p) | |
XCODE_INFO_PATH=$(dirname "$XCODE_INFO_PATH")/Info | |
DVTPlugInCompatibilityUUID=$(defaults read "$XCODE_INFO_PATH" DVTPlugInCompatibilityUUID) | |
for plugin in "$PLUGINS_DIR"/*.xcplugin; do | |
plugin_info_path="$plugin/Contents/Info" | |
if [[ -f "$plugin_info_path.plist" ]]; 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
// | |
// Singleton_Template.h | |
// | |
// Created by Alex Lee on 3/11/15. | |
// | |
#undef AS_SINGLETON | |
#define AS_SINGLETON \ | |
+ (instancetype)sharedInstance; \ |
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 | |
function usage() | |
{ | |
echo -e "Usage:\n\t$(basename $0) offical|gitcafe|oschina|<other repo url>\n\n" | |
} | |
####################################### | |
if [[ $# -lt 1 ]]; then | |
usage;exit |