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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Code from https://lethain.com/genetic-algorithms-cool-name-damn-simple | |
""" | |
from random import randint, random | |
from operator import add |
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
from neobase import NeoBase | |
N = NeoBase() | |
for key in N: | |
N.set(key, city_codes=set(N.get(key, "city_code_list"))) | |
for key in sorted(N): | |
if "A" not in N.get(key, "location_type"): | |
continue |
OlderNewer