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
@magicznyleszek
magicznyleszek / css-selectors.md
Last active March 29, 2024 01:12
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️

Element selectors

Element -- selects all h2 elements on the page

h2 {
@magicznyleszek
magicznyleszek / mac-commands.md
Last active November 30, 2015 08:02
Useful Mac Commands

Useful Mac Commands

Common stuff

Find all files in current directory by extension

find . -type f -name "*.extension"
@magicznyleszek
magicznyleszek / atom-keyboard-shortcuts.md
Last active September 21, 2015 13:53
Atom Keyboard Shortcuts

Atom Keyboard Shortcuts

General

shift + ⌘ + p -- toggle command palette

⌘ + / -- toggle line/selection comment

alt + shift + s -- show available snippets

@magicznyleszek
magicznyleszek / atom-snippets.cson
Last active August 29, 2015 14:21
Atom Snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting tab.
#-------------------------------------------------------------------------------
# CoffeScript
@magicznyleszek
magicznyleszek / regex.md
Last active March 4, 2022 20:57
RegEx Cheatsheet
@magicznyleszek
magicznyleszek / illustrator-tips-and-tricks.md
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.

Steps:

@magicznyleszek
magicznyleszek / debugging-angularjs-from-console.md
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
magicznyleszek / js.txt
Created March 11, 2016 14:44
JavaScript poetry
> new Date(Infinity)
< Invalid Date
@magicznyleszek
magicznyleszek / LC_COLORS.md
Created April 5, 2016 13:10 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

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

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;
}