I hereby claim:
- I am paralleldanielle on github.
- I am danielle (https://keybase.io/danielle) on keybase.
- I have a public key whose fingerprint is A754 9DF6 4573 C864 3AA1 E5DB 2B6B 80EC A83D 658D
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| """ | |
| Set terminal tab / decoration color by the server name. | |
| Get a random colour which matches the server name and use it for the tab colour: | |
| the benefit is that each server gets a distinct color which you do not need | |
| to configure beforehand. | |
| """ |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| ''' | |
| In case you forget, this script is for generating a list of all netrunner cards | |
| to be used in some plugin Anthony wants to use on stimhack. | |
| ''' | |
| import requests | |
| import io | |
| ghost in the shell | |
| samuria champloo | |
| haruhi | |
| deathnote | |
| hellsing | |
| spirited away | |
| princess mononoke | |
| Sword of the Stranger | |
| full metal alchemist | |
| kino no tabi |
| from time import time | |
| class TokenBucket(object): | |
| """An implementation of the token bucket algorithm. | |
| >>> bucket = TokenBucket(80, 0.5) | |
| >>> print bucket.consume(10) | |
| True | |
| >>> print bucket.consume(90) | |
| False |
| import socket | |
| import sys | |
| def tcp_check(host, port=22): | |
| ClientSocket = socket.socket() | |
| try: | |
| ClientSocket.connect((host, int(port))) | |
| return_flag = True | |
| except socket.error: | |
| return_flag = False |
| import socket | |
| import json | |
| HOST = "" | |
| PORT = 8888 | |
| def send_response(msg, code, code_msg, conn): | |
| http_response = ("HTTP/1.1 {code} {code_msg}\n\n{msg}" | |
| "".format(code=code, code_msg=code_msg, msg=msg)) | |
| client_connection.sendall(http_response) |
| import markovify | |
| import os | |
| import json | |
| import re | |
| directory = os.path.join(os.getcwd(), "general") | |
| filenames = os.listdir(directory) | |
| data = [] |
I hereby claim:
To claim this, I am signing this object: