130 bytes, that's what it takes.
"header footer section aside nav article figure figcaption hgroup time main video".replace(/\w+/g,function(a){document.createElement(a)})
var colorz = { | |
black : '\u001b[30m', | |
red : '\u001b[31m', | |
green : '\u001b[32m', | |
yellow : '\u001b[33m', | |
blue : '\u001b[34m', | |
magenta : '\u001b[35m', | |
cyan : '\u001b[36m', | |
white : '\u001b[37m' | |
} |
/*! JS async loader http://www.phpied.com/async-javascript-callbacks */ | |
/*! http://www.html5rocks.com/en/tutorials/speed/script-loading/ */ | |
(function(win, doc, s, undefined){ | |
var src | |
, head = document.getElementsByTagName('head')[0] | |
, fs = document.getElementsByTagName(s)[0]; | |
function loader(url, callback) { | |
var tag = document.createElement(s); |
<!doctype html> | |
<html ng-app="ui"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Angular numeric Stepper</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, height=device-height, maximum-scale=1" /> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.2/css/bootstrap-theme.css" /> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.2/css/bootstrap.css" /> |
/* jshint node:true, strict:false */ | |
var connect = require('connect') | |
, proxy = require('proxy-middleware') | |
, url = require('url'); | |
var app = connect() | |
.use(connect.urlencoded()) | |
.use(connect.logger('dev')) | |
.use(connect.favicon()) | |
.use('/api', proxy(url.parse('https://server.com/api'))) |
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@function stricteq($a, $b) { | |
@if ($a == $b) { | |
@if (unit($a) == unit($b)) { | |
@return true; | |
} |
var httpProxy = require('http-proxy'), | |
connect = require('connect'), | |
endpoint = { | |
host: 'server.com', // or IP address | |
port: 443, | |
prefix: '/api' | |
}, | |
staticDir = 'public'; |
_.reduce(o, function red(memo, val, key){ | |
if(typeof val === 'object'){ | |
_.reduce(val, red, memo) | |
} else { | |
memo[key] = val; | |
} | |
return memo; | |
}, Object.create(null)); |