Skip to content

Instantly share code, notes, and snippets.

Avatar
🤦‍♂️
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',
Ę: 'Ć',
View kobo-new-gallery.md
View init.coffee
# 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 my-dev-setup.md
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
magicznyleszek / LC_COLORS.md
Created Apr 5, 2016 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS
View LC_COLORS.md

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

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
magicznyleszek / js.txt
Created Mar 11, 2016
JavaScript poetry
View js.txt
> new Date(Infinity)
< Invalid Date
@magicznyleszek
magicznyleszek / debugging-angularjs-from-console.md
Last active Mar 18, 2016
Debugging AngularJS from console
View debugging-angularjs-from-console.md

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();
View illustrator-tips-and-tricks.md

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.

Steps: