Instantly share code, notes, and snippets.

View app.py
import responder
import graphene
from flask import Flask
app = Flask(__name__)
@app.route("/")
View docker-compose.yml
version: '3'
services:
postgres:
image: postgres
rabbit:
image: "rabbitmq:latest"
ports:
- "5672:5672"
web:
View test.md
$ cat t.py
from pprint import pprint
from pytheory import Tone, Fretboard, charts_for_fretboard


tones = (
    Tone.from_string("F2"),
    Tone.from_string("C3"),
    Tone.from_string("G3"),
    Tone.from_string("D4"),
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=''
)