Skip to content

Instantly share code, notes, and snippets.

View gkucmierz's full-sized avatar
💻

Grzegorz Kućmierz gkucmierz

💻
View GitHub Profile
@gkucmierz
gkucmierz / List of over 1000 Polish names
Created November 29, 2022 07:51 — forked from hywak/List of over 1000 Polish names
php array of Polish names
$names = array('Apollona',
'Apollina',
'Apolonia',
'Arabella',
'Ariadna',
'Arleta',
'Arnolda',
'Astryda',
'Atena',
'Augusta',
@gkucmierz
gkucmierz / macbook_setup.md
Last active September 25, 2020 09:56 — forked from hrishimittal/macbook_setup.md
Setting up a new MacBook for Ruby on Rails web development
  1. Install Google Chrome
  2. Install Homebrew - http://brew.sh/
  3. Install GnuPG - brew install gnupg2
  4. Generate SSH key - ssh-keygen -t rsa -b 4096 -C "[email protected]"
  5. Install node, npm, n
  6. Git - brew install git
  7. Add SSH public key to Github, Bitbucket.
  8. Restore pgp key https://dev.to/gkucmierz/how-to-make-my-git-contributions-verified-2e76
  9. To delete words with alt+backspace in Terminal, go to Preferences > (your profile) > Keyboard > Use option as meta key.
  10. Sublime Text shortcut: sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
@gkucmierz
gkucmierz / nth-permutation.js
Created August 20, 2017 16:17 — forked from bcherny/nth-permutation.js
get nth permutation of a string
// (as: Array[Array[A]]) => Array[A]
function flatten (as) {
return as.reduce((a, b) => a.concat(b), [])
}
// (as: Array[A], a: A) => Array[A]
function without (as, a) {
const bs = as.slice(0)
bs.splice(as.indexOf(a), 1)
return bs