Skip to content

Instantly share code, notes, and snippets.

View grantwinney's full-sized avatar

Grant grantwinney

View GitHub Profile
var _ac = ["aj_indx_tact", "bind", "driver", "doe_cnt", "mousedown", "Batang", "clientHeight", "emit", "indexOf", "enReadDocUrl", "Palatino", "fpValstr", "onpointerup", "\"", "dm_en", "/get_params", "rVal", "return/*@cc_on!@*/!1", "-1,2,-94,-70,", "http://", "storage", "", "onkeypress", "navigator", "mn_update_challenge_details", "keydown", "spawn", "bm-telemetry", "y1", "-1,2,-94,-121,", "mediaDevices", "fillText", "mn_ct", "requestWakeLock", "Noto", "=", "//", "rotationRate", "call", "mn_mc_lmt", "toLowerCase", "uar", "Palatino-Bold", "arc", "-1,2,-94,-120,", "td", "unk", "z", "devicemotion", "gf", "push", ":", "TI-Nspire", "Edge PDF Viewer", "dme_cnt_lmt", "prototype", "hpu", "hku", "hkd", "mn_ts", "mn_tout", "Version/4.0", "non:", "sensor_data", "display", "getFloatVal", "sort", "ambient-light-sensor", "number", "~", "WebKit-integrierte PDF", "RTCPeerConnection", "0a46G5m17Vrp4o4c", "now", "value", "iPad;", "map", "GET", "mme_cnt", "msHidden", "vc", "||", "-1,2,-94,-124,", "-1", "x12:", "hf", "pstate", "c
@grantwinney
grantwinney / duolingo-focused.css
Last active February 26, 2022 05:16
Hide all the gamification and other elements,o ther than
[data-test="skill-tree"] > div:nth-child(3) > div:nth-child(1), /* failed levels and get plus reminders */
[data-test="skill-tree"] > div:nth-child(3) > div:nth-child(3), /* practice button */
#root > div > div:nth-child(4) > div > div > div:nth-child(1), /* all gamification elements */
#overlays, /* random product offers */
/* Top Navigation */
#root > div > div:nth-child(3), /* entire navigation bar */
[aria-current="page"], /* nav - learn button */
[data-test="stories-nav"], /* nav - stories */
[data-test="discussion-nav"], /* nav - discussion button */
var _cf = _cf || [],
bmak = bmak || {
ver: 1.54,
ke_cnt_lmt: 150,
mme_cnt_lmt: 100,
mduce_cnt_lmt: 75,
pme_cnt_lmt: 25,
pduce_cnt_lmt: 25,
tme_cnt_lmt: 25,
tduce_cnt_lmt: 25,
var _ac=["\x61\x6a\x5f\x69\x6e\x64\x78\x5f\x74\x61\x63\x74","\x62\x69\x6e\x64","\x64\x72\x69\x76\x65\x72","\x64\x6f\x65\x5f\x63\x6e\x74","\x6d\x6f\x75\x73\x65\x64\x6f\x77\x6e","\x42\x61\x74\x61\x6e\x67","\x63\x6c\x69\x65\x6e\x74\x48\x65\x69\x67\x68\x74","\x65\x6d\x69\x74","\x69\x6e\x64\x65\x78\x4f\x66","\x65\x6e\x52\x65\x61\x64\x44\x6f\x63\x55\x72\x6c","\x50\x61\x6c\x61\x74\x69\x6e\x6f","\x66\x70\x56\x61\x6c\x73\x74\x72","\x6f\x6e\x70\x6f\x69\x6e\x74\x65\x72\x75\x70","\x22","\x64\x6d\x5f\x65\x6e","\x2f\x67\x65\x74\x5f\x70\x61\x72\x61\x6d\x73","\x72\x56\x61\x6c","\x72\x65\x74\x75\x72\x6e\x2f\x2a\x40\x63\x63\x5f\x6f\x6e\x21\x40\x2a\x2f\x21\x31","\x2d\x31\x2c\x32\x2c\x2d\x39\x34\x2c\x2d\x37\x30\x2c","\x68\x74\x74\x70\x3a\x2f\x2f","\x73\x74\x6f\x72\x61\x67\x65","","\x6f\x6e\x6b\x65\x79\x70\x72\x65\x73\x73","\x6e\x61\x76\x69\x67\x61\x74\x6f\x72","\x6d\x6e\x5f\x75\x70\x64\x61\x74\x65\x5f\x63\x68\x61\x6c\x6c\x65\x6e\x67\x65\x5f\x64\x65\x74\x61\x69\x6c\x73","\x6b\x65\x79\x64\x6f\x77\x6e","\x73\x70\x61\x77\x6e","\x62\
@grantwinney
grantwinney / twitter-tamer.css
Created February 12, 2020 18:40
Hide elements of the Twitter UI
@-moz-document url-prefix("https://twitter.com") {
/* LEFT COLUMN NAVIGATION */
header[role="banner"], /* HIDE ENTIRE COLUMN */
[aria-label="Twitter"], /* logo */
[data-testid="AppTabBar_Home_Link"], /* home */
[data-testid="AppTabBar_Explore_Link"], /* explore */
[data-testid="AppTabBar_Notifications_Link"], /* notifications */
[data-testid="AppTabBar_DirectMessage_Link"], /* messages */
[aria-label="Bookmarks"], /* bookmarks */
[aria-label="Lists"], /* lists */
@grantwinney
grantwinney / se-simplified.json
Last active October 23, 2019 01:10
A Stylus template for hiding all the cruft on the StackExchange / StackOverflow network
[
{
"enabled": true,
"updateUrl": null,
"md5Url": null,
"url": null,
"originalMd5": null,
"installDate": 1571792931541,
"name": "SE Simplified",
"sections": [
@grantwinney
grantwinney / whatcomments1.cs
Created August 3, 2018 21:08
an example for a blog post - comments on what
public static void Main()
{
// get account details
var accountId = "1234";
var name = "Grant";
var balance = 100m;
var secretAnswer = "42";
// validate the user in secretive fashion
var answer = "";
@grantwinney
grantwinney / whatcomments2.cs
Created August 3, 2018 21:07
an example for a blog post - comments on what, revisited
public static void Main(string[] args)
{
var accountId = "1234";
ValidateUser(accountId);
var action = GetTransactionType(accountId);
var amount = GetTransactionAmount(accountId);
ShowTransactionAndBalance(accountId, action, amount);
@grantwinney
grantwinney / mentor.sh
Last active August 7, 2018 11:11
A script to make mentoring C# solutions on Exercism a little easier
#!/bin/bash
### check for proper usage
if [ $# -ne 1 ]; then
echo $0: usage: uuid_for_solution
exit 1
fi
cd ~
@grantwinney
grantwinney / url-updater.py
Last active June 20, 2018 17:12
Reads in a list of URLs (from a CSV file), writes any redirected URLs to a new CSV file, and prints out missing (404) URLs to the console
import csv
import urllib2
with open('urls.csv', 'rb') as f:
reader = csv.reader(f)
with open('urls-output.csv', 'w') as g:
writer = csv.writer(g, delimiter=',')
for row in reader:
url = row[0]
try: