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
Show hidden characters
{ | |
"selector": "text.html.markdown", | |
"cmd": ["pandoc", "--verbose", "-o", "$file_path\\\\$file_base_name.pdf", "$file"], | |
"variants": [ | |
{ | |
"name": "Pandoc LaTeX PDF (Essay template)", | |
"cmd": ["pandoc", "--verbose", "--template", "C:\\Users\\Nicholas\\Template\\pandoc_essay.tex", "--pdf-engine=xelatex", "-o", "$file_path\\\\$file_base_name.pdf", "$file"] | |
}, | |
{ |
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
let prefix = "FFZ:setting:p:0:"; | |
function serializeFfz() { | |
let output = {}; | |
Object.keys(localStorage).filter(k => k.startsWith(prefix)).forEach(k => output[k.replace(prefix, "")] = localStorage.getItem(k)); | |
return JSON.stringify(output); | |
} | |
function restoreFfz(obj) { | |
Object.keys(obj).forEach(k => localStorage.setItem(prefix + k, obj[k])); |
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
function vtt2srt(raw) { | |
if (raw.substr(0,6) !== 'WEBVTT') | |
throw new TypeError('data does not look like webvtt'); | |
var vtt = raw.replace('\r', '').trim(); | |
var data = '1\n' + vtt.substr(vtt.indexOf('\n\n')+2); // get past the blank line and get the 1 started | |
var i = 1; // iterate the sub numbers | |
return data.replace(/\n\n/g, str => '\n\n' + (++i) + '\n'); // add the numbers at new lines | |
} |
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
/* ------------------------------------------- * | |
* | nexerq <3 ~ discord custom css | * | |
* ------------------------------------------- * | |
* ~ t: @_nexerq | |
* ~ discord update ver: Dec 21, 2017 | |
* ~ updated 2018년 1월 22일 | |
*/ | |
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 Schoology quick-download files helper | |
// @namespace http://nicholastay.github.io/ | |
// @version 0.3.0 | |
// @author Nicholas Tay <[email protected]> | |
// @license MIT | |
// @icon https://i.imgur.com/QmmYqzZ.png | |
// @match *://app.schoology.com/* | |
// @match *://schoology.cgs.vic.edu.au/* | |
// @grant none |
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
{ | |
"presets": [ | |
"es2015" | |
] | |
} |
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
'use strict'; | |
const Eris = require('eris') | |
, fs = require('fs') | |
, repl = require('repl'); | |
let client = new Eris(fs.readFileSync('./key.txt', 'utf8')); | |
client.on('ready', () => console.log('connected')); |
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
.emoticon[alt="LUL"] { | |
background: url(//cdn.betterttv.net/emote/567b00c61ddbe1786688a633/1x) left top no-repeat; | |
box-sizing: border-box; | |
width: 28px; | |
height: 28px; | |
padding-left: 28px; | |
} |
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 Schoology infiniscroll feed | |
// @namespace http://nicholastay.github.io/ | |
// @version 0.1.0 | |
// @homepage https://gist.github.com/nicholastay/665822c67bd3e098d5c43ec31eb4d830 | |
// @author Nicholas Tay <[email protected]> | |
// @icon https://i.imgur.com/meGrY1N.png | |
// @include *://app.schoology.com/* | |
// @include *://schoology.cgs.vic.edu.au/* | |
// @grant none |
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 CGS Schoology ZeroCourse tweak | |
// @namespace http://nicholastay.github.io/ | |
// @homepage https://gist.github.com/nicholastay/254f63b90e5a82305701836020af7d25 | |
// @version 0.1.6 | |
// @description Reduces Courses tab clutter for CGS students with common YYXXX0 courses on Schoology. | |
// @author Nicholas Tay <[email protected]> | |
// @license Zlib | |
// @icon https://i.imgur.com/PkIuFKy.png | |
// @match *://app.schoology.com/* |