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 React from "react"; | |
interface InjectedProps { | |
injected1: string; | |
} | |
interface PubProps<Foo> { | |
pubProp1: Foo; | |
} | |
declare function bind<T>( | |
component: React.ComponentType<T & InjectedProps>, |
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
# Add the following lines of code to your `~/.bash_profile`, | |
# and then run `source ~/.bash_profile` to be able to execute | |
# this from the command line. | |
# Originally from: https://gist.github.com/johngraham262/6546595 | |
# Spaces-in-filenames from: https://gist.github.com/johngraham262/6546595#gistcomment-1823783 | |
openx() { | |
fileToOpen=''; | |
find . -maxdepth 1 -name *.xcworkspace -print0 | while IFS= read -r -d '' file; do | |
fileToOpen=$file | |
done |
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 | |
`xcode-select -p | grep -i beta > /dev/null` | |
if [ $? -eq 0 ] | |
then | |
echo "Using beta. Switching to release." | |
sudo xcode-select -s /Applications/Xcode.app | |
else | |
echo "Using release. Switching to beta." | |
sudo xcode-select -s /Applications/Xcode-beta.app |