Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Parecki aaronpk

View GitHub Profile
View gist:e197ce9a82cb54e5d5a072c751d73550
{
"type": [
"h-entry"
],
"properties": {
"published": [
"2017-01-01 12:00:00"
],
"checkin": [{
"type": [
View good-enough.css
body {
color: #212121;
font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0.02em;
}
View sample-graphs-and-data.html
[
{
"x": 0,
"Foo": 12,
"Bar": 3
},
{
"x": 1,
"Foo": 24,
"Bar": 9
View gist:3735083bbe040775a56f
require 'terraformer'
require 'geotrigger'
require 'launchy'
require 'gist'
# create a new FeatureCollection
#
fc = Terraformer::FeatureCollection.new
# create a Geotrigger Application session with credentials stored in ~/.geotrigger under the :foo key
View game_state_response.json
{
"game": {
"game_id": "pj9Zb8okVfqEHUCt",
"name": "Aaron Test Board 10",
"bbox": [
-122.688703536987,
45.511970901574,
-122.669649124146,
45.5231270146092
],
@aaronpk
aaronpk / app.rb
Created Nov 28, 2012 — forked from troelskn/app.rb
Gollum protected by HTTP Basic
View app.rb
require 'gollum/frontend/app'
require 'digest/sha1'
class App < Precious::App
User = Struct.new(:name, :email, :password_hash)
before { authenticate! }
helpers do
def authenticate!
@aaronpk
aaronpk / lat,lng,timezone
Created Jul 21, 2012
timezone detection database, from geoname 15000.txt
View lat,lng,timezone
42.50729 1.53414 Europe/Andorra
42.50779 1.52109 Europe/Andorra
25.56473 55.55517 Asia/Dubai
25.78953 55.9432 Asia/Dubai
25.33132 56.34199 Asia/Dubai
25.25817 55.30472 Asia/Dubai
25.61955 56.27291 Asia/Dubai
25.35731 55.4033 Asia/Dubai
24.11028 52.73056 Asia/Dubai
25.11641 56.34141 Asia/Dubai
@aaronpk
aaronpk / UIDeviceHardware.h
Created Feb 26, 2012 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
View UIDeviceHardware.h
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;
View parser.py
from icalendar import Calendar, Event
import simplejson as json
import re
import web
from mimerender import mimerender
import sys
import urllib2
event = {}
View parser.py
from icalendar import Calendar, Event
import simplejson as json
import re
import web
from mimerender import mimerender
import sys
event = {}
urls = (
'https://api.geoloqi.com/1/place/create', 'place'