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
" https://github.com/tpope/vim-pathogen | |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set backupdir=/tmp | |
set directory=/tmp | |
" http://vim.wikia.com/wiki/Example_vimrc | |
set nocompatible |
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
===scripts/test/tester.js=== | |
--- | |
browserify: true | |
--- | |
module.exports = function(){ | |
console.log('I am tester!'); | |
}; | |
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
plugins: | |
browserifybundles: | |
bundles: [ | |
{arguments: ['-r', 'src/documents/assets/scripts/test/test']}] |
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
<!doctype html> | |
<html> | |
<head> | |
<link href="lightbox.css" media="all" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<div class="lightbox"> | |
<div class="overlay"></div> | |
<div class="wrapper"> | |
<div class="inner"> |
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
require [ | |
#data | |
'models/options' | |
'models/ui' | |
#thin models | |
'models/optionsOptions' | |
'models/optionsClubHead' | |
'models/optionsGrip' | |
'models/optionsShaft' | |
'models/optionsLengthWrap' |
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
define([],function(){ | |
var formToJson=function(e){ //e = submit event | |
var srcObj={}, //object 2b stringified | |
forEach=Array.prototype.forEach; //2b used on form.elements, which is an array-like html node collection | |
e.preventDefault(); //prevent default form submit | |
forEach.call(e.target.elements,function(item){ //function's param via JS spec on forEach (which also includes two others) | |
srcObj[item.name]=item.value; | |
}); |
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
HTML================================ | |
<div> | |
<input type="radio"><label><span>Short Text</span></label> | |
</div> | |
<div> | |
<input type="radio"><label><span>Longer Text That Should Eventually Wrap</span></label> | |
</div> | |
<div> | |
<input type="radio"><label><span>Longer Text That Should yes Eventually Wrap and wrap and wrap</span></label> |
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 BL={};//Baseline namespace | |
BL.Rule=function(){ | |
this.canvas=document.createElement('canvas'); | |
this.docWidth=document.body.offsetWidth; | |
this.docHeight=document.body.offsetHeight; | |
this.lineHeight=null;//set with init | |
//Declaration initializes and draws | |
this.init(); | |
}; | |
BL.Rule.prototype={ |