Skip to content

Instantly share code, notes, and snippets.

@phektus
phektus / HomeGridFragment.md
Last active August 29, 2015 14:02
HomeGridFragment

centerMapOntoLocation

Branch: arbie-compile

    public void centerMapOntoLocation(LatLng centerGeoPoint)
    {
        MapsInitializer.initialize(this.getActivity());
        mMap.clear();
        mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(centerGeoPoint, 14));
@phektus
phektus / simplecometclient.py
Created September 4, 2012 05:14 — forked from aparrish/simplecometclient.py
simple python comet client
import email.utils # for rfc2822 formatted current timestamp
import requests
class CometClient(object):
def __init__(self, last_modified=None):
if last_modified is None:
self.last_modified = email.utils.formatdate()
else:
self.last_modified = last_modified
@phektus
phektus / gist:2782011
Created May 24, 2012 14:52
hello world
print "hello world!"
@phektus
phektus / hack.sh
Created April 1, 2012 13:20 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#