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
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
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
/* Use this pattern when you want your parent components dimension | |
* to be dependent by it's children components dimensions. | |
*/ | |
const styles = StyleSheet.create({ | |
container: { | |
flexDirection: 'row', | |
alignItems: 'center', | |
alignSelf: 'flex-start' | |
}, |
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
// This block is needed to execute Chrome on Travis | |
// If you ever plan to use Chrome and Travis, you can keep it | |
// If not, you can safely remove it | |
// https://github.com/karma-runner/karma/issues/1144#issuecomment-53633076 | |
if(configuration.browsers[0] === 'Chrome' && process.env.TRAVIS) { | |
configuration.customLaunchers = { | |
'chrome-travis-ci': { | |
base: 'Chrome', | |
flags: ['--no-sandbox'] | |
} |
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
<!-- The fileinput-button span is used to style the file input field as button --> | |
<button class="btn btn-default btn-lg upload-btn fileinput-button"> | |
<span>Upload More Files</span> | |
<!-- The file input field used as target for the file upload widget --> | |
<input id="fileupload" type="file" name="files[]" multiple> | |
</button> |
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
// This will animate all the path rendering to draw from the begining of the path to the end of the path | |
var paths = d3.selectAll('path.link'); | |
paths.each(function () { | |
var path = d3.select(this); | |
var totalLength = path.node().getTotalLength(); | |
path.attr("stroke-dasharray", totalLength + " " + totalLength) | |
.attr("stroke-dashoffset", totalLength) | |
.transition() |
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
// The only reason this stupid method exists is because some versions of android | |
// will not render the a fixed element correctly. We move it just so this dumb button | |
// will be visible. | |
moveButton: function () { | |
var self = this; | |
this.$('.buttons-section').css({bottom: '1px'}); | |
setTimeout(function () { | |
self.$('.buttons-section').css({bottom: 0}); | |
}, 200); | |
}, |
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
<!-- Simply wrap your h1 with another div. This html is very semantic and doesnt add a unnecessary div | |
tag just for the icon. As far as anyones concerned, no icon even exists according to this HTML. --> | |
<div class="header-container"> | |
<h1>Some Header Text Here</h1> | |
</div> |
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
<!-- this anchor contains some other html elements as it's children. By default it will NOT | |
expand to the size of its children. It's demensions in the browser will be 0x0 until you implement the correct css. --> | |
<a href="#someLink" class="some-link-button"> | |
<div class="button">Click here</div> | |
</a> |
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
html,body { | |
height: 100%; | |
} | |
/* The bottom margin on #wrap must be the negative value of the height on #push and #footer. | |
* | |
* e.g. | |
* ------------------------------------------ | |
* #push and footer height is 60px; | |
* #wrap margin bottom is -60px; |
NewerOlder