Skip to content

Instantly share code, notes, and snippets.

View vecerek's full-sized avatar

Attila Večerek vecerek

View GitHub Profile
# SENDER

gpg --import recipient-pubkey.gpg # import key to your keyring

# gpg: key ______: public key "Your friend's name <your.friend@yourfriendsdomain.com>" imported
# gpg: Total number processed: 1
# gpg:               imported: 1

gpg --output myfile.txt.gpg --encrypt --recipient your.friend@yourfriendsdomain.com  myfile.txt #encrypt message

Keybase proof

I hereby claim:

To claim this, I am signing this object:

rollback: true
prepare:
- git diff-index --quiet HEAD --
- git checkout master
- git pull --rebase
- '[[ -f .nvmrc ]] && ./node_modules/.bin/check-node-version --node $(cat .nvmrc)'
- yarn install
test:
@vecerek
vecerek / Front-end developer's onboarding guide.md
Last active May 11, 2018 15:50
This guide does not assume any previous programming knowledge/experience.

How to become a front-end developer in 2018?

(Just an opinion of a simple guy who's not even a front-end developer himself)

  1. Learn to use a Unix (Linux/Mac) terminal.
    • I have some development experience on both Windows and Unix-based machines and as far as I can tell, it is much easier to start learning programming on a Unix-based OS such as Ubuntu or Mac OS. Installation of the necessary tools is much easier as there are also much more resources to be found on the web, making it easier to onboard for a non-expert user.
    • In the next step, I will assume a Unix-based OS usage. Sorry for all Windows lovers :(
    • Here's a course on learning to use the command line.
  2. Learn HTML5.
    • w3schools is always a nice to know resource.
  • Udemy for those who have
  • Memoization
    • Parametric memoization (using the special Hash constructor):
    Hash.new {|h, key| h[key] = some_calculated_value }
    class City < ActiveRecord::Base
      def self.top_cities(order_by)
        @top_cities ||= Hash.new do |h, key|

h[key] = where(top_city: true).order(key).to_a