This file contains hidden or 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
<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"), |
This file contains hidden or 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
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) |
OlderNewer