What is Kubernetes?
- Deploy a Kubernetes cluster on Digital Ocean using kubeadm
struct CovariantExample<'a, T> { | |
a: &'a T | |
} | |
struct InvariantExample<'a, T> { | |
a: &'a mut T | |
} | |
fn covarient() { |
#!/bin/bash | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
#!/usr/bin/env python | |
""" | |
This simple script fetches your IP as seen by web pages, and displays it. | |
Execute this script locally like that: | |
$ curl -s https://raw.github.com/gist/3389407/myip.py | python | |
""" | |
import urllib2 |
[package] | |
name = "example" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
anyhow = { version = "1.0", features = [ "backtrace" ] } | |
futures = "0.3" |
Listing queues ... | |
hipri 5 | |
lopri 0 | |
midpri 0 | |
...done. |
import random | |
# Random float in [0.0, 1.0) | |
a = random.random() | |
# Random float in [0, 100] | |
b = random.uniform( 0, 100 ) |
#!/usr/bin/env python | |
import tensorflow as tf | |
import numpy as np | |
from numpy import genfromtxt | |
# Build Example Data is CSV format, but use Iris data | |
from sklearn import datasets | |
from sklearn.model_selection import train_test_split | |
import sklearn | |
def buildDataFromIris(): |
#!/usr/bin/env python | |
''' | |
A #microtutorial to show how to use asyncio and some other stdlib-tools, | |
https://pugetsoundpython.slack.com/archives/C03LJKBPJ/p1530204386000485 | |
Invoke with, | |
`python nhuntwalker-asyncio.py -m on` | |
`python nhuntwalker-asyncio.py -m awe` | |
`python nhuntwalker-asyncio.py` |