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
//: # Introduction to CALayer | |
//: (Xcode 9 and Swift 4) | |
import UIKit | |
import PlaygroundSupport | |
//: From Apples's Support Documentation: | |
//: | |
//: > The CALayer class manages image-based content and allows you to perform animations on that content. Layers are often used to provide the backing store for views but can also be used without a view to display content. | |
//: |
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
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
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] |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
''' | |
MIT License | |
Copyright (c) 2016-2024 Bodo Schönfeld | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
and associated documentation files (the "Software"), to deal in the Software without restriction, |
OlderNewer