Skip to content

Instantly share code, notes, and snippets.

View sparky-raccoon's full-sized avatar
👁️‍🗨️

Andrea Saez sparky-raccoon

👁️‍🗨️
  • Paris
View GitHub Profile
@sparky-raccoon
sparky-raccoon / grid.js
Created July 8, 2023 17:53
A simple grid computed with canvas-sketch.
const canvasSketch = require("canvas-sketch");
canvasSketch(
({ context, width, height }) => {
context.fillStyle = "white";
context.fillRect(0, 0, width, height);
const cell = 10;
const cols = Math.floor(width / cell);
const rows = Math.floor(height / cell);
@sparky-raccoon
sparky-raccoon / gh-unsubscribe.sh
Last active March 22, 2024 12:04
Unsubscribe and ignore automatically every repository of your organisation.
#!/usr/bin/env bash
# GH_TOKEN=
# GITHUB_TOKEN=$GH_TOKEN
# ORGANIZATION=
# LOG_FILE=
exec 3>&1 1>>${LOG_FILE} 2>&1
now=$(date)
@sparky-raccoon
sparky-raccoon / .zshrc
Last active May 8, 2023 15:23
.zshrc + Powerlevel10k + lazy-loaded nvm with zsh-nvm, git & frontend-search plugins + nano + python / canvas-sketch display aliases
# /!\ Update with `exec zsh` instead of `source ~/.zshrc`
#### Main configuration
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
@sparky-raccoon
sparky-raccoon / .gitignore
Last active May 8, 2023 15:21
.gitignore on macOS (global configuration)
# Run git config --global core.excludesfile ~/.gitignore
.DS_Store
.idea