Skip to content

Instantly share code, notes, and snippets.

View x1ddos's full-sized avatar

alex x1ddos

View GitHub Profile
@jlord
jlord / index.html
Created April 19, 2012 06:39
Geocoder with Leaflet
<html>
<head>
<title>I'm learning</title>
<link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script src="http://zeptojs.com/zepto.js" type="text/javascript"></script>
<script src="map.js" type="text/javascript"></script>
<style>
body {margin: 0; padding: 0; text-align: center;}
#button { -webkit-transition: -webkit-transform 3s ease-in; box-shadow: 0 0 25px #EFEF4D; margin: auto; margin-top: 15px; padding: 3px 6px; height: 20px; width: 200px;}
@mentat
mentat / generate_protorpc.py
Created November 10, 2011 16:04
Generate Protocol Buffer definition file from Python ProtoRPC Module
"""
Thanks to [email protected] (Rafe Kaplan) for this tip.
Create a .proto file from a module containing ProtoRPC Message
classes.
"""
import logging
from protorpc import descriptor
from protorpc import generate