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.
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 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
function venv { | |
default_envdir=".env" | |
envdir=${1:-$default_envdir} | |
if [ ! -d $envdir ]; then | |
python -m venv $envdir | |
pip install ipython black flake8 | |
echo -e "\x1b[38;5;2m✔ Created virtualenv $envdir\x1b[0m" | |
fi | |
source $envdir/bin/activate |
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
ip=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) | |
echo "Code Server" | |
echo "http://$ip:8443" | |
security_group=$(ec2-metadata -s | cut -d " " -f 2); | |
aws ec2 authorize-security-group-ingress --group-name $security_group --protocol tcp --port 8443 --cidr 0.0.0.0/0 | |
version="1.32.0-310" | |
wget https://github.com/codercom/code-server/releases/download/$version/code-server-$version-linux-x64.tar.gz | |
tar -xvzf code-server-$version-linux-x64.tar.gz | |
cd code-server-$version-linux-x64 | |
chmod +x code-server |
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 numpy as np | |
import tensorflow as tf | |
import tensorflow_probability as tfp | |
tfd = tfp.distributions | |
tfk = tfp.positive_semidefinite_kernels | |
from Starfish.emulator import PCAGrid | |
class InputTransformedKernel(tfk.PositiveSemidefiniteKernel): |
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 python | |
# -*- coding: utf-8 -*- | |
# | |
# Tensorflow DNNRegressor in Python | |
# CC-BY-2.0 Paul Balzer | |
# see: http://www.cbcity.de/deep-learning-tensorflow-dnnregressor-einfach-erklaert | |
# | |
TRAINING = True | |
WITHPLOT = False |
Download Beta Build (builds expire after 28 days)
Here is an example snippet of the theme configuration commands (place these at the top of your Markdown file):
theme: Work
text: Gill Sans, #F5E5C0, text-scale(0.75), line-height(1.4)
header: Gill Sans UltraBold, text-scale(1.2), line-height(0.9)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder