Skip to content

Instantly share code, notes, and snippets.

boourns

Block or report user

Report or block boourns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@boourns
boourns / rebase.sh
Created Sep 21, 2016
Rebase your branch with this 1 simple trick
View rebase.sh
# 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
}
View gist:d4082e841fea540d8348
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
View propChanger.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
@boourns
boourns / gist:5924818
Created Jul 4, 2013
example of iterating over shop vendors
View gist:5924818
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:
You can’t perform that action at this time.