Skip to content

Instantly share code, notes, and snippets.

View trent2's full-sized avatar

R. Spillner trent2

View GitHub Profile
@trent2
trent2 / GuessWho.ipynb
Last active March 13, 2020 18:18
Solution to "The Riddler" playing Guess Who
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@trent2
trent2 / haircut-riddler.ipynb
Last active March 1, 2020 17:15
"The Riddler" #haircuts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am trent2 on github.
  • I am trent2 (https://keybase.io/trent2) on keybase.
  • I have a public key ASDIKUxfTp5BQ_cpSbkK5rwDy_e2GGWPiP7WE7p_0OuOigo

To claim this, I am signing this object:

@trent2
trent2 / gist:1addcaf7a43b33847c8ff8cfa5f03eeb
Created June 12, 2017 18:26
Bookletmark: UnObfuscate spiegel online
javascript:document.getElementsByClassName("obfuscated-content")[0].setAttribute("class","");var%20b=document.getElementsByClassName("obfuscated"),c,d,e,f,g;%20for(f%20in%20b){d=b[f].innerHTML;c="";inElement=!1;openTag=-1;dontTranslate=closingTag=isATag=!1;for(e=0;e<d.length;++e){-1<openTag&&openTag++;g=d.charCodeAt(e);60==g&&(inElement=dontTranslate=!0,openTag=0);if(33<g&&!dontTranslate)switch(g){case%20180:c+=";";break;case%20178:c+="!";break;case%20177:c+="&";break;default:c+=String.fromCharCode(g-1)}else%20c+=d.charAt(e);1==openTag&&97==g&&(isATag=!0);1==openTag&&47==g&&(closingTag=!0);inElement&&62==g&&(dontTranslate=isATag&&!closingTag,inElement=closingTag=isATag=%20!1,openTag=-1)}b[f].innerHTML=c};
@trent2
trent2 / unob_spiegelplus.user.js
Last active February 22, 2022 06:47
Unobfuscate SPIEGEL plus articles with greasemonkey
// ==UserScript==
// @name unobfuscate spiegel plus
// @namespace obfuscate
// @include http://www.spiegel.de/*
// @version 1
// @grant none
// ==/UserScript==
if(document.getElementsByClassName('obfuscated-content')[0] != undefined) {
document.getElementsByClassName('obfuscated-content')[0].setAttribute("class", "");
var elems = document.getElementsByClassName('obfuscated'), t, or, c, i, cc;