#Gist Embeds
All you need to know is that these gists will be included in the page. So rad.
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:
## | |
## 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 |
/****************************************************************************** | |
* | |
* 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. | |
* | |
*****************************************************************************/ | |
/** |
function f() { | |
console.log(arguments); | |
} | |
xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange=f; | |
res = xmlhttp.open("GET", "http://www.yahoo.com/",true); |
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")); |
# | |
# 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 |
#Gist Embeds
All you need to know is that these gists will be included in the page. So rad.
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:
/*! | |
* Console Lite | |
* https://gist.github.com/impressiver/4343889 | |
* | |
* 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 |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>F19 to Hyper/Hyper+Esape</name> | |
<appendix>(F19 to Hyper (Control+Shift+Command+Option) or send Hyper+Escape when tapped)</appendix> | |
<identifier>private.f19_to_hyper</identifier> | |
<autogen> | |
--KeyOverlaidModifier-- | |
KeyCode::F19, | |
KeyCode::COMMAND_L, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L, |
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
// | |
// 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 || $el.is(document)) return undefined; | |
match = Object.keys(attrs)[fn](function(key) { | |
var css = $el.css(key), matcher = attrs[key]; |