Skip to content

Instantly share code, notes, and snippets.

elliotwesoff / wa-hide.js
Created Jun 8, 2021
Hide WebAssign responses and answer keys
View wa-hide.js
// copy and paste this function and call into your browser's dev tools console.
// use hideAnswers(false) to show the responses and answer keys again after initially hiding them.
function hideAnswers(hide) {
const selectors = '.static, .mq-root-block, input, div.solutionContainer, span.seenKey, img[alt*=answer], img[alt*=infinity], img[alt*="-infinity"], img[src*=symimage]';
document.getElements(selectors).forEach(e => = hide ? 'none' : 'inherit');
elliotwesoff /
Last active Jun 7, 2021
Naruto manga downloader
import time
import pathlib
import requests
from optparse import OptionParser
base_url = ''
consecutive_error_threshold = 5
def setup():
parser = OptionParser()
elliotwesoff / py-stop-snippet.cson
Created Sep 4, 2019
Python code interact in Atom, with globals and locals
View py-stop-snippet.cson
'prefix': 'stop'
'body': 'import code; code.interact(local=dict(globals(), **locals()))'
elliotwesoff / elliot.bat
Created Mar 22, 2017
View elliot.bat
@echo off
doskey gs=git status
doskey gl=git log
doskey gd=git diff
doskey gb=git branch
doskey l=ls -lah
doskey size=du -sh
doskey e=explorer
doskey hosts=vim C:\Windows\System32\drivers\etc\hosts
elliotwesoff / messenger.html
Last active Mar 13, 2017
Little bb messenger window yay!
View messenger.html
<!DOCTYPE html>
<meta charset="utf-8" />
var height = 300;
var width = 500;
elliotwesoff / setup-dev-environment
Created Nov 8, 2016
Script to quickly setup necessary tools for a Linux dev environment.
View setup-dev-environment
function process_failed {
echo "${1} didn't download correctly"
# download vimrc and add to system vimrc
# wget -O ~/.vimrc
if [ "$?" -eq 1 ]; then process_failed vimrc; else echo vimrc OK; fi
View codeschool.vim
" Vim color file
" Converted from my Textmate Code School theme using Coloration
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
View twilight.vim
" Please note: I am not the creator of the original file. I have, however, changed
" some of the original colors and settings to my liking. You can find the original twilight.vim at:
set background=dark
hi clear
if exists("syntax_on")
syntax reset
View default-css
body {
font-family: "Courier New";
.center {
width: 60%;
margin: auto;
text-align: center;