Skip to content

Instantly share code, notes, and snippets.

View tvanantwerp's full-sized avatar
🖖
Live long and prosper.

Tom VanAntwerp tvanantwerp

🖖
Live long and prosper.
View GitHub Profile
@tvanantwerp
tvanantwerp / filters.txt
Last active October 22, 2023 13:05
uBlock Origin costmetic filters
! 2021-11-06 https://twitter.com
twitter.com##path[d="M18.265 3.314c-3.45-3.45-9.07-3.45-12.52 0-3.45 3.44-3.45 9.06 0 12.51 1.5 1.49 3.43 2.38 5.51 2.56v4.14c0 .31.2.6.5.7.08.03.17.05.25.05.22 0 .44-.1.59-.29l6.49-8.11c2.63-3.49 2.27-8.47-.82-11.56zm-10.56 7.87c0-.41.33-.75.75-.75h4.05c.41 0 .75.34.75.75s-.34.75-.75.75h-4.05c-.42 0-.75-.34-.75-.75zm8.6-3.24c0 .42-.34.75-.75.75h-7.1c-.42 0-.75-.33-.75-.75 0-.41.33-.75.75-.75h7.1c.41 0 .75.34.75.75z"]:upward(15)
twitter.com##span:has-text(/Expand your timeline with Topics/):upward(5)
twitter.com##a[href="/i/topics/picker/home"]:upward(2)
twitter.com##aside[aria-label="Who to follow"]:upward(1)
twitter.com##span:has-text(/Who to follow/):upward(5)
twitter.com##aside[aria-label="Relevant people"]:upward(1)
twitter.com##span:has-text(/^Topics to follow/):upward(4)
twitter.com##span:has-text(/^Push notifications/):upward(5)
twitter.com##span:has-text(/^More Topics/):upward(3)
@tvanantwerp
tvanantwerp / emoji-favicon.html
Last active April 21, 2021 20:26
Use Emoji as Favicon
<!-- via Wes Bos here: https://twitter.com/wesbos/status/1384965228413210631 -->
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><text x='0' y='14'></text></svg>" />
@tvanantwerp
tvanantwerp / getUdemyCourseInfo.js
Created November 28, 2020 17:13
Get name and instructor of course listings on Udemy courses page
// for use in console here: https://www.udemy.com/home/my-courses/learning/
// last used successfully on 11/28/2020
let courseObjs = Array.from(document.querySelectorAll('a.card--learning__details'))
let theCourses = [];
courseObjs.forEach(obj => theCourses.push({
title: obj.querySelector('strong.details__name').textContent,
author: obj.querySelector('div.details__instructor').textContent
})
)
# Powerlevel9k config
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_SHORTEN_STRATEGY='truncate_from_right'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=''
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=''
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR=''
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR=''
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%F{blue}\u256D\uf07c %F{white}'

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@tvanantwerp
tvanantwerp / .block
Created February 14, 2017 23:57
D3 Divergent Scale Test
license: mit
@tvanantwerp
tvanantwerp / bottom-aligned-footer-foundation-5.md
Last active May 4, 2017 13:54
Bottom-aligned footer for Foundation 5
@tvanantwerp
tvanantwerp / index.html
Last active August 29, 2015 14:03
Median US Property Tax Collections by County
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>US County Map of Median Property Tax Collections</title>
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
@tvanantwerp
tvanantwerp / custom-social-media-buttons.md
Last active September 20, 2022 10:54
Custom Social Media Sharing Buttons

Custom Sharing Buttons for Social Media

These files contain a basic template for creating customized social media share buttons on a web page. The CSS styles are arbitrary, and easily changes. The HTML and JavaScript works as follows.

HTML Structure

The buttons are simply a elements with no href value. Font Awesome is used to add icons. The IDs are used by the JavaScript to modify these a elements.

JavaScript Structure

This file uses jQuery.

Three functions are defined to find share counts for Facebook, Twitter and LinkedIn. Google+ is currently excluded.

The web page address is grabbed by window.location.href and encoded. The page title is pulled from whatever HTML element has id="title". The share count functions are called, and the results appended to the inner text of the share buttons. The the href of each button is changed to the appropriate URL for sharing the webpage.