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 random import randint | |
from operator import add | |
import random | |
def individual(length, minimum, maximum): | |
"Initialize population member" | |
return [randint(minimum, maximum) for x in range(length)] | |
def population(count, length, minimum, maximum): | |
""" |
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
#!/bin/sh | |
#------------------------------------------------------------------------------ | |
# Name: sbtproject | |
# Version: 1.0 | |
# Purpose: Create an SBT project directory structure with a few simple options. | |
# Author: Francis Bautista francisbautista.me | |
# License: Creative Commons Attribution-ShareAlike 2.5 Generic | |
# http://creativecommons.org/licenses/by-sa/2.5/ | |
#------------------------------------------------------------------------------ |
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
$ sudo apt-get install python-pip python-dev build-essential | |
$ sudo pip install --upgrade pip | |
$ sudo apt-get install nodejs-legacy | |
$ pip install jupyter | |
### Test with the following: | |
$ jupyter notebook |