Skip to content

Instantly share code, notes, and snippets.

@jdeblese
jdeblese / fix_google_search.js
Last active January 16, 2020 17:34
This fixes Google's counterproductive changes to the search results page by removing the favicons and nav and adding the actual URL back in. Also reduces whitespace.
// ==UserScript==
// @name Remove favicons from and restore URLs to google search
// @version 2
// @grant none
// @match https://www.google.com/search*
// ==/UserScript==
// Hide favicons and nav
['TbwUpd', 'B6fmyf'].map(function(c){Array.from(document.getElementsByClassName(c)).map(function(e){e.style.display='none';});});
@jdeblese
jdeblese / tamperquora.js
Last active May 14, 2018 00:03
Remove ads, posts, blogs, and other annoyances from Quora feed
// ==UserScript==
// @name Clean Quora
// @namespace http://www.thescrapyard.org/
// @version 0.2
// @description Remove blog posts from Quora feed
// @author You
// @match https://www.quora.com/
// @grant none
// ==/UserScript==
@jdeblese
jdeblese / tampergooglefinance.js
Last active March 21, 2018 14:01
Improve the layout of the new (2018) Google finance page, by removing redundant information and extraneous whitespace
// ==UserScript==
// @name Fix Google Finance
// @namespace http://www.thescrapyard.org
// @version 0.1
// @description Clean up the new Google finance page
// @author Jan-willem De Bleser
// @match https://www.google.com/search*
// @grant none
// ==/UserScript==
@jdeblese
jdeblese / jellyfishbrain.ino
Created May 25, 2015 16:22
Tinymote code to run a color wheel on a neopixel ring based on accelerometer readings
#include <Adafruit_NeoPixel.h>
#include <TinyWireM.h>
#include <USI_TWI_Master.h>
#define LEDPIN 3
#define LEDCOUNT 12
#define DEV_ADDR 0x4C // MMA7660FC 7-bit address
/* ATtiny85
* ATtiny Pin 1 = (RESET) N/U ATtiny Pin 8 = VCC (2.7-5.5V)
@jdeblese
jdeblese / gpxsmooth.py
Created September 11, 2014 20:52
Path smoothing script for GPX files
import math
import numpy
import sys, os
from lxml import etree
Re = 6371000 # Earth radius in meters
# Extract the latitute and longitude as a tuple in radians from a <trkpt> element
def extract(trkpt) :
@jdeblese
jdeblese / tccs.pl
Last active December 31, 2017 10:27
Modified version of tccs (http://tccs.sourceforge.net/) to add support for hfsc classes
#!/usr/bin/perl -w
# copyright 2005-2008 Tomasz Pala <gotar@pld-linux.org>
# Contributions by Jan-willem De Bleser, 2013
# license: GPL
# usage:
# watch -d -n1 'tc -s c ls dev imq1 | tccs -f 10 2>/dev/null'
# tccs.rc file format: