If you have an old PC laying around, you could setup a simple and affordable NAS (Network Attached Storage) to hold your precious data with functionality equivalent to expensive standalone NAS devices. You will need 2 similar sized hard disks to store the data in a mirror, and old PC and some time to follow […]
npm list -g –depth 0 You may have installed CLI tools globally in the past. This command (listed above) will show what you have installed. The new trend is to install cli locally so it is always up to date with each project.
Merging multiple commits into one is called “squashing” in Git. If you have a number of commits you recently made but wish to squash them into one clean commit, use this command: If done from the command prompt, you will be brought into VI editor to pick which commits you want. Change the word “pick” […]
.foreach Applies a function to each item in the array .map Applies a function to each item in the array -and then creates a new array with the results of applying the function to each value .filter Same as .map but this is a test function, if it passed, it goes into the ‘collection’ or […]
Ive had a hard time adjusting to arrow functions for some reason. If you remember input => output, that should make it click for you. Just remember: Why dont you check out .map .filter and .foreach next?
Bad Blocking Script Good Async Inline Script The bad example above blocks DOM construction. The good example above doesn’t block the rest of the site’s content from downloading BUT executes only after CSSOM construction and thus.. only starts loading our widget scripts very late. Better Async Script Further Reading www.igvita.com/2014/05/20/script-injected-async-scripts-considered-harmful/ stackoverflow.com/questions/6963779/whats-the-name-of-google-analytics-async-design-pattern-and-where-is-it-used
Angular apps are organized into modules. You will need to have modules load other modules. Here is the simple setup for a MasterModule to load one or more SubModules.
Work in progress. For now its just a collection of notes until I can assemble this into a tutorial. -use to react to eventual result of async action -use .then method -three states: succcess, rejected, pending
If you are hosting your WordPress blog on a cheap shared hosting plan like GoDaddy or Hostgator, then you should setup these basic optimisations to really get the fastest speed you can. This is important for google SEO ranking, as site loading times are considered important ranking factors. 1. How to pick a good shared […]