Skip to content

Instantly share code, notes, and snippets.

@djmitche
djmitche / @@INTRO.md
Last active September 22, 2025 05:47
My use of Taskwarrior

Getting Started

My Usage

I've been using this for almost ten years now, so here are some of the ways I have set it up to be most productive. See my taskrc below for implementation details.

In general, I've had the most success by keeping lists of tasks short and to the point, avoiding the anxiety of seeing 100 tasks and feeling like I'm going to drown.

@peeke
peeke / spatial-hashmap.js
Last active September 18, 2021 18:45
Query a grid by x and y coordinate, returning all data points that were added to those particular x and y coordinate.
const clamp = (value, min, max) => Math.min(Math.max(value, min), max)
class SpatialHashMap {
constructor(width, height) {
this.width = width;
this.height = height;
this.grid = new Array(width * height).fill(null).map(() => []);
}
@stephlocke
stephlocke / ethicaldatascience.md
Created September 20, 2018 16:08
Some links and resources around ethical data science

Ethical data science

Intro

Who I am

Purpose / Agenda

Problems caused

Facial recognition

Justice system

Access to finance

Ethical obligation

# arrayDataTypesCheck - check input array data types for every element
# Chuck Norris API
# Loop through nested objects
# Mixin - Object.assign
# Promises (in the dark), thank you Pat Benatar
# Reduce - Using reduce to filter
# Regex - Common
# Rest Operator
# Show more or less, pure JS
# Spread Operator (Okay, Okay, let's keep the juvenile humor down to a minimum).
@tunguskha
tunguskha / Gradient shadow in pure CSS.md
Last active October 12, 2024 17:02
Gradient shadow in pure CSS

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@argyleink
argyleink / easings.css
Created February 26, 2018 22:34
Handy CSS properties for easing functions
:root {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active October 10, 2025 03:48
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@chenhunghan
chenhunghan / Install CJK fonts to reMarkable Tablet.md
Last active September 27, 2025 17:35
How to install Noto Sans CJK fonts for reMarkable Tablet

reMarkable is a paper tablet by https://remarkable.com/.

The reMarkable tablet is the best e-paper in the market. However, it does not have built-in support for CJK (Chiniese, Korean and Japanese) users.

Luckily, this could be resolved by installing CJK fonts on the tablet.

  1. Go to Preference > Storage > Enable USB web interface (Beta).
  2. Connect reMarkable with your PC via a microUSB cable.
  3. SSH to the device as user "root" using the password find in Preference > About. e.g. ssh root@10.11.99.1
  4. Download "NotoSansCJK[you language]-Regular.otf" from *note, there is limited space on the device, so do not sue "Super OpenType/CFF Collection (Super OTC)", an language-specific OTC is ok.
@amandaw33
amandaw33 / com.adobe.Acrobat.Pro.plist
Last active December 4, 2024 17:19
Acrobat Pro DC plist to disable updating, cloud services etc - more info on keys: http://www.adobe.com/devnet-docs/acrobatetk/tools/PrefRef/Macintosh/Workflows.html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DC</key>
<dict>
<key>FeatureLockdown</key>
<dict>
<key>bUpdater</key>
<false/>
@crusy
crusy / uBlock filter rules (public)
Last active October 10, 2025 18:24
uBlock Filter
# Make Outlook's selected mail more visible:
outlook.office.com#$#div[aria-selected="true"] * { font-weight: bold !important; }
# Make stackoverflow less cluttered:
stackoverflow.com##div.s-sidebarwidget__yellow
stackoverflow.com###hot-network-questions
stackoverflow.com###feed-link
stackoverflow.com###newsletter-ad
stackoverflow.com#$#div.everyonelovesstackoverflow{ margin-bottom: 0 !important; }
stackoverflow.com##:xpath(//ol[li[div[text()='Teams']]])