Today I Learned

A CCSalesPro project TwitterFollow on Twitter

7 posts by danielkuckuck

Hash Rocket =>

I now understand => is Hash Rocket; yeah ruby!

Learn Enough Rails (7) training 4.3.3

I learned how to use regex in cli.

I was want to copy a specific list of files ranging from name01furthername.ext to name39furthername.ext (of multiple extensions). I found https://askubuntu.com/questions/327282/copying-multiple-specific-files-from-one-folder-to-another : cp name{01..39}*.ext desireddestination/folder/. worked perfectly!

How to make an alias on mac cli.

I worked with Dillon and Ben yesterday and in the process I saw Dillon type da return and saw the direnv allow process. I thought that is cool, I need to do that. So today I did a quick look and found at https://macosx-faq.com/how-to-make-alias-with-terminal/ how you can create your own alias.

alias da='direnv allow'

How to escape single quotes in bash.

rake devdata:load_production snapshot_production_db_args='-statement-analyses-query="select id
from statement_analyses
where parser_id = '"'"'elavon'"'"';"'`

To be recognized as:

bin/snapshot_production_db -statement-analyses-query="select id from statement_analyses where parser_id = 'elavon';"

How to escape single quotes within single quoted strings

Today I learned what a MonoRepo is!

https://monorepo.tools/

TILs can be helpful! git stash only unstaged

I was needing some help with stashing code that was not staged (while leaving the staged code) and found Hashrocket's TIL helpful:

Stashing Only Unstaged Changes

 git stash -k

Today I learned about setInterval() & setTimeout()

I was shown how to utilize these properly when refreshing a page.

 let reloadIntervalId
  onMount(async () => {
    await load()
    loadSessionStorageData()
    reloadIntervalId = window.setInterval( function() {
      load()
    }, 30000);
  })
  onDestroy(() => {
   clearInterval(reloadIntervalId)
  })