Skip to content

Instantly share code, notes, and snippets.

View impressiver's full-sized avatar

Ian White impressiver

View GitHub Profile
@impressiver
impressiver / README.md
Created July 17, 2012 01:56
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:

> https://gist.github.com/1002914

@impressiver
impressiver / esp-dev.sh
Last active October 3, 2015 07:51
esp-dev: osx environment settings for esp8266 esp-open-sdk toolchain and development
#
# esp-dev:
# osx env for esp8266 esp-open-sdk toolchain
#
# dupes
dupes=/usr/local/opt/gettext/bin
dupes=$dupes:/usr/local/opt/gnu-getopt/bin
dupes=$dupes:/usr/local/opt/gnu-sed/libexec/gnubin
var driver = browserMob.openBrowserWebDriver();
browserMob.beginTransaction();
browserMob.beginStep("Go to google home page");
driver.get("http://www.google.com");
// Find the text input element by its name
var element = driver.findElement(By.name("q"));
function f() {
console.log(arguments);
}
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange=f;
res = xmlhttp.open("GET", "http://www.yahoo.com/",true);
@impressiver
impressiver / angular-jquery-adapter.js
Last active August 29, 2015 14:08
Angular/jQuery event wrappers
/******************************************************************************
*
* 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.
*
*****************************************************************************/
/**
@impressiver
impressiver / mirrorlist
Last active August 29, 2015 13:57
Arch US mirrorlist
##
## Arch Linux repository mirrorlist
## Sorted by mirror score from mirror status page
## Generated on 2014-03-16
##
## Score: 0.4, United States
Server = http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch
## Score: 0.7, United States
Server = http://mirrors.liquidweb.com/archlinux/$repo/os/$arch