I hereby claim:
- I am thomaswilburn on github.
- I am thomaswilburn (https://keybase.io/thomaswilburn) on keybase.
- I have a public key whose fingerprint is FD1F EAF5 B393 F445 FBE8 D8B7 FAAE B714 8B00 EDC2
To claim this, I am signing this object:
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<title>Making progress...</title> | |
<style> | |
body { | |
width: 600px; | |
margin: auto; | |
max-width: 100%; |
I hereby claim:
To claim this, I am signing this object:
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# This sets the VM that we want to use - in this case, a classic Ubuntu 12.01 box | |
config.vm.box = "hashicorp/precise32" | |
# This makes the VM available in your browser on port 8080, and on MySQL's default port | |
config.vm.network "forwarded_port", guest: 80, host: 8080 #HTTP | |
config.vm.network "forwarded_port", guest: 3306, host: 3306 #MySQL |
//taking a crack at it | |
//totally untested, probably doesn't work | |
var BatChannel = function(endpoint, interval) { | |
this.endpoint = endpoint; | |
this.pending = []; | |
this.interval = interval || 30000; | |
this.tick(); | |
}; | |
BatChannel.prototype = { |
[...] | |
var loadEmmet = true; | |
//one-time startup | |
var init = function() { | |
aceConfig.themes.forEach(function(theme) { | |
var option = document.createElement("option"); | |
option.innerHTML = theme.label; | |
option.setAttribute("value", theme.name); |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# This sets the VM that we want to use - in this case, a classic Ubuntu 12.01 box | |
config.vm.box = "hashicorp/precise32" | |
# This makes the VM available in your browser on port 8080, and on MySQL's default port | |
config.vm.network "forwarded_port", guest: 80, host: 1234 #HTTP | |
#config.vm.network "forwarded_port", guest: 3306, host: 3306 #MySQL |
/* | |
This causes any elements with scroll-class attributes to add be updated either when they | |
reach the halfway point of the window, or when a target element (matching the selector in | |
the scroll-trigger attribute) reaches that point. For example: | |
<div class="example" scroll-class="activated" scroll-trigger=".trigger"> | |
This element will gain the "activated" class when the following element scrolls halfway: | |
<span class="trigger">TRIGGER ELEMENT</span> | |
</div> |
var r = require("./verboseRegex.js"); | |
var regex = r` | |
^ # from the start of the string | |
\s* # with any number of spaces | |
\(\s+ # find the first paren, followed by whitespace | |
([^)]+) # capture anything that's not a closing paren | |
\s*\) # followed by whitespace and a closing paren | |
`; |
var F = function(self) { | |
//being called from the shim | |
if (self) { | |
HTMLElement.call(self); | |
return self; | |
} | |
//must be native, use Reflect.construct() to perform super() | |
//this code is untested, came from rniwa | |
return Reflect.construct(HTMLElement, [], F); | |
}; |