Skip to content

Instantly share code, notes, and snippets.

Watching my hand

Leszek Pietrzak magicznyleszek

Watching my hand
View GitHub Profile
View szyfruj.js
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 ->
View jsonview-duotone-dark-sea-theme.css
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 Apr 5, 2016 — 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 Mar 11, 2016
JavaScript poetry
View js.txt
> new Date(Infinity)
< Invalid Date
magicznyleszek /
Last active Mar 18, 2016
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();

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.