Instantly share code, notes, and snippets.

View dialogs.html
<!DOCTYPE html>
<meta charset="UTF-8">
html {
font-family: sans-serif;
font-size: 16px;
width: 100%;
View ByShadow.kt
import org.openqa.selenium.By
import org.openqa.selenium.JavascriptExecutor
import org.openqa.selenium.SearchContext
import org.openqa.selenium.WebElement
class ByShadow(vararg selectors: String) : By() {
private val args = "['" + selectors.joinToString("','") + "']"
override fun findElements(ctx: SearchContext): List<WebElement> {

Keybase proof

I hereby claim:

  • I am rudiculous on github.
  • I am rdcl ( on keybase.
  • I have a public key whose fingerprint is 9C11 4672 2590 C454 275C 71A9 DBCD CAA2 0AE3 7E45

To claim this, I am signing this object:


JSONP Example With jQuery And Laravel


$.ajax({ url: '/my-pretty-url', dataType: 'jsonP' })
  .done(function (data, textStatus, jqXHR) {
  .fail(function (jqXHR, textStatus, err) {
View fun-with-iterators.js
/* # Fun With Iterators
* This snippet of code demonstrates how generator functions, iterators
* and promises work in JavaScript.
* ## Promises
* A promise is an object that represents a value that is yet to be
* determined. As soon as this value is known the promise will be
* resolved. If however something went wrong, the promise will be
extern crate time;
fn main() {
let nano = 1_000_000_000.0;
let upto = 1_000_000_000;
let start = time::precise_time_ns();
let primes = sieve(upto);
let end = time::precise_time_ns();
#!/usr/bin/env coffee
# vim: set ft=coffee:
"use strict"
# A TCP proxy that allows you to dump all communication.
net = require 'net'
[executing, script, source, dest] = process.argv