Skip to content

Instantly share code, notes, and snippets.

View rot26's full-sized avatar
💬
is typing...

Chris rot26

💬
is typing...
  • Colorado, United States
View GitHub Profile
@rot26
rot26 / promise.js
Created June 24, 2016 23:24
Playing with Promises
'use strict';
console.log('starting promise.js');
console.time('A');
function asyncFunc() {
return new Promise(
function (resolve, reject) {
console.log(1);
@rot26
rot26 / browser
Created October 21, 2015 22:35 — forked from defunkt/browser
pipe html to a browser
#!/bin/sh -e
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo '<h1>hi mom!</h1>' | browser
# $ ron -5 man/rip.5.ron | browser
if [ -t 0 ]; then
if [ -n "$1" ]; then
@rot26
rot26 / bootstrap-raw.html
Created January 12, 2015 21:07
Raw Bootstrap Template
<!DOCTYPE html>
<html lang="en">
<head>
<title>Raw | Bootstrap Template</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>