Paragraph
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
W = 500 | |
H = 585 | |
W1 = W - 1 | |
H1 = H - 1 | |
def setup | |
@img = load_image '../scratch/girl.png' | |
@img.filter BLUR, 3 | |
@img.load_pixels | |
end |
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
___________________________________________________________________ | |
/ _ _ _ _ _ _ \ | |
| /_\ | |_ | |_ ___ _ _ | |_ (_) ___ _ _ | | | | |
| / _ \| _|| _|/ -_)| ' \| _|| |/ _ \| ' \ |_| | | |
| /_/ \_\\__| \__|\___||_||_|\__||_|\___/|_||_|(_) | | |
| | | |
| __ __ _ _ | | |
| \ \ / /___ _ _ ( )_ _ ___ _ _ ___(_) _ _ __ _ __ _ | | |
| \ V // _ \| || ||/| '_|/ -_) | || |(_-<| || ' \ / _` | / _` | | | |
| |_| \___/ \_,_| |_| \___| \_,_|/__/|_||_||_|\__, | \__,_| | |
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 serial | |
import sys | |
import argparse | |
import csv | |
import pathlib | |
from datetime import datetime | |
def list_serial_ports(): | |
""" Lists serial port names |
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
#!/data/data/com.termux/files/usr/bin/bash | |
folder=ubuntu-fs | |
if [ -d "$folder" ]; then | |
first=1 | |
echo "skipping downloading" | |
fi | |
tarball="ubuntu.tar.gz" | |
if [ "$first" != 1 ];then | |
if [ ! -f $tarball ]; then |
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 librosa | |
import pandas as pd | |
import numpy.random as rnd | |
import pathlib | |
import tqdm | |
dataset_folder = pathlib.Path('noise_data') | |
dataset_folder.mkdir(parents=True, exist_ok=True) |
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
#!/bin/bash | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
mkdir ~/.conda # https://github.com/ContinuumIO/anaconda-issues/issues/11148 | |
sh Miniconda3-latest-Linux-x86_64.sh | |
conda update --all -y | |
conda install -y tensorflow git | |
git clone https://github.com/tensorflow/benchmarks |
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 pathlib # Handle paths (https://pbpython.com/pathlib-intro.html) | |
import numpy as np | |
def run_simulation(n=1000): | |
x = np.random.randn(n) | |
y = np.random.randn(n,n) @ x | |
simulation_results = dict(x=x, y=y) | |
return simulation_results |
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 pathlib | |
import tqdm | |
import imageio | |
# import PIL.Image | |
# PIL.Image.MAX_IMAGE_PIXELS = 933120000 | |
# input_path = pathlib.Path('Starry Night.jpg') | |
input_path = pathlib.Path('Starry Night (small).jpg') | |
im = imageio.imread(input_path) |
Climate Change: How Can AI Help? climatechange.ai
Friday, June 14th 2019 - Times relative to Pacific Time (PT or GMT-8)
https://slideslive.com/38917142/climate-change-how-can-ai-help
- 8:30 - 8:45 - Welcome and Opening Remarks
- 8:45 - 9:20 - John Platt (Google AI): AI for Climate Change: the Context (Keynote talk)
- 9:20 - 9:45 - Jack Kelly (Open Climate Fix): Why it’s hard to mitigate climate change, and how to do better (Invited talk)