This file contains hidden or 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 org.scalajs.dom.raw.Event | |
import org.scalajs.jquery.jQuery | |
import scala.scalajs.js.JSApp | |
object App extends JSApp { | |
def main(): Unit = { | |
import js.Store.Reducer | |
val $ = jQuery |
This file contains hidden or 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
export default function bindCheckAuth(store, onFail) { | |
return (nextState, transition) => { | |
const resolveAuth = (resolve, reject) => { | |
if (!store.getState().authentication.get('isReady')) { | |
return setTimeout(() => resolveAuth(resolve, reject), 25); | |
} | |
store.getState().authentication.get('isLoggedIn') ? resolve() : reject(); | |
}; |
This file contains hidden or 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 | |
if [ $# -lt 1 ]; then | |
echo "Usage: phps 54"; | |
exit; | |
fi | |
VERSION=$1 | |
/usr/bin/sudo ln -sf /opt/local/bin/php$1 /opt/local/bin/php |