Skip to content

Instantly share code, notes, and snippets.


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 /
Created Sep 21, 2016
Rebase your branch with this 1 simple trick
# 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.shadow]} />
<View style={[, styles.transparent]} >
// put buttons here
View propChanger.js
* Sample React Native App
'use strict';
var React = require('react-native');
var {
boourns / gist:5924818
Created Jul 4, 2013
example of iterating over shop vendors
View gist:5924818
Example of iterating over list of vendors:
{% for product_vendor in shop.vendors %}
<li class="{{ product_vendor }}">{{ product_vendor | link_to_vendor }}</li>
{% endfor %}
Example of converting list to JSON:
You can’t perform that action at this time.