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
#include <Keyboard.h> | |
#include <MIDIUSB.h> | |
int readValue = 0; | |
int lastValue = 1; | |
char mode = 'K'; | |
byte midiCh = 2; | |
byte note = 36; | |
byte cc = 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 requests | |
import spotipy | |
import pandas as pd | |
from spotipy.oauth2 import SpotifyClientCredentials | |
#define api information | |
user = 'ml_userid' | |
base_url = 'https://app.musicleague.com/api/v1/' | |
url = base_url + 'users/' + user + '/leagues' | |
cookie = {'session':'session cookie from browser'} |
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 selenium import webdriver | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.stats as stats | |
np.set_printoptions(suppress=True) | |
def moving_avg(x, n): | |
cumsum = np.cumsum(np.insert(x, 0, 0)) | |
return (cumsum[n:] - cumsum[:-n]) / float(n) | |
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 mouse | |
import keyboard | |
import cv2 | |
import numpy as np | |
import urllib.request | |
import pyautogui | |
import time | |
import math | |
from matplotlib import pyplot as plt | |
from matplotlib.patches import Circle |
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 re | |
import requests | |
from lxml import html | |
text = 'text goes here http://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com/AaaaaaaaaAAaAaAaaAAa click on that' | |
matches = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', text) | |
gnomecount = 0 | |
for match in matches: |
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 mouse | |
import keyboard | |
import cv2 | |
import numpy as np | |
import urllib.request | |
import pyautogui | |
import time | |
from matplotlib import pyplot as plt | |
from matplotlib.patches import Circle | |
import gc |
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
--Turn off enforce playermodels everywhere you can | |
--Place in garrysmod/addons/applypmodels/lua/autorun/server on your server | |
roundon = false | |
hook.Add( "TTTPrepareRound", "SetRoundOn1" function() | |
roundon = false | |
end ) | |
hook.Add( "TTTBeginRound", "UpdatePlayerModelsBegin", function() | |
roundon = true | |
for k, v in pairs ( player.GetAll() ) do |
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
const Discord = require('discord.js'); | |
const config = require('./config.json'); | |
const {log,error} = console; | |
const http = require('http'); | |
const fs = require('fs'); | |
const PORT = config.server.port; //unused port and since now the OFFICIAL ttt_discord_bot port ;) | |
var guild, channel, channel2; |
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
/** | |
* Portable utilities for IRC. | |
*/ | |
(function() { | |
'use strict'; | |
var IrcUtils = angular.module('IrcUtils', []); | |
IrcUtils.service('IrcUtils', [function() { |
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
# -*- coding: utf-8 -*- | |
import weechat | |
import re | |
import urllib2 | |
weechat.register("mtg_replace", "tomatosoup", "0.1", "GPL3", "replaces mtg shortcodes and resolves scryfall images and replaces those too", "", "UTF-8") | |
weechat.prnt(" ", "Hello world") | |
mtgmatch = re.compile("^(.*)(:mana(.*):)(.*)") | |
halfmatch = re.compile(".*https://scryfall.com/card.*utm_source=slack.*") |