Skip to content

Instantly share code, notes, and snippets.

View aaronpk's full-sized avatar

Aaron Parecki aaronpk

View GitHub Profile
$home_base_array = array();
$home_base_array[''] = '--select--';
$home_base_array[$this->config->item('site_name')] = $this->config->item('site_name'));
foreach($this->config->item('social_connections') as $connection)
$home_base_array[$connection] = $connection;
@aaronpk
aaronpk / parser.py
Created February 23, 2011 00:03 — forked from naoyamakino/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'
from icalendar import Calendar, Event
import simplejson as json
import re
import web
from mimerender import mimerender
import sys
import urllib2
event = {}
@aaronpk
aaronpk / UIDeviceHardware.h
Created February 26, 2012 18:59 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;
@aaronpk
aaronpk / lat,lng,timezone
Created July 21, 2012 20:20
timezone detection database, from geoname 15000.txt
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 / app.rb
Created November 28, 2012 12:07 — forked from troelskn/app.rb
Gollum protected by HTTP Basic
require 'gollum/frontend/app'
require 'digest/sha1'
class App < Precious::App
User = Struct.new(:name, :email, :password_hash)
before { authenticate! }
helpers do
def authenticate!
{
"game": {
"game_id": "pj9Zb8okVfqEHUCt",
"name": "Aaron Test Board 10",
"bbox": [
-122.688703536987,
45.511970901574,
-122.669649124146,
45.5231270146092
],
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
[
{
"x": 0,
"Foo": 12,
"Bar": 3
},
{
"x": 1,
"Foo": 24,
"Bar": 9
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;
}