I hereby claim:
- I am nathantowell on github.
- I am natho_ (https://keybase.io/natho_) on keybase.
- I have a public key whose fingerprint is A8FC 49CD 1092 9B48 913A BAB4 14D4 9A06 2F9E 9327
To claim this, I am signing this object:
| # Include Custom Setup | |
| source ~/.custombash |
| 'use strict' | |
| const Koa = require('koa') | |
| const app = new Koa() | |
| app.use(async (context, next) => { | |
| let start = Date.now() | |
| await next() | |
| let ms = Date.now() - start | |
| context.set('X-Response-Time', ms + 'ms') |
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Function that tells you if your opinion matters. | |
| * @param Your opinion | |
| * @returns Opinion matter-ness | |
| */ | |
| function doesMyOpinionMatter(var opinion) { | |
| return false; | |
| } | |
| doesMyOpinionMatter("Something Something..."); |
| from random import randint | |
| def game(): | |
| print("Welcome to the number guessing game!") | |
| while True: | |
| pair = setup() | |
| rand = generate(pair) | |
| print("Time to guess the number chosen...") | |
| tries = get_guesses(pair, rand) |
| import socket | |
| s = socket.socket() | |
| host = socket.gethostname() | |
| port = 6789 | |
| s.connect((host, port)) | |
| print(s.recv(1024).decode()) | |
| s.close |
| def max_of(list): | |
| for a in reversed(range(1, len(list)+1)): | |
| for b in range(1, a): | |
| if list[b-1] > list[b]: | |
| temp = list[b-1] | |
| list[b-1] = list[b] | |
| list[b] = temp | |
| return list | |
| #Example |
| import re | |
| suffix = "ay" | |
| def translate_word(word): | |
| word = re.sub("[^a-zA-Z]+", "", word) | |
| new_word = word[1:] + word[0] + suffix | |
| if word[0] == word[0].upper(): | |
| if word[1:] == word[1:].lower(): | |
| return new_word[0].upper() + new_word[1:] |