A version of "this is the JS I end up with" from Tag literal example using Tim Caswell's dombuilder library.
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 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) { |
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
#!/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 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 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 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] |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
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
#!/bin/bash | |
# Favicon and Apple Touch Icon Generator | |
# | |
# This bash script takes an image as a parameter, and uses ImageMagick to convert it to several | |
# other formats used on modern websites. The following copies are generated: | |
# | |
# * apple-touch-icon-114x114-precomposed.png | |
# * apple-touch-icon-57x57-precomposed.png | |
# * apple-touch-icon-72x72-precomposed.png |
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> | |
<meta charset="utf-8"> | |
<title>test</title> | |
</head> | |
<body> | |
<script> | |
// alerts 'fake' then 'real' |
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
(function(exports) { | |
function nop() {} | |
// IE doesn't always have console, place a no-op shim for it. | |
if (!window.console) { | |
window.console = {log: nop, info: nop, warn: nop, error: nop}; | |
} | |
// Transforms an Error to a simple object that can be JSONified. | |
function error_to_object(error) { |
OlderNewer