I hereby claim:
- I am christopher-dG on github.
- I am degraafc (https://keybase.io/degraafc) on keybase.
- I have a public key whose fingerprint is C001 55D2 F174 E1EA BFA3 0F4B 9167 78DB B1B9 937C
To claim this, I am signing this object:
| import subprocess | |
| from flask import Flask, request | |
| app = Flask(__name__) | |
| @app.route("/") | |
| def cowsay(): | |
| stdin = request.args.get("quote", "").encode("utf-8") | |
| proc = subprocess.run(["cowsay"], input=stdin, capture_output=True) |
I hereby claim:
To claim this, I am signing this object:
| module Sodium | |
| export seal | |
| using Base64: base64encode, base64decode | |
| const SEALBYTES = Ref{Csize_t}() | |
| struct SodiumError | |
| fun::Symbol |
| tablename(x::Symbol) = Symbol(:methtab_, x) | |
| macro instancemethod(T::Symbol, ex::Expr) | |
| @assert ex.head ∈ (:function, :(=)) | |
| table = tablename(T) | |
| name = ex.args[1].args[1] | |
| insert!(ex.args[1].args, 2, :(this::$T)) | |
| quote | |
| $(esc(ex)) | |
| $table[$(QuoteNode(name))] = $name |
| #!/usr/bin/env python3 | |
| # Dependencies: | |
| # - Python >= 3.6 | |
| # - google-api-python-client | |
| # - requests | |
| from argparse import ArgumentParser | |
| from base64 import b64encode |
| using Discord | |
| using REPL | |
| const PREFIX = "julia> " # Cutesy Julia prompt. | |
| const EMOTE = "<:julia:511658283090706453>" # Julia logo. | |
| const COLOUR = 0x36393f # "Invisible" border for dark theme. | |
| const CHRIS, JUAN = 0x0295605b65400000, 0x02a82393a1420002 | |
| const ADMINS = [CHRIS, JUAN] | |
| chris_dm = nothing |
| // Webhook handler for GitHub push events. | |
| // Synchronizes the live website with the current master branch of umwics/wics-site. | |
| // | |
| // Required environment variables: | |
| // - REPO_PATH | |
| // - WEBHOOK_SECRET | |
| // - WICS_KEY | |
| // | |
| // System dependencies: | |
| // - bundler |
| #!/usr/bin/env python3 | |
| # We want to guess how many combo units a CTB slider tends to be worth. | |
| # We'll be looking at all catch-specific beatmaps with an FC as their top play, | |
| # from 2010 to the present (Nov. 2017). For each beatmap, we want to count | |
| # the max combo of the FC (this is guaranteed to be the max combo), the number | |
| # of regular hit objects, and the number of sliders. | |
| # To estimate slider combo, we'll compute: | |
| # slidercombo = ((max combo - normal objects) / sliders) |