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
<!--[if !mso]><!--> | |
GOOD | |
<script type="text/plain"> | |
<!--<![endif]--> | |
BAD | |
<!--[if !mso]><!--> | |
</script> | |
<!--<![endif]--> |
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
/** | |
* parseAttrOptions | |
* Parses a string of semi-colon delimited options into a plain object. | |
* | |
* @example | |
* parseAttrOptions('align: center; width: 300; neat: true; yagni: [1,2,3]'); | |
* >> {align: 'center', width: 300, neat: true, yagni: [1,2,3]} | |
*/ | |
export default function parseAttrOptions(sOptions){ | |
var opts = {}; |
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
/** | |
* Consolidates routes into a single router for using. | |
* | |
* Nearly all routes re-use the single page application (spa) view; | |
* Specific routes are to use different middleware per url (i.e. restrictTo, title, bootstrap). | |
* | |
*/ | |
var express = require('express'); | |
var router = express.Router(); | |
var middle = require('../middleware'); |
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
// create an array from arrayish lists | |
function arrayFrom(nodelist){ return [].slice.call(nodelist); } |
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
{ | |
"ignoreSslErrors": true, | |
"localToRemoteUrlAccessEnabled": true, | |
"webSecurityEnabled": false | |
} |
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
// utility to assign defaults to options | |
function extend(target, source){ | |
target = target || {}; | |
for (var prop in source) { | |
if(!target.hasOwnProperty(prop)) target[prop] = source[prop]; | |
} | |
return target; | |
} |
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
<video data-wfedit="video" poster="http://www.transgenomic.com/files/shared/common/img/video_poster" controls> | |
<source src="" type="video/mp4" /> | |
<source src="" type="video/webm" /> | |
<source src="" type="video/ogg" /> | |
<a href=""><img src="" /></a> | |
</video> | |
<div>video's next sibling (non-video)</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
ioooooooooooooooooooooooooooooooooooooooooooooooooooooooooyuhhhhhhhhhhhh |
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
[merge] | |
cmd = meld "$LOCAL" "$MERGED" "$REMOTE" | |
tool = meld | |
# photo at: https://www.dropbox.com/s/jiox4pojpp1fmo6/merge-reminder.png |
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
/* E */ | |
// Event style (current implementation) | |
var confirm = notifier.confirm('Are you sure?'); | |
this.listenTo(confirm, 'confirm', function(){ | |
// do something | |
}); | |
this.listenTo(confirm, 'cancel', function(){ | |
// recover | |
}); |