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
// ==UserScript== | |
// @name Blackboard Search Enhancements | |
// @author Kenton Lam | |
// @description Searches blackboard | |
// @match https://learn.uq.edu.au/* | |
// @match https://ilearn.bond.edu.au/* | |
// @version 0.1.1 | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_deleteValue |
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
// ==UserScript== | |
// @name Blackboard TABLIFIER | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://learn.uq.edu.au/webapps/portal/execute/tabs/tabAction?tab_tab_group_id=_1_1 | |
// @grant none | |
// ==/UserScript== |
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 'math.min.js'; | |
const pi = Math.PI; | |
function rotation(angle) { | |
return [ | |
[Math.cos(angle), -Math.sin(angle)], | |
[Math.sin(angle), Math.cos(angle)] | |
]; | |
} |
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
use std::io; | |
use std::io::Write; | |
use rand::Rng; | |
use std::cmp::Ordering; | |
use std::num::ParseIntError; | |
fn parse_str(s: &str) -> Result<u32, ParseIntError> { | |
s.trim().parse::<u32>()? | |
} |
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
15. 8-bit Timer/Counter0 with PWM | |||||||||
---|---|---|---|---|---|---|---|---|---|
15.9.1 TCCR0A – Timer/Counter Control Register A | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
COM0A1 | COM0A0 | COM0B1 | COM0B0 | – | – | WGM01 | WGM00 | ||
15.9.2 TCCR0B – Timer/Counter Control Register B | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
FOC0A | FOC0B | – | – | WGM02 | CS02 | CS01 | CS00 | ||
Table 15-2. | Compare Output mode, non-PWM mode |
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
" Neil's (minimal) vimrc | |
" Copy this file to your home directory and rename it `.vimrc` (no file | |
" extension). Feel free to look up what any of the lines mean, and/or add | |
" extra bits. | |
" AESTHETIC THINGS | |
" set vim to use colours more friendly with putty's dark background | |
set background=dark | |
" fancy colourscheme in colour | |
"color desert |
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
"**/*.aux": {"when": "$(basename).tex"}, | |
"**/*.fdb_latexmk": {"when": "$(basename).tex"}, | |
"**/*.fls": {"when": "$(basename).tex"}, | |
"**/*.log": {"when": "$(basename).tex"}, | |
"**/*.out": {"when": "$(basename).tex"}, | |
"**/*.synctex.gz": true, |
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 random | |
import string | |
import sys | |
from itertools import product | |
if __name__ == '__main__': | |
if len(sys.argv) < 2: | |
print('specify number of cards as argument', file=sys.stderr) | |
sys.exit(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
\usepackage{listings} | |
\usepackage{lstautogobble} % Fix relative indenting | |
\usepackage{color} % Code coloring | |
\definecolor{bluekeywords}{rgb}{0.13, 0.13, 1} | |
\definecolor{greencomments}{rgb}{0, 0.5, 0} | |
\definecolor{redstrings}{rgb}{0.9, 0, 0} | |
\definecolor{graynumbers}{rgb}{0.5, 0.5, 0.5} | |
\usepackage{listings} |
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
/* ==UserStyle== | |
@name STAT3004 Course Website | |
@namespace kentonlam.xyz | |
@version 1.0.0 | |
@description A new userstyle | |
@author Kenton Lam | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://courses.smp.uq.edu.au/STAT3004/") { | |
* { |
OlderNewer