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
javascript:(function(){document.querySelector('#advocate-modal').remove(); document.querySelector('.advocate-modal-visible').classList.remove('advocate-modal-visible')}()); |
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
javascript:location.href=%22googlechrome%22+location.href.substring(4) |
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
javascript:(function(){var content=document.querySelector('article');var body = document.querySelector('body');body.innerHTML = '';body.appendChild(content);}()); |
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
javascript:(function(){document.querySelectorAll('body *').forEach(function(obj){obj.style.maxWidth="100vw"});document.querySelector('body').style.overflowX = 'hidden'}()); |
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
// jj: select post below | |
// kk: select post above | |
// checks to see if you're not typing/focused on any element. click outside to activate | |
javascript:var previous; var arrowKey = function(event) { if ($(document.activeElement)[0].tagName === "BODY") { if (event.keyCode == 74 && previous == 74) { $('.feed_item.selected').next().click(); previous = null; } if (event.keyCode == 75 && previous == 75) { $('.feed_item.selected').prev().click(); previous = null; } else { previous = event.keyCode; } } }; $(document).on('keydown', arrowKey); |
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
var count = 0 | |
$(document.body).keypress(function(event) { | |
if (event.which == 119) { | |
console.log("count =", count); | |
count++ | |
if (count % 2 == 0) { | |
$(".pug").remove(); | |
return; | |
} | |
prev = 119; |
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
javascript:!function(e){e.save=function(o,n){o||e.error("Console.save: No data"),n||(n="console.json"),"object"==typeof o&&(o=JSON.stringify(o,void 0,4));var t=new Blob([o],{type:"text/json"}),a=document.createEvent("MouseEvents"),c=document.createElement("a");c.download=n,c.href=window.URL.createObjectURL(t),c.dataset.downloadurl=["text/json",c.download,c.href].join(":"),a.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(a)}}(console),console.save(localStorage.state,"OneTabBackup.json"); | |
// Unminified version below: | |
(function(console) { | |
console.save = function(data, filename) { | |
if (!data) { | |
console.error('Console.save: No data'); | |
} | |
if (!filename) { |
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 | |
set -x | |
SOLN="solution.ipynb" | |
default() { | |
nbdiff-web ${SOLN} "$1"; | |
} | |
init() { |
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
while true; do for filename in $(find .); do echo "Permanently deleting $filename..."; done done |
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
# originally caused by issues installing rgdal and pgirmess | |
# i.e. "configuration failed for package 'rgdal'" | |
# Install the macOS toolchain for versions of R starting at 3.5.z. | |
# 1) Delete all references to clang 4 | |
sudo rm -rf /usr/local/clang4 | |
sudo rm -rf /usr/local/gfortran |
OlderNewer