Lucas Mendelowski
Menu
Home
Ember.js
Adding Bulma to Ember.js application
Attaching custom behavior to Ember changesets
Dynamic layouts in Ember.js
Handling DOM events with Ember
Prettifying Ember.js codebase
Using libraries from NPM Ember
Elixir
Adding custom arguments to Phoenix controller's actions
Code points to binaries in Elixir
Customize params in Phoenix links
Destructuring lists with various number of elements in Elixir
Ecto cheatsheet 101
Exit GenServer registered with name
Update head content from Phoenix layout
Git
Fork a subdirectory of a git repo
Locating code changes in git repo
Remove merged branches from git remote
Tig - cheat sheet
Undoing a Git rebase
Go
Array vs Slice in Go
Declaring flags with iota in Go
Generic result type in Go2
Pointer vs Value receiver on Go interface
Run gofmt on all project files
Nginx
Nginx - developer cheat sheet
Design patterns
Template pattern
PostgreSQL
Aggregate functions over partition in PostgreSQL
Dates overlapping with PostgreSQL
Finding most recent children for a record in PostgreSQL
Group by JSONB array in PostgreSQL
Limit with ties in PostgreSQL
Moving data from database column to jsonb field
Natural join in SQL
Pivot functions in PostgreSQL
Prepared statements in PostgreSQL
Recursive SQL queries with PostgreSQL
ROLLUP and CUBE with PostgreSQL
Running multiple PostgreSQL versions on MacOS
Text search with PostgreSQL
Update primary key with foreign constraints
Upsert in PostgreSQL
React
React children props with TypeScript
Refs in React
Removing event from fullcalendar with React by dragging out
Ruby
Accessing database configuration with Rails
Accessing method name and its arguments at runtime in Ruby
Array.wrap vs Kernel#array
Authentication for private Ruby gems
Benchmarking Ruby code
Calling Ruby method from specific ancestors
Conditional joins with Hanami
Deprecating methods with ActiveSupport
Email previews with Rails
Enumerable#tally in Ruby 2.7
HSTS with Rails
Importing images with Webpacker
Installing mysql2 gem without MySQL on MacOS
Installing pg_gem with Bundler on Mac M1
Instrumenting block of code with ActiveSupport::Notifications
Lesser known Rails 7 features
Method aliasing with Ruby
Module prepend and alias method in Ruby
Nested transactions with Rails
New methods introduced in Ruby 2.7
New way for arguments forwarding in Ruby 2.7
Order of model associations in Rails
Override new method for creating subclasses in Ruby
Overriding model name in Rails
Padding numbers with zeros in Ruby
Pattern matching with Ruby
Preloading subset of association with Hanami
Rails compatible model with rom-rb
Rails database migrations cheat-sheet
Rails query cache
Redirect back with Rails
Reusing Rails scopes in the OR operator
Running tests with Minitest
self vs extend self vs module_function
Simple HTTP server with Ruby
Super and dynamically created methods in Ruby
Turning string into predicate in Ruby
Using auto-loaded constants in Rails initializers
Using OR operator with Hanami repositories
Using PostgreSQL enums with Ruby on Rails
Using PostgreSQL hstore with Ruby on Rails
Unix
Change screenshots path for Gnome
Create sudo user on Linux
Current directory of aliased script in bash
Grep files for content
Installing Epson L3060 scanner on Linux
Running commands concurrently with bash
Sleep screen from terminal on Linux
UFW setup
VIM
Search and navigation cheat sheet for VIM
Spell checking in VIM
:wq vs :x in VIM
Web
CORS, CSRF and WebSockets
Search
GitHub
Twitter
Unix
Table of contents
Change screenshots path for Gnome
Create sudo user on Linux
Current directory of aliased script in bash
Grep files for content
Installing Epson L3060 scanner on Linux
Running commands concurrently with bash
Sleep screen from terminal on Linux
UFW setup