Skip to content

Instantly share code, notes, and snippets.

View jqr's full-sized avatar

Elijah Miller jqr

View GitHub Profile
@jqr
jqr / gist:223107
Created October 31, 2009 15:29 — forked from bkeepers/gist:223062
// easy refresh-css keybinding to alt-w
// alt-r was taken in IE, so consider this a CSS Weefresh
// original code from http://paulirish.com/2008/how-to-iterate-quickly-when-debugging-css/
$(document).keyup(function(e){
if (e.which == 87 && e.altKey) {
$('link').each(function() {
if((/stylesheet/i).test(this.rel) && this.href) {
var href = this.href.replace(/(&|\?)forceReload=\d+/,'');
this.href = href + ((/\?/).test(href) ? '&' : '?' ) + 'forceReload=' + new Date;
@jqr
jqr / setup-statsd.sh
Created July 6, 2011 02:04 — forked from howardr/setup-statsd.sh
Minor changes to statsd installation
# install git
sudo apt-get install -y g++ curl libssl-dev apache2-utils
sudo apt-get install -y git-core
mkdir ~/src
cd ~/src
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
package main
import (
"fmt"
"net"
"bufio"
"time"
)
const apiKey string = "your api key"
@jqr
jqr / README.md
Created February 28, 2014 21:51 — forked from mbostock/.block
# This example will create a sample asynchronous pdf document with the authentication information as part of the POST data
curl http://docraptor.com/docs \
--fail --silent --show-error \
--header "Content-Type: application/json" \
--data '{
"user_credentials": "YOUR_API_KEY_HERE",
"doc": {
"name": "async_example.pdf",
"document_type":"pdf",
"async":"true",
@jqr
jqr / DocRaptor.cs
Last active April 8, 2018 02:15 — forked from janxious/DocRaptor.cs
DocRaptor Examples Set 1 - Non-Ruby
using System;
using System.IO;
using System.Text;
using System.Net;
using System.Web;
namespace DocRaptorConsoleExample {
class DocRaptor {
private const string PostFormat = "doc[{0}]={1}&doc[name]={2}&doc[document_type]={3}&doc[test]={4}";
private const string ApiKey = @"YOUR API KEY HERE";