Skip to content

Instantly share code, notes, and snippets.

View iegik's full-sized avatar
🏠
Working from home

Arturs Jansons iegik

🏠
Working from home
View GitHub Profile

quick, brown fox? jumped over! the lazy dog.

Quick, Brown Fox? Jumped Over! The Lazy Dog.

Quick, Brown Fox? Jumped Over! The Lazy Dog.

QUICK, BROWN FOX? JUMPED OVER! THE LAZY DOG.

эй, жлоб! где туз? прячь юных съёмщиц в шкаф.

Elementary

https://elementary.io/

Show desktop windows

phanteon-desktop does not have icons on desktop, instead you can install nautilus

sudo apt install --no-install-recommends nautilus dconf-tools

# R0lGOD image/gif
# /9j/4 image/jpeg
# iVBORw image/png
# UklGR image/webp
# JVBERi0xLj application/pdf
# PCFET0NUWVBFI text/html
dataURI () { base64 "$@" | sed 's/^\(R0lGOD\)/data:image\/gif;base64,\1/g;s/^\(iVBORw\)/data:image\/png;base64,\1/g;s/^\(\/9j\/4\)/data:image\/jpeg;base64,\1/g;s/^\(UklGR\)/data:image\/webp;base64,\1/g;'; }
@iegik
iegik / translate.sh
Last active June 1, 2018 13:05
``` Usage: translate.sh [OPTION]... [FILE]... --template use template [ mustashe | csharp ] -o|--output Output path for {prefix}.json files -p|--prefix Replace pr
#!/bin/bash
declare -a List=(en it de es pt fr et fi)
USAGE=$(cat <<-EOM
Usage: ${0##*/} [OPTION]... [FILE]...
EOM
)
INFO=$(cat <<-EOM
Example:
@iegik
iegik / README.md
Last active November 6, 2023 09:34
НОМЕНКЛАТУ́РА

НОМЕНКЛАТУ́РА

НОМЕНКЛАТУ́РА - Совокупность или перечень употребляемых в какой-н. специальности названий, терминов.

СИГНАТУРА функции — характеристическая часть определения функции в программировании

PROGRESSIVE ENHANCEMENT - поддерживать каждую мелочь

GRACEFUL DEGRADATION - отказоустойчивость, поддерживать то, что поддерживается (css без префиксов, без теней в IE)

@iegik
iegik / Makefile
Last active February 4, 2025 13:11
## Actions
# --ignore-platform - to avoid compilation binary files
# --no-bin-links - to not create executables in node_modules/.bin/
YARN_ARGS=\
--link-duplicates \
--no-bin-links \
--ignore-optional \
--ignore-scripts \
--disable-pnp \
@iegik
iegik / code.html
Last active December 29, 2017 09:43
No code - no bugs

Design Patterns in JavaScript

Strategy

Observer

negate

const negate = fn => (...args) => !fn(...args);

claim

const claim = fn => (...args) => fn(...args);
@iegik
iegik / MAC.md
Last active January 30, 2021 21:29

  • === Option
  • === Command or CMD
  • === Escape or ESC
  • === Shift
  • === Caps Lock or CpsLck

+ ` - Switch between same app windows