As configured in my dotfiles.
start new:
tmux
start new with session name:
from urllib.request import urlopen | |
from bs4 import BeautifulSoup as bs | |
import csv as csv | |
url = 'http://www.finder.com/in/netflix-india-vs-netflix-us-titles-list' | |
html = urlopen(url).read() | |
soup = bs(html, "lxml") | |
table = soup.find('table', id='tablepress-9') |
set source= source path | |
set destination= dest path | |
for /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G | |
set year=%datetime:~0,4% | |
set month=%datetime:~4,2% | |
set day=%datetime:~6,2% | |
set folder = "Books" | |
xcopy /s /i %source% %destination%_%year%-%month%-%day% /E /y | |
pause |
http://dask.pydata.org/en/latest/use-cases.html | |
Progress bars: http://distributed.readthedocs.io/en/latest/web.html |
#!/usr/bin/env bash | |
#Code adapted from https://gist.github.com/yangj1e/3641843c758201ebbc6c (Modified to Python3.5) | |
cd ~ | |
#wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.4.0-Linux-x86_64.sh | |
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.4.1-Linux-x86_64.sh | |
bash Anaconda3-2.4.1-Linux-x86_64.sh -b | |
echo 'PATH="/home/ubuntu/anaconda3/bin:$PATH"' >> .bashrc | |
. .bashrc |
As configured in my dotfiles.
start new:
tmux
start new with session name:
I hereby claim:
To claim this, I am signing this object:
Delete all containers: | |
docker rm $(docker ps -a -q) | |
Delete all images: | |
docker rmi $(docker images -q) |
# Sudoku Solver - Peter A. Norvig | |
digits = '123456789' | |
rows = 'ABCDEFGHI' | |
cols = digits | |
def cross(A, B): | |
return [a+b for a in A for b in B] | |
squares = cross(rows, cols) |