This file contains hidden or 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
''' | |
This script brings up the entire stack of Docker containers, removing the current ones. | |
Docker compose was tried for this task and it wasn't customisable enough. | |
Docker cloud was tried (with stack files) and was buggy (failed to launch, no logs returned). | |
Docker machine was tried, but it can't connect to existing servers only ones it created. | |
Rancher was too heavy weight for the task, as the containers are lightweight in DigitalOcean. | |
Kubernetes would've been too heavy weight for DigitalOcean. | |
It was written in Powershell and worked. But then converting it to Bash was too much effort. | |
Powershell for Linux is too much effort to install without a debian package (and none standard) |
This file contains hidden or 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 time | |
import numpy as NP | |
from redis import StrictRedis as redis | |
# a 2D array to serialize | |
A = 10 * NP.random.randn(10000).reshape(1000, 10) | |
# flatten the 2D NumPy array and save it as a binary string | |
array_dtype = str(A.dtype) |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" href="lib/leaflet.css" /> | |
<!--[if lte IE 8]> | |
<link rel="stylesheet" href="lib/leaflet.ie.css" /> | |
<![endif]--> | |
</head> | |
<body> | |
<div id="map" style="width:1004px; height:748px; border: 1px solid black;"></div> | |
<script type="text/javascript" src="lib/leaflet-src.js"></script> |
This file contains hidden or 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> | |
<head> | |
<title>Leaflet debug page</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet-src.js"></script> | |
This file contains hidden or 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
license: gpl-3.0 | |
height: 302 | |
This file contains hidden or 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
license: gpl-3.0 | |
height: 600 | |
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" /> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script> | |
<style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
text | label | |
---|---|---|
A very, very, very slow-moving, aimless movie about a distressed, drifting young man. | 0 | |
Not sure who was more lost - the flat characters or the audience, nearly half of whom walked out. | 0 | |
Attempting artiness with black & white and clever camera angles, the movie disappointed - became even more ridiculous - as the acting was poor and the plot and lines almost non-existent. | 0 | |
Very little music or anything to speak of. | 0 | |
The best scene in the movie was when Gerardo is trying to find a song that keeps running through his head. | 1 | |
The rest of the movie lacks art, charm, meaning... If it's about emptiness, it works I guess because it's empty. | 0 | |
Wasted two hours. | 0 | |
Saw the movie today and thought it was a good effort, good messages for kids. | 1 | |
A bit predictable. | 0 |
NewerOlder