Skip to content

Instantly share code, notes, and snippets.

View d6veteran's full-sized avatar

Will Curran d6veteran

  • Google, D20Mob, SuperKablamo
  • Seattle, WA
View GitHub Profile
@d6veteran
d6veteran / gist:984122
Created May 21, 2011 01:22
Multiple Custom Markers for Google Maps
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(36.14, -115.14);
var myLatlng = new google.maps.LatLng(36.14,-115.14);
var myOptions = {
zoom: 12,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
import itertools
def findPhoneNumbers(phone_name):
PHONE_LENGTH = 10
allowed_numbers = ["1","2","3","4","5","6","7","8","9","0"]
# Get all permutations for positions not taken by phone name
match_length = PHONE_LENGTH - len(phone_name)
matches = itertools.permutations(allowed_numbers ,match_length)