I hereby claim:
- I am cylim on github.
- I am cylim (https://keybase.io/cylim) on keybase.
- I have a public key ASBGCqhnoENPgqlElauWm8C65SU8Fn77SH0tJ4tYzpsWago
To claim this, I am signing this object:
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
// These two need to be declared outside the try/catch | |
// so that they can be closed in the finally block. | |
HttpURLConnection urlConnection = null; | |
BufferedReader reader = null; | |
// Will contain the raw JSON response as a string. | |
String forecastJsonStr = null; | |
try { | |
// Construct the URL for the OpenWeatherMap query |
import sys | |
def main(argv): | |
dict = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D'] | |
for char in argv[0]: | |
num = int(char) | |
cipher = (11 * num + 3) % 14 | |
print(dict[num], ": ", dict[cipher]) |
dict = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E'] | |
def main(): | |
for i in range(14): | |
cipher = (pow(i, 2) + i) % 15 | |
print(dict[i], ":", dict[cipher]) | |
if __name__ == "__main__": | |
main() |
import sys | |
def main(argv): | |
dict = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D'] | |
a, b = int(argv[0]), int(argv[1]) | |
print("Function: Yi = {}Xi + {}".format(a, b)) | |
for num in range(14): | |
cipher = (a * num + b) % 14 |
import sys | |
def main(): | |
dict = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D'] | |
cipher = [] | |
for a in range(14): | |
for num in range(14): | |
cipher.append((a * num + 1) % 14) | |
if len(cipher) == len(set(cipher)): |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
LOADING=false | |
DEBUG=/dev/null | |
usage() | |
{ | |
cat << EOF | |
usage: $0 [options] <DBNAME> | |
OPTIONS: |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
from block import Block | |
class Blockchain: | |
def __init__(self): | |
self.chain = [] | |
self.unconfirmed_transactions = [] | |
self.genesis_block() | |
def genesis_block(self): | |
transactions = [] |