The general formula of the column width for a known separator width is columnWidth = ( fullWidth + separatorWidth * (1 - columnNb) ) / columnNb
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
/** | |
* Simple plugin to track scroll events and trigger a custom jQuery event (scroll_vertical or scroll_horizontal) | |
* when the corresponding type of scroll has happened. | |
* Event handlers can receive the original scroll event and the scroll delta as second values. | |
* e.g. function(jqEvent, scrollEvent, delta) | |
* | |
* To stop this, unbind the 'scroll.trackScroll.vertical' or 'scroll.trackScroll.horizontal' event | |
* @param {string} direction Scroll direction to track | |
* @return {jQuery} | |
*/ |
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
# Git aliases | |
alias g="git" | |
alias gits="git status" | |
alias gitc="git commit" | |
alias gitb="git branch" | |
alias gs='git status' | |
alias gc='git commit' | |
alias gb='git branch' | |
alias gbr='git branch -r' | |
alias gf='git fetch && git fetch --tags' |
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
<div> | |
<span> | |
<a class="menu-item">Home</a> | |
</span> | |
<span> | |
<a class="menu-item">Contact</a> | |
</span> | |
</div> |
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
var MemDB = require('memdb'); | |
var db = MemDB(); | |
console.log('memdb db = ', db); |
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
<!-- JS Includes --> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js" type="text/javascript"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone.js" type="text/javascript"></script> | |
<script src="https://rawgithub.com/mikeric/rivets/master/dist/rivets.js" type="text/javascript"></script> | |
<script src="https://rawgithub.com/azproduction/rivets-backbone-adapter/master/rivets-backbone.js" type="text/javascript"></script> | |
<p style="color: red;"> | |
Open your dev tools and watch the console log for output. You should notice that when setting the value manually using the Backbone set(), the "routine" is fired off twice. | |
</p> |
NewerOlder