Skip to content

Instantly share code, notes, and snippets.

View naoyamakino's full-sized avatar

Naoya Makino naoyamakino

View GitHub Profile
@naoyamakino
naoyamakino / MainActivity.java
Last active August 29, 2015 14:25 — forked from kmdupr33/MainActivity.java
Showing the terrible practice of having a static reference to a context
public class MainActivity extends LocationManagingActivity implements ActionBar.OnNavigationListener,
GooglePlayServicesClient.ConnectionCallbacks,
GooglePlayServicesClient.OnConnectionFailedListener {
//...
private static MeTrackerStore mMeTrackerStore;
//...
@naoyamakino
naoyamakino / a.py
Created September 1, 2011 00:23 — forked from ujihisa/a.py
# a = 1
# b = a + 2
# print b
program = [
('assign', 'a', ('value', 1)),
('assign', 'b', ('plus', ('refer', 'a'), ('value', 2))),
('print', ('refer', 'b')),
('variables',)]
variables = {}
@naoyamakino
naoyamakino / parser.py
Created February 23, 2011 07:29 — forked from aaronpk/parser.py
iCal feed parser for HearNear.org
from icalendar import Calendar, Event
import simplejson as json
import re
import web
from mimerender import mimerender
import sys
import urllib2
event = {}