Skip to content

Instantly share code, notes, and snippets.

@mhewedy
mhewedy / gmaps-drawing-tools-places.htm
Created March 25, 2017 11:04 — forked from anonymous/gmaps-drawing-tools-places.htm
gmaps-drawing-tools-places.htm
<!DOCTYPE html>
<!-- http://gmaps-samples-v3.googlecode.com/svn/trunk/drawing/drawing-tools.html -->
<!-- https://developers.google.com/maps/documentation/javascript/examples/places-searchbox -->
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title>Drawing Tools (B)</title>
<!-- NOTE: two libraries to load are comma-separated; otherwise last mention of the query string arg overwrites the previous -->
<script type="text/javascript"
@mhewedy
mhewedy / hasher.java
Last active August 29, 2015 14:00 — forked from sauron/hasher.rb
// direct translation for https://gist.github.com/sauron/9773864
public class Example {
public static void main(String[] args) {
System.out.println(hash("leepadg"));
System.out.println(unhash(680131659347L));
}
static String letters = "acdegilmnoprstuw";