View twitter_bot.py
#!/usr/bin/env python3
# MIT license
from tweepy import OAuthHandler, Stream, API
from tweepy.streaming import StreamListener
import sqlite3
import secrets
# auth
# add a file called secrets.py next to bot.py and enter keys and tokens into variables.
View bitcoin.py
import math
import ast
def attacker_success_probability(q, z):
p = (1 - q)
lamb = (z * (q / p))
some = 1
k = 0
while (k <= z):
View geolocate.js
// adapted and simplified from
// https://developers.google.com/web/fundamentals/native-hardware/user-location/obtain-location
// find location
window.onload = function() {
var geoOptions = {
timeout: 10000, // milliseconds
maximumAge: 5 * 60 * 1000 // milliseconds
}