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 | |
echo "Checking for migrations" | |
while [[ $(python manage.py showmigrations | grep '\[ \]') ]]; do | |
echo "--> Waiting for migrations to be applied..." | |
sleep 0.5 | |
done | |
echo "OK migrations are ready" | |
exec "$@" |
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
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
Text, | |
TextInput, | |
ScrollView, | |
View | |
} = React; |
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
# Requires the 'requests' module: http://docs.python-requests.org/en/latest/ | |
import json | |
import requests | |
URL = 'https://data.atlasats.com:4000/api' | |
def bayeux_call(data): | |
headers = {'content-type': 'application/json'} | |
res = requests.post(URL, data=json.dumps(data), headers=headers, verify=False) # no SSL cert check |
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
UITapGestureRecognizer *recogizer = [[UITapGestureRecognizer alloc] initWithTarget:^{ | |
NSLog(@"Hello!"); | |
} action:@selector(invoke)]; | |
[myView addGestureRecognizer:recogizer]; |