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 | |
import sys, time, numpy, random | |
# Individual has a genome and fitness and knows how to print itself | |
class Individual: | |
def __init__(self, genome): | |
if genome is None: | |
self.genome = numpy.array(numpy.random.random_integers(0, 1, LEN), dtype='bool') | |
else: |
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
function MostFreeTime(str) { | |
var dates = []; | |
str.split(",").forEach(d => { | |
dt = d.substring(1, d.length - 1).split("-"); | |
s = dt[0]; | |
dt[0] = s.substr(s.length - 2, 2) == "AM" ? s.substr(0, 5) : | |
(Number.parseInt(s.substr(0, 2)) < 12 ? Number.parseInt(s.substr(0, 2)) + 12 + ":" + s.substr(3, 2) : s.substr(0, 5)); | |
s = dt[1]; |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<div id="geo-wrapper" width="600" height="400"></div> | |
<span id="geo-error"></span> |