Skip to content

Instantly share code, notes, and snippets.

View gavinr's full-sized avatar

Gavin Rehkemper gavinr

View GitHub Profile
@gavinr
gavinr / gist:886876
Created March 25, 2011 14:05
Ravelry API signing example php
<?php
// Shh keep this secret:
$secret = '1111111111111111111111111111111111111111';
$data = array();
$data['access_key'] = '00000000000000000000';
$data['query'] = 'yarn me'; // for example
$data['shop_type_id'] = '1'; // for example
$data['timestamp'] = date('c'); // ISO8601 format
@gavinr
gavinr / ravelry store search example
Created April 12, 2011 14:22
The Ravelry Yarn Store Search Authentication implemented in PHP
<?php
// Ravelry API PHP Example
//
// This example builds the URL and echos the JSON
// data from the Ravelry API to the page.
//
// Implementation of these instructions:
// http://www.ravelry.com/groups/ravelry-api/pages/API-Documentation#extra_signing
$secret = 'xxxxx'; // your secret key
ident,latitude,longitude
My place,39.0,-073.8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gavinr
gavinr / map.geojson
Created August 11, 2013 08:55
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gavinr
gavinr / index.html
Last active December 23, 2015 02:09
Leaflet Circle GeoJSON Example
<html>
<head>
<title>Test</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<style>
#map { height: 100%; }
<html>
<head>
<title>Test</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<style>
#map { height: 100%; }
@gavinr
gavinr / tn-hospitals.geojson
Last active December 30, 2015 05:19 — forked from anonymous/arcgis-json-to-geojson.geojson
Tennessee Hospitals
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gavinr
gavinr / u-city-ward-2.geojson
Created February 18, 2014 05:09
University City MO Ward 2 GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.