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
// ==UserScript== | |
// @name JU Tools | |
// @namespace http://tampermonkey.net/ | |
// @version 2.16 | |
// @description Tools for students and teachers at Jönköping University | |
// @author AndreasLonn | |
// @downloadURL https://gist.github.com/AndreasLonn/c5f12b1704c748a9bc18786ea295aedc/raw/JUTools.user.js | |
// @updateURL https://gist.github.com/AndreasLonn/c5f12b1704c748a9bc18786ea295aedc/raw/JUTools.user.js | |
// @run-at document-start | |
// @match https://ju.instructure.com/* |
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
#include <iostream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
/** | |
* @brief Converts an integer to a string in base 2 (binary) | |
* | |
* @param num Integer to convert to string |
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
<!-- | |
This is a serverless checklist that is run locally. Checked items are | |
stored in localstorage in the web browser. | |
The content is stored as a javascript array for quick interpretation. | |
The indentation of the array is ignored. The number first number in the | |
array in the list array represents the indentation, while the string | |
is the text to be displayed. The strings are NOT escaped, so the strings | |
can contain HTML elements like links. | |
--> | |
<!DOCTYPE html> |
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
# How to use: | |
# This script requires: pygame, configparser, keyboard and mouse | |
# Tested on Windows 10 with Xbox One S controller | |
# over both bluetooth and micro-USB cable | |
# The config file ('config.ini') is stored in the same directory as the script | |
# The available keys are: | |
# For normal keys, see https://github.com/boppreh/keyboard#keyboard.send | |
# For mouse click, use "!m:click:" followed by button | |
# from https://github.com/boppreh/mouse#mouse.click | |
# For mouse movement, use "!m:move:hori" or "!m:move:vert" |
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
# The script can either take command line arguments or, if none is supplied, | |
# ask for it | |
# Usage with command line arguments: | |
# python3 youtube-download.py link-to-YouTube-video where-to-download | |
from pytube import YouTube | |
import subprocess, sys | |
# Get the YouTube link and where to save the file |