Skip to content

Instantly share code, notes, and snippets.


Ian White impressiver

View GitHub Profile
impressiver / mirrorlist
Last active Aug 29, 2015
Arch US mirrorlist
View mirrorlist
## Arch Linux repository mirrorlist
## Sorted by mirror score from mirror status page
## Generated on 2014-03-16
## Score: 0.4, United States
Server =$repo/os/$arch
## Score: 0.7, United States
Server =$repo/os/$arch
impressiver / angular-jquery-adapter.js
Last active Aug 29, 2015
Angular/jQuery event wrappers
View angular-jquery-adapter.js
* Adapter functions to deal w/ Angular <--> jQuery (custom) events
* I wrote these quickly just to see if they'd fly. They should really be added
* to a provider, I just haven't gotten around it.
View gist:1002914
function f() {
xmlhttp = new XMLHttpRequest();
res ="GET", "",true);
View gist:1179387
var driver = browserMob.openBrowserWebDriver();
browserMob.beginStep("Go to google home page");
// Find the text input element by its name
var element = driver.findElement("q"));
impressiver /
Last active Oct 3, 2015
esp-dev: osx environment settings for esp8266 esp-open-sdk toolchain and development
# esp-dev:
# osx env for esp8266 esp-open-sdk toolchain
# dupes
impressiver /
Created Jul 17, 2012
Testing Gist embedding

#Gist Embeds

All you need to know is that these gists will be included in the page. So rad.

How does it work?

Simply include the link in your post and it will show up inline, with syntax highlighting and everything.

 > Here is some posted text, followed by a Gist:


impressiver / console-lite.js
Last active Dec 9, 2015
Was thinking that it would be nice to leave console messages in the front end code, with a switch to turn them on and off, making quick production debug sessions hassle-free. So I made a light `window.console` wrapper that routes `console` calls to noop functions if debug is not enabled, but back to the original console if you have `DEBUG = true…
View console-lite.js
* Console Lite
* Stop wayward debug messages from inadvertently jamming up browsers.
* Setting `localStorage.DEBUG = true` will turn console messages on
* again, though you still only get partial console functionality
* (which is intentional).
* Copyright 2013 Impressiver LLC
impressiver / private.xml
Created Oct 7, 2013
KeyRemap4Macbook Hyper
View private.xml
<?xml version="1.0"?>
<name>F19 to Hyper/Hyper+Esape</name>
<appendix>(F19 to Hyper (Control+Shift+Command+Option) or send Hyper+Escape when tapped)</appendix>
KeyCode::COMMAND_L, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L,
impressiver / gist:7477068
Created Nov 15, 2013
Road to Dynamic Hybrid Web Applications
View gist:7477068

Road to Dynamic Hybrid Web Applications


There has been a natural evolution over the past few years with regard to developing increasingly rich, desktop-like experiences in web applications. The old school way was to handle 100% of the dynamic content generation on the server and spit static HTML back to the browser. Then JavaScript grew up a bit and people slowly started to learn (begrudgingly) that it was more than just a toy. Increasingly, much of the rendering and processing was pushed to the

impressiver / dammit-grandpa.js
Last active Dec 31, 2015
Traverse the DOM hierarchy and return the first ancestor that has all/any css attributes that match the provided hash. Expects jQuery, but could be easily modified to work w/o. Main use for this is in Chrome dev tools to quickly find the parent of an element that's responsible for layout troubles.
View dammit-grandpa.js
// Traverse the DOM hierarchy and return the first ancestor that has all/any
// css attributes that match the provided attribute:regexp hash.
var $parent = (function declares(el, attrs, any) {
var $el = $(el), fn = (!!any ? 'some' : 'every'), match;
if(!attrs || !$el.length || $ return undefined;
match = Object.keys(attrs)[fn](function(key) {
var css = $el.css(key), matcher = attrs[key];