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 Gradescope assignment expander | |
// @namespace https://gist.github.com/isaacl/86d5121ede0eeac3eb6a4016555ad70e | |
// @version 0.1.8 | |
// @description Expands programming exercises with keyboard | |
// @author Isaac Levy | |
// @match *://*.gradescope.com/* | |
// @grant none | |
// @license MIT | |
// ==/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
#!/usr/bin/env python3 | |
import iterm2 | |
import AppKit | |
import asyncio | |
# Each command runs in its own tab. | |
commands = [ | |
"echo 1", | |
"echo 2" |
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
*.class |
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
{ | |
"type" : "record", | |
"name" : "ParsedPixAllHit", | |
"namespace" : "com.dealer.analytics.pixall.processing", | |
"fields" : [ { | |
"name" : "visitorId", | |
"type" : "string" | |
}, { | |
"name" : "hitUuid", | |
"type" : { |
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
{ | |
"extends": "airbnb", | |
"rules": { | |
"comma-dangle": 0, | |
"react/no-multi-comp": [1, { "ignoreStateless": true }], | |
"id-length": 0, | |
"indent": [1, 4, {"SwitchCase": 1}], | |
"max-len": 0, | |
"no-nested-ternary": 0, | |
"object-curly-spacing": 0, |
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
#!/bin/bash -e | |
# option parsing. | |
FAST_ESLINT=0 | |
ALLOW_WARNINGS=0 | |
ESLINT_VERBOSE=0 | |
OPTIND=1 # Reset in case getopts has been used previously in the shell. | |
while getopts ":fvw" opt; do | |
case "$opt" in | |
v) ESLINT_VERBOSE=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
#!/usr/bin/env python | |
import argparse | |
import os | |
import pipes | |
import subprocess | |
import sys | |
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)); | |
os.chdir(subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], |
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
# bitwise python solution to n queens with some pretty printing | |
# described by Martin Richards in http://www.cl.cam.ac.uk/~mr10/backtrk.pdf | |
import sys | |
import shutil | |
import itertools | |
def tryP(ld, col, rd, all_p, cur_s): | |
if (col == all_p): | |
return (cur_s,) |
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
#!/bin/bash -e | |
com="$1" | |
if [[ -z "$com" ]]; then | |
exit 1 | |
fi | |
while true; do | |
case $(type -t "$com") in |
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 Disable website keyboard hooks | |
// @description Stop websites from hijacking keyboard shortcuts. | |
// @author Isaac Levy | |
// @run-at document-start | |
// @include * | |
// @grant none | |
// @version 0.0.1 | |
// @namespace https://isaacrlevy.com | |
// ==/UserScript== |
NewerOlder