I hereby claim:
- I am kenny2github on github.
- I am kenny2crypto (https://keybase.io/kenny2crypto) on keybase.
- I have a public key ASDMFd_UECCnVxFrIXQ0wrrgsUZkJ28JWqYxYNtyP6Sriwo
To claim this, I am signing this object:
| def exp(z, zero=None, one=None, equality=lambda a, b: a == b): | |
| """Raise e to the power of z. | |
| z need only support the following: | |
| - Addition with its own type | |
| - Multiplication with its own type | |
| - Multiplication with float | |
| Provide ``zero`` if z - z != the zero of its type. | |
| This function will probably not produce correct results | |
| if this is the case, but it is provided for completeness. |
| import math | |
| import random | |
| from random import randint | |
| from types import SimpleNamespace as Record | |
| import pygame | |
| from pygame.locals import * | |
| SIZE = WIDTH, HEIGHT = 640, 360 | |
| HALFWIDTH, HALFHEIGHT = WIDTH // 2, HEIGHT // 2 | |
| BLOCS = BLOCW, BLOCH = 20, 20 |
| LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| def vigenere(string, key, direction=1): | |
| """Transform text with the vigenere cipher. | |
| ``string`` is the text to transform. | |
| ``key`` is the key to use in the process. | |
| ``direction`` is the direction of transformation: | |
| 1 for encoding, and -1 for decoding. |
| def vortex_sort(arr): | |
| """Swirl the array into order. | |
| Guaranteed to only use < for comparison, so use any objects you like. | |
| """ | |
| arlen = len(arr) | |
| rs = [] | |
| mult = 1 | |
| last = 0 | |
| while last < arlen: | |
| number = mult * 4 |
| // ==UserScript== | |
| // @name Comment IDs | |
| // @version 0.1 | |
| // @description Get Scratch comment IDs | |
| // @author Kenny2github | |
| // @match https://scratch.mit.edu/* | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @updateURL https://gist.githubusercontent.com/Kenny2github/a25dff9c52c90d6f062209df43ef0200/raw/copy-comment.user.js | |
| // ==/UserScript== |
| from __future__ import print_function | |
| import asyncio | |
| from sys import argv | |
| import websockets | |
| connected = {} | |
| def handler(sock, path): | |
| if path not in connected: | |
| connected[path] = set() |
I hereby claim:
To claim this, I am signing this object: