Skip to content

Instantly share code, notes, and snippets.

View magicznyleszek's full-sized avatar
Watching my hand

Leszek Pietrzak magicznyleszek

Watching my hand
View GitHub Profile
szyfruj = (string) => {
const pairs = {
A: 'Z',
Ą: 'Ź',
B: 'Ż',
C: 'A',
Ć: 'Ą',
D: 'B',
E: 'C',
Ę: 'Ć',
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
magicznyleszek /
Last active May 24, 2021 22:29
My dev setup
body {
white-space: pre;
font-family: monospace;
font-size: 14px;
line-height: 1.5;
background: hsl(212, 25%, 12%);
color: hsl(213, 18%, 66%);
margin: 1rem;
magicznyleszek /
Created April 5, 2016 13:10 — forked from thomd/

alternatively use:


The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black

magicznyleszek / js.txt
Created March 11, 2016 14:44
JavaScript poetry
> new Date(Infinity)
< Invalid Date
magicznyleszek /
Last active March 18, 2016 14:05
Debugging AngularJS from console

Debugging AngularJS from console

Note: In Chrome Console, instead of document.querySelector, you can use $0 - $4 to access the last 5 DOM elements selected in the inspector window.

Access Scopes

var fooCtrl = angular.element(document.querySelector('[ng-controller*="fooCtrl"]')).scope();
magicznyleszek /
Created July 17, 2015 07:15
Illustrator tips & tricks

Illustrator tips & tricks

Some smart moves to make up for missing functionalities.

Circle through two points

Result: circle of given radius that is going exacly through two anchor points.


magicznyleszek /
Last active March 4, 2022 20:57
RegEx Cheatsheet