I hereby claim:
- I am NegativeMjark on github.
- I am mjark (https://keybase.io/mjark) on keybase.
- I have a public key whose fingerprint is 7116 D774 56E7 45E9 F70A 936D 42A6 FB34 D5E6 90F7
To claim this, I am signing this object:
| :syn on | |
| :set number | |
| :set tabstop=8 | |
| :set softtabstop=4 | |
| :set expandtab | |
| :set autoindent | |
| :set guifont=Source\ Code\ Pro\ 9 | |
| :colorscheme koehler | |
| :highlight Trailing ctermbg=red ctermfg=white guibg=#592929 | |
| :match Trailing /\s\+$\|\%80v.\+/ |
I hereby claim:
To claim this, I am signing this object:
Everything in python is an object. All objects have a type. Most objects have
an instance dictionary. Types can be constructed by calling
type("name for type", (parents for type,), {instance dict for type}).
Types have a method resolution order which is determined from their parents
using http://en.wikipedia.org/wiki/C3_linearization. All operators in python
can be overridden including the "." operator. So a.b is really finding a
__getattribute__ in one of the types of a and calling it. However
| #! /usr/bin/env python | |
| from flask import Flask, make_response | |
| from io import BytesIO | |
| from pydenticon import Generator | |
| app = Flask(__name__) | |
| foreground = [ | |
| "rgb(45,79,255)", |
| def bindto(target): | |
| def set_attr(name, value): | |
| if name == "__new__" and isinstance(target, type): | |
| setattr(target, name, staticmethod(value)) | |
| else: | |
| setattr(target, name, value) | |
| def bind_class(cls, name, bases, members): | |
| for key, value in members.items(): | |
| set_attr(key, value) |
| OBJECT_CONSTANTS = { | |
| True: '":true,"', | |
| False: '":false,"', | |
| None: '":null,"', | |
| } | |
| ARRAY_CONSTANTS = { | |
| True: 'true,', | |
| False: 'false,', | |
| None: 'null,', |
| <html> | |
| <head> | |
| <script> | |
| function readFile(file, callback) { | |
| var reader = new FileReader(); | |
| reader.addEventListener("load", function() { | |
| callback(this.result); | |
| }); | |
| reader.readAsArrayBuffer(file); |
| #! /bin/bash | |
| set -eu | |
| DATE="$(date +"%Y-%m-%d")" | |
| HOST=negativecurvature.net | |
| CERT="$HOST.$DATE.crt" | |
| COMBINED="$HOST.$DATE.combined.crt" | |
| WITHKEY="$HOST.$DATE.withkey.crt" |