This file contains 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 python3 | |
import json | |
import pickle | |
import gzip | |
import requests | |
import os | |
from pprint import pprint as p | |
# we need to know what CURRENT_YEAR is so we can make jokes | |
CURRENT_YEAR = 2018 |
This file contains 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 sys | |
import subprocess | |
stream, name, poll_first, poll_rest = sys.argv[1:] | |
first = True | |
poll = poll_first | |
count = 0 | |
print(stream, name.format(count), poll_first, poll_rest) | |
#input() |
This file contains 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 mido | |
import numpy as np | |
import scipy.signal | |
import scipy.io.wavfile | |
import simpleaudio as sa | |
import sys | |
import io | |
A = 440 # hertz | |
SAMPLE_RATE = 48000 | |
wave_function = [np.sin, scipy.signal.square, scipy.signal.sawtooth][1] |
This file contains 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 discord | |
import json | |
import os | |
import sys | |
from discord.ext.commands import command, has_permissions, bot_has_permissions, Bot, NotOwner | |
from asyncio import sleep | |
CONFIG_PATH = "config.json" | |
default_config = { | |
"token": "[ add bot token here ]", |
This file contains 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
package org.firstinspires.ftc.robotcontroller.internal; | |
import java.lang.Thread.UncaughtExceptionHandler; | |
import android.app.Activity; | |
import android.app.AlarmManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.util.Log; |
This file contains 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 python3 | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains 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
from __future__ import print_function | |
import ctypes | |
MB_ABORTRETRYIGNORE = 2 | |
MB_CANCELTRYCONTINUE = 6 | |
MB_HELP = 0x4000 | |
MB_OK = 0 | |
MB_OKCANCEL = 1 | |
MB_RETRYCANCEL = 5 | |
MB_YESNO = 4 | |
MB_YESNOCANCEL = 3 |