TIL (Today I Learned)
"Study hard what interests you the most in the most undisciplined, irreverent, and original manner possible." --Richard Feynman
This is a collection of short articles about things I've learned. They are too short for my blog.
I stole this idea from jbranchaud/til, who shamelessly stole that idea from thoughtbot/til.
The spirit of this project grew into Hashrocket's Today I Learned.
Browsers
- Chrome Flags
- Open Every Site in a Chrome Bookmarks Folder With One Click
- Chrome SameSite Updates
- Date Input Tag
- Hide Bookmarks Bar in Chrome
- Link to Headers in GitHub READMEs
- Use Display None
CSS
- Apply a Conditional Border Without Moving Element
- Preserve Whitespace in CSS
- Semicolon Breaks Everything
General
Git
- Delete Remote Git Tags
- Force with Lease
- Git Log With Authors
- Git Log since
- Git Snapshot
- The Alpha Commit
- Undo a Git Mistake
Go
JavaScript
- Build URLs with Window Location
- Build a Sentence from a JavaScript Array
- Sorting Numbers with JavaScript's sort Function
Less
MacOs
Mobile
- App Store Delays
- Clear iOS Mobile Dependencies
- React Native Shake
- Scroll on XCode Simulator
- TestFlight downloads latest build
- Xcode Run Hotkey
React
Ripgrep
Ruby on Rails
- Bypass Basic Auth
- Change Column Null
- Classify and Constantize
- Find or Create By With Block
- Generate a Rails Secret Key
- Highlighted Routes Searching
- How Rails Action Name Works
- Modify Attribute on Set
- Multipurpose Environmental Variables
- Parameters Filtering
- Rails destroy
- Rails restore_attributes
- Redirect a Path
- Set Default URL Options
- Set a Default Scope
- Show Model and Grep with Pry-rails
- Validate with Proc
- fields_for exclude ID
Ruby
- Accessor Performance Gap
- Case Insensitive Matchers
- Edit in Pry
- Fetch Your Environmental Variables
- Find Stale Gems
- Hash Equality
- Ignore Rubocop Block Length Lint in RSpec
- Keyword Precedence
- Minmax
- Object ID
- Puts Multiple Lines
- Reset a Gem
- Ruby Regex Literal
- Ruby's Kernel::abort
- Show Proc Source Location
- Skid Keywords
- Steps Within Steps
- Succeed, Precede, and Surround in Haml
- Truthy Strings
- Upgrade Rubygems
- Variable Hoisting in Ruby
- group_by with default
SQL
- Cleanup Postgres Databases
- Default to Empty Array in Postgres
- History of the PostgreSQL Name
- Postgres Unlogged
- Prepare / Execute
- Psql Connect
- Query the Size of Postgres Array
SVG
Terminal
- Autojump and Open
- Command Line Subshell
- Ctags dotfiles
- Directional Commands
- Finding Getters
- Force ASDF Reshim
- MD5 File Signatures
- Override Autojump's Directory Rankings
- Printing with lpr
- Reverse a String
- Run Previous Command
- Save Size Change to iTerm Profile
- Screen Flashing in OSX
- Send Processes to the Background
- Standard Output to Clipboard Buffer
- Start Postgres.app from the Command Line
- Watch That Program
Testing
Tmux
TypeScript
URLs
Vim
- Call a Vimscript Method in Vim
- Change Inner Tag Block
- Close a File
- Count Links in a Markdown File
- Current Value of a Setting
- Delete Comments
- Delete a Line From Another Line
- Edit the Current File Always
- Explore Buffers with BufExplorer
- Find and Replace Across Files
- Get help with Pathogen
- Increment and Decrement Numbers
- Jump to N Percent of a File
- Jump to the First Non-Blank Character
- Man pages in Vim
- Override Vim's Filetype
- Select First Spell Suggestion
- Sort Alphabetically
- Vim Regex Word Boundaries
License
This project is released under the MIT License.