Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
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
extension String { | |
// string length | |
var len: Int { | |
return self.characters.count | |
} | |
// retrieve a single character | |
subscript(n: Int) -> Character { | |
if n < 0 || n > self.len { |
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
/* EpochConverter */ | |
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
int main(int argc, const char * argv[]) { | |
int inputTime; | |
struct tm *timeinfo; |
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/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Line graph of the familiy status of the citizens of Kiel, Germany. | |
The data is provided by the City of Kiel. | |
http://kiel.de/rathaus/statistik/open_data/index.php | |
familyStatus.py | |
version: 1.3 |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
plt.style.use('seaborn-bright') | |
fig, ax = plt.subplots() | |
candidats = ('Marine Le Pen', 'Emmanuel Macron', 'François Fillon', 'Benoît Hamon', 'Jean-Luc Mélenchon') | |
voter = [21.7,23.9,20,6.3,19.2] | |
y_pos = np.arange(len(candidats)) |
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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Election, German Bundestag 2017 | |
Version: 1.0 | |
Python 3.6 | |
Date created: 25/09/2017 | |
""" |
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
//: # CALayer Example 2 | |
import UIKit | |
import PlaygroundSupport | |
// view with white background color | |
var backgroundView = UIView(frame: CGRect(x: 0, y: 0, width: 400, height: 400)) | |
backgroundView.backgroundColor = UIColor.white | |
PlaygroundPage.current.liveView = backgroundView |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
# results for the greens and the cdu | |
gruene = np.array([5.3, 8.0, 7.9, 9.5, 12.1, 7.7, 11.7, 24.2, 30.3]) | |
cdu = np.array([53.4, 51.9, 49.0, 39.6, 41.3, 44.8, 44.2, 39.0, 27.0]) | |
fig, ax = plt.subplots() | |
xlabels = [1980, 1984, 1988, 1992, 1996, 2001, 2006, 2011, 2016] |
OlderNewer