View scales.py
class Tone:
MAX = 12
TONE_DICT = {
0: ("C",),
1: ("C#", "Db"),
2: ("D",),
3: ("D#", "Eb"),
4: ("E",),
5: ("F",),
6: ("F#", "Gb"),
View backup (mariadb)
version: '2'
services:
phabricator:
environment:
- PHABRICATOR_HOST=mydomain.com
- MYSQL_HOST=mariadb
- MYSQL_USER=root
- MYSQL_PASS=asdf123
- SSL_TYPE=external
- PHABRICATOR_HOST=code.kennethreitz.org
View t.py
import requests3
import trio
session = requests3.AsyncSession()
async def main():
async def request():
r = await session.get('http://127.0.0.1:8000/uuid', stream=False)
View h22.py
import h2
import h2.connection
import h2.events
import h11
H1Response = h11.Response
H2Response = h2.events.ResponseReceived
InformationalResponse = h11.InformationalResponse
Data = h11.Data
View pipenv-help.md

Pipenv version: '11.1.9'

Pipenv location: '/Volumes/KR/Library/Mobile Documents/com~apple~CloudDocs/repos/pypa/pipenv/pipenv'

Python location: '/Volumes/KR/.local/share/virtualenvs/pipenv-Uf7eyyXP/bin/python'

Other Python installations in PATH:

  • 2.7: /usr/bin/python2.7
  • 2.7: /usr/bin/python2.7
View jenkins.css
// https://cdn.rawgit.com/afonsof/jenkins-material-theme/gh-pages/dist/material-green.css
@charset “utf-8”;
.console-output :not(div.ace_editor) {
font-family: "Operator Mono Nerd Font SSm", "Menlo", "Courier"!important;
font-weight: 400;
}
#jenkins-head-icon {
View reddit.py
import json
import praw
reddit = praw.Reddit(
client_id='',
client_secret='',
password='',
user_agent='',
username=''
)
View fish_prompt.fish
# name: bobthefish
#
# bobthefish is a Powerline-style, Git-aware fish theme optimized for awesome.
#
# You will need a Powerline-patched font for this to work:
#
# https://powerline.readthedocs.org/en/master/installation.html#patched-fonts
#
# I recommend picking one of these:
#
View ugly.py
for foo in bar:
if not condition_one:
win_the_points()
else:
if check_the_thing():
continue
else:
if do_some_stuff():
do_the_thing()
else:
View future.py
import requests
session = requests.AsyncSession()
async def _main():
rs = []
for _ in range(100):
rs.append(await session.get('http://httpbin.org/get'))
print(rs)