Skip to content

Instantly share code, notes, and snippets.

View tomcur's full-sized avatar

Tom Churchman tomcur

View GitHub Profile
@tomcur
tomcur / youtube-minimalism.js
Created November 13, 2020 07:12
This userscript removes YouTube's homepage and suggested videos.
// ==UserScript==
// @name Youtube minimalism
// @namespace https://churchman.nl/
// @match https://*.youtube.com/*
// @grant none
// ==/UserScript==
function del(selectors) {
selectors.forEach((selector) => {
const ele = document.querySelector(selector);
if (ele) {
@tomcur
tomcur / tabularHeatMap.m
Last active July 22, 2016 06:36
Matlab function to plot a matrix as a tabular heat map. Also see http://churchman.nl/2015/10/14/plotting-a-heat-map-table-in-matlab/
function h = tabularHeatMap(data, varargin)
%% tabularHeatMap
% Author: Thomas Churchman
% Date: 2015/10/14
%
% Plot a matrix as a tabular heat map.
%
% INPUTS
% data (required) - The matrix to plot as a tabular heat map
% OPTIONS (Optional) - Optional arguments as key-value pairs