I hereby claim:
- I am jasonbot on github.
- I am jasonscheirer (https://keybase.io/jasonscheirer) on keybase.
- I have a public key ASBpLwc10AL6TYwn4vRiUu8cw3--I_u4Eu3vzL2MlnvxjQo
To claim this, I am signing this object:
| import collections | |
| import collections.abc | |
| import itertools | |
| import os | |
| import pathlib | |
| import sys | |
| REPLACE_TUPLES = (("/.", "/"),) | |
| REPLACE_CHARS = ':*?"![]' | |
| VERY_REPLACE = {'$': 'S'} |
| format = """ | |
| [](fg:#5E5C64 bg:#241F31)\ | |
| $os$battery$username$hostname$shell\ | |
| [](fg:#5E5C64 bg:#241F31)\ | |
| $directory\ | |
| $git_branch\ | |
| $git_status\ | |
| $c\ | |
| $elixir\ | |
| $elm\ |
I hereby claim:
To claim this, I am signing this object:
| import os | |
| import pathlib | |
| REPLACE_CHARS = ':*?"' | |
| def walk(path: pathlib.Path): | |
| for item in path.iterdir(): | |
| if item.is_dir(): | |
| yield from walk(item) | |
| elif item.is_file(): |
| import os | |
| import pathlib | |
| from urllib.parse import urlparse, urlunparse, unquote, quote | |
| import xml.dom.minidom | |
| REPLACE_CHARS = '<>:' | |
| path = pathlib.Path("~/.local/share/rhythmbox/rhythmdb.xml").expanduser() | |
| out_path = path.parent / "new_rhythmdb.xml" |
| import pathlib | |
| import xml.dom.minidom | |
| path = pathlib.Path("~/.local/share/rhythmbox/rhythmdb.xml").expanduser() | |
| out_path = path.parent / "new_rhythmdb.xml" | |
| print("Updating date addeds in", path, "and outputting to", out_path) | |
| d = xml.dom.minidom.parse(str(path)) |
| import gzip | |
| import os | |
| import pathlib | |
| import warcio.archiveiterator | |
| from bs4 import BeautifulSoup | |
| import pandas | |
| def warc_stream(stream): |
| func RotatedImage(i *ebiten.Image, rotation float64) *ebiten.Image { | |
| if i == nil { | |
| return i | |
| } | |
| w, h := i.Size() | |
| maxDim := int(math.Hypot(float64(w), float64(h))) | |
| newimage := ebiten.NewImage(maxDim, maxDim) | |
| op := ebiten.DrawImageOptions{} |
| func RotateAround(pt, origin image.Point, angle float64) (int, int) { | |
| x1, y1 := float64(pt.X-origin.X), float64(pt.Y-origin.Y) | |
| magnitude := math.Hypot(x1, y1) | |
| rotationAngle := math.Atan2(y1, x1) + angle | |
| return origin.X + (int(math.Cos(rotationAngle) * magnitude)), origin.Y + (int(math.Sin(rotationAngle) * magnitude)) | |
| } | |
| func RotatedImage(i *ebiten.Image, rotation float64) *ebiten.Image { | |
| if i == nil { |
| Alpeppert | |
| ampepperage | |
| ampeppere | |
| ampepperes | |
| ampeppersand | |
| ampeppersands | |
| apepperiodic | |
| apepperiodicity | |
| apepperture | |
| appeppertain |