A version of "this is the JS I end up with" from Tag literal example using Tim Caswell's dombuilder library.
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
/** | |
* Scan the given `str` returning tokens. | |
* | |
* @param {String} str | |
* @return {Array} | |
* @api public | |
*/ | |
module.exports = function(str) { | |
var indents = [0] |
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
1791656277811493031594071461534991480627883818443643332265598359849961071923721241979344403603416137980956727244123760604960073429107153174138799426699369040110073942339469352064139152616815779351725451409903792674622321989783206500920392551280245755119305905049733203287299987691385211675050945752567318219060417366628558248882558907516703276400880493331164685917230237156179389574864149344435589976209643987835593227061742165380067670004535173279450259928102210712066102429990394061986877082576682354461449455273738379807517019102423573614377372280098002225588350528749953974499929098993595870573175195111989702300425748883521688735157135629772418003445070382315365742158480367746871453414549171291653802871742066345866953046451641243011726710826522212048170145716720657940825649420349479951546752610269886054294928529232904650183030388822744459452264294504935270671749782940538142864022130895205291875111657893282592565962101832890336569288120364269983661752826934453553052247449228241948936186794455929767436696938337387 |
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
var beziers = { | |
easeInQuad: '.55,.085,.68,.53' | |
, easeInCubic: '.55,.055,.675,.19' | |
, easeInQuart: '.895,.03,.685,.22' | |
, easeInQuint: '.755,.05,.855,.06' | |
, easeInSine: '.47,0,.745,.715' | |
, easeInExpo: '.95,.05,.795,.035' | |
, easeInCirc: '.6,.04,.98, .335' | |
, easeInBack: '.6,-.28,.735,.045' | |
, easeOutQuad: '.25,.46,.45,.94' |
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
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
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
var fs = require('fs') | |
, path = require('path') | |
, colors = require('colors') | |
, argv = require('optimist').argv | |
fs.readFile(path.join(__dirname, argv._[0]), function (err, data) { | |
var lines = data.toString().split('\n') | |
for (var i = 0; i < lines.length; i++) { | |
var match = lines[i].match(/;\s*(?:\/\/.*)?$/) | |
if (match) { |
NewerOlder