Skip to content

Instantly share code, notes, and snippets.

View egze's full-sized avatar

Aleksandr Lossenko egze

View GitHub Profile
@egze
egze / yarn_checker.ex
Created June 1, 2021 05:34
Ensure Hex ans Npm have the same version
defmodule MyApp.YarnChecker do
use Credo.Check,
run_on_all: true,
category: :consistency,
base_priority: :high,
param_defaults: [
package_json: "assets/package.json",
yarn_lock: "assets/yarn.lock",
packages: ["phoenix", "phoenix_html", "phoenix_live_view"]
],
@egze
egze / snowjob.sh
Created December 15, 2023 11:24 — forked from sontek/snowjob.sh
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear