This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import random | |
| import tkinter as tk | |
| from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg | |
| from matplotlib.figure import Figure | |
| class Window(): | |
| def __init__(self, root): | |
| self.root = root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| remote = $ARG1 | |
| mount_point = f'/mnt/{remote}' | |
| print(f'Creating mount point for user `{$USER}`, (may require root permissions)') | |
| sudo mkdir -p @(mount_point) | |
| sudo chown $USER @(mount_point) | |
| log = f'/tmp/rclone-mount-{remote}.log' | |
| config = f'''[Unit] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| SynthDef(\pure, {|freq=1000| Out.ar(0, SinOsc.ar(freq)); }).add; | |
| Synth(\pure, [\freq, 440]); | |
| """ | |
| import supriya | |
| import time | |
| path = '/Applications/SuperCollider.app/Contents/Resources/scsynth' | |
| server = supriya.Server.default() | |
| server.boot(scsynth_path=path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| VIRTUAL_ENV_PATH=${VIRTUAL_ENV_PATH:-"$HOME/.local/share/virtualenvs"} | |
| function yes_or_no { | |
| while true; do | |
| read -p "$* [y/n]: " yn | |
| case $yn in | |
| [Yy]*) return 0 ;; |
OlderNewer