$ 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"),
| import wolframalpha | |
| client = wolframalpha.Client("lilpumpsaysnopeeking") | |
| import wikipedia | |
| import PySimpleGUI as sg | |
| sg.theme('DarkPurple') | |
| layout =[[sg.Text('Enter a command'), sg.InputText()],[sg.Button('Ok'), sg.Button('Cancel')]] | |
| window = sg.Window('PyDa', layout) |
| import argparse | |
| import sys | |
| import black | |
| from blib2to3.pgen2.tokenize import TokenError | |
| TEST_DATA = """ | |
| Normal |
$ 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"),
| import os | |
| import gi | |
| gi.require_version("Gtk", "3.0") | |
| gi.require_version('WebKit2', '4.0') | |
| from gi.repository import Gtk, Gdk, WebKit2 | |
| class HtmlEditor(Gtk.Window): | |
| def __init__(self): | |
| super().__init__() | |
Author: Chris Lattner
| # Play a blues melody on Pythonista on the iPad (iOS) | |
| import sound | |
| import time | |
| def playNotes(inNotes, inWithEmphisis=False): | |
| for note in inNotes: | |
| sound.play_effect('Piano_' + note) | |
| if (inWithEmphisis): | |
| time.sleep(0.25) | |
| sound.play_effect('Piano_' + note) |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |