Skip to content

Instantly share code, notes, and snippets.

View flekschas's full-sized avatar
👋
Hi

Fritz Lekschas flekschas

👋
Hi
View GitHub Profile
@ihincks
ihincks / lighten_color.py
Last active November 8, 2024 05:06
Function to lighten any color in matplotlib
def lighten_color(color, amount=0.5):
"""
Lightens the given color by multiplying (1-luminosity) by the given amount.
Input can be matplotlib color string, hex string, or RGB tuple.
Examples:
>> lighten_color('g', 0.3)
>> lighten_color('#F034A3', 0.6)
>> lighten_color((.3,.55,.1), 0.5)
"""
@ObserverOfTime
ObserverOfTime / css-inject.js
Last active March 3, 2024 04:46 — forked from 1j01/README.md
GitHub Desktop Dark Theme - NO LONGER MAINTAINED
/**
* To apply the theme:
* 1) Open dev tools with CTRL + SHIFT + I
* 2) Go to the console
* 3) Paste the following code
* Note: You will have to do this again whenever Github Desktop updates
*/
const fs = require('fs');
const path = require('path');
@jcrist
jcrist / bench.py
Last active January 28, 2024 11:59
Vaex String benchmarks, updated with dask fixes
import vaex
import numpy as np
import dask.dataframe as dd
import dask
import dask.distributed
import json
import os
import time
import argparse
import multiprocessing
@swyxio
swyxio / readme.md
Last active January 16, 2022 10:36
svelte society day talks and resources -