Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45
Download and install it from oracle.com
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="generator" content="pandoc" /> |
Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45
Download and install it from oracle.com
Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
/* | |
Placeholder for custom user CSS | |
mainly to be overridden in profile/static/custom/custom.css | |
This will always be an empty file in IPython | |
*/ | |
/* comment out this line to bring the toolbar back */ | |
html, body { | |
overflow-y: hidden |
-- Thanks to http://justinsomnia.org/2009/04/the-emp-and-dept-tables-for-mysql/ | |
DROP TABLE IF EXISTS emp; | |
CREATE TABLE emp ( | |
empno decimal(4,0) NOT NULL, | |
ename varchar(10) default NULL, | |
job varchar(9) default NULL, | |
mgr decimal(4,0) default NULL, | |
hiredate date default NULL, |
''' | |
Tic Tac Toe Endstate Calculation | |
Assumption: X always moves first. | |
Including all symmetric or rotate situations. | |
Using 1D list to represent board, 1 as X, -1 as O, 0 as blank. | |
''' | |
def check(board): |
base03 = "#002b36"; | |
base02 = "#073642"; | |
base01 = "#586e75"; | |
base00 = "#657b83"; | |
base0 = "#839496"; | |
base1 = "#93a1a1"; | |
base2 = "#eee8d5"; | |
base3 = "#fdf6e3"; | |
yellow = "#b58900"; | |
orange = "#cb4b16"; |
black = '#272c33'; | |
red = '#e78287'; // red | |
green = '#a7cb8b'; // green | |
yellow = '#daaa78'; // yellow | |
blue = '#71bdf2'; // blue | |
magenta = '#d190e3'; // pink | |
cyan = '#65c1cd'; // cyan | |
white = '#b9bfca'; // light gray | |
lightBlack = '#6f7683'; // medium gray | |
lightRed = '#e78287'; // red |