This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"; |