- Learn Python the Hard Way - Great introductory course to python and programming
- The Python Guide - After you have a cursory idea of python, this is great
- Code Like a Pythonista: Idiomatic Python - For learning the "pythonic" way of doing things
- Tango with Django - Great intro to building python web applications
- Intro to Flask, TDD, and jQuery
- Selenium's Page Object Pattern for testing websites
- The Python Yield Keyword Explained - Good precursor to the generator tricks
- Incredible guide on Python's __ (underscore) methods - Must read for anyo
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
$ python xor.py | |
Training: | |
Epoch 0 MSE: 1.765 | |
Epoch 100 MSE: 0.015 | |
Epoch 200 MSE: 0.005 | |
* Target MSE reached * | |
Evaluating: | |
1 XOR 0 = 1 ( 0.904) Error: 0.096 | |
0 XOR 1 = 1 ( 0.908) Error: 0.092 | |
1 XOR 1 = 0 (-0.008) Error: 0.008 |
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
#!/bin/bash | |
# This script creates all necessary components to start booting VM's in openstack. This includes | |
# - Project | |
# - User | |
# - Networking, subnets, router, | |
# Security group allows | |
# - 22 (SSH) | |
# - IMPI (Ping test) | |
# - 8443 & 8883 (Greengrass rules) |
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
#!/bin/bash | |
MYDNS="8.8.8.8" | |
DATE=$(date '+%Y-%m-%d') | |
UBUNTU1_URL="http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img" | |
UBUNTU2_URL="http://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img" | |
CIRROS_URL="http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img" | |
CENTOS_URL="http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2c" | |
VOLUME_SIZE=10 | |
NEW_VOLUME_SIZE=15 | |
VOLUME_NAME=$(cat /proc/sys/kernel/random/uuid) |