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
# add to your .bash_profile | |
function rebase(){ | |
curbranch=`git rev-parse --abbrev-ref HEAD` | |
git checkout master | |
git pull origin master | |
git checkout $curbranch | |
git rebase master | |
} |
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
styles = StyleSheet.create({ | |
box: { position: 'absolute', top:0, left: 0, right:0, bottom:0}, | |
shadow: { backgroundColor: 'black', opacity: 0.1 }, | |
transparent: { backgroundColor: 'transparent' } | |
}); | |
<View style={{flex: 1}} > | |
<View style={[styles.box, styles.shadow]} /> | |
<View style={[styles.box, styles.transparent]} > | |
// put buttons here |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, |
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
Example of iterating over list of vendors: | |
<ul> | |
{% for product_vendor in shop.vendors %} | |
<li class="{{ product_vendor }}">{{ product_vendor | link_to_vendor }}</li> | |
{% endfor %} | |
</ul> | |
Example of converting list to JSON: |