I hereby claim:
- I am evangertis on github.
- I am evangertis (https://keybase.io/evangertis) on keybase.
- I have a public key ASCYg_M5x4CxD-kY-OwOsUC9W0NRTTQvWW_Hh_dGZVUUGAo
To claim this, I am signing this object:
function checkEmailList(emailElement){ | |
email = emailElement; | |
asyncRequest = new XMLHttpRequest(); | |
asyncRequest.addEventListener("readystatechange",processResponse, false); | |
asyncRequest.open("GET","http://localhost/16-7.php",true); | |
asyncRequest.send(null); | |
} |
import math | |
p_goingOut = 0.10 | |
p_Living = 0.20 | |
p_Savings = 0.50 | |
p_Groceries = 0.10 | |
p_Investment = 0.05 | |
p_Extra = 0.05 | |
print( |
I hereby claim:
To claim this, I am signing this object:
1. Download SD card formatter, windisk32 imager, minibian.tar.gz, 7zip | |
2. Connect the pi to the internet | |
-install raspi-config | |
3. run update | |
4. install wpa-supplicant for wifi connectivity | |
6. install python | |
7. run . /etc/bin/activate to activate the virtual enviroment | |
- use virtualenv venv to create a new virtual enviroment | |
8. install git-core | |
9. install Adafruit DHT library |
from math import sqrt | |
import matplotlib.pyplot as plt | |
h0 = 5 # m/s | |
v = 0 # m/s, current velocity | |
g = 10 # m/s/s | |
t = 0 # starting time | |
dt = 0.001 # time step | |
rho = 0.75 # coefficient of restitution | |
tau = 0.10 # contact time for bounce |
"use strict" | |
// select div. | |
let demoDiv = document.getElementById("demo-div"); | |
// run the function to build the button and | |
// add it to the html. | |
buildUI(); |
function logButton(){ | |
// log to the console when the button is clicked. | |
console.log("The button was clicked.") | |
} |
function buildUI(){ | |
// create new button and add it to the div. | |
let button = document.createElement('input'); | |
button.type = "submit"; | |
button.innerHTML= "submit" | |
button.addEventListener("click", logButton); | |
demoDiv.appendChild(button) |
// select div. | |
let demoDiv = document.getElementById("demo-div"); |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id = "demo-div"></div> |