Git commands I forget
Listed below are git commands that I forget.
Reset a single file to a specific branch
git checkout <branch> <file>
# for example
git checkout origin/master package.json
{"lastUpload":"2019-06-20T18:32:46.864Z","extensionVersion":"v3.2.9"} |
Listed below are git commands that I forget.
git checkout <branch> <file>
# for example
git checkout origin/master package.json
This is a test for the look of bold list headers in markdown.
The goal of this gist is to examine using <header>
tags or <strong>
tags.
<h4>
tag.code
Run an offline verification of existing cache contents
npm cache verify
Run cache clear for saving disk space purpose
npm cache clean --force
/* | |
ES5/6 Observer 👀 | |
--- | |
- Like a promise (sort of) but will work in older browsers | |
- With Babel, this will transpile to something very similar to want is written | |
- Note the error | |
- both callback, err will return empty strings by default | |
- bool is false by default | |
*/ | |
const observer = (bool = false, callback = () => '', iterator = 10, maxTime = 300, err = () => '') => { |
⌘
is the Command (cmd)() key⌃
is the Control key⌥
is the Option (alt) key⇧
is the Shift key⇪
is the Caps Lock keyfn
is the Function key<!-- android --> | |
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png"> | |
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png"> | |
<!-- apple --> | |
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> | |
<!-- favicon --> | |
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | |
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | |
<!-- manifest --> | |
<link rel="manifest" href="/manifest.json"> |
/* usual suspects 👥 */ | |
--blue: blue; /* yep, it's just the truth */ | |
--redpink: #FB2743; /* I saw it on ASOS. I like what they're doing with blue. */ | |
--floralwhite: #fffcf3 #fff floralwhite hsl(45,100,97)rgb(255,252,243); /* I saw it on Cosma Schema. */ | |
/* off the beaten path, but weird and refreshing 👨🎨 */ | |
--lightpurple: #E2D7FE; | |
--cartoonflesh: #FFAEA2; | |
--deeputramarine: #152783; |
switch (inputFrequency) { | |
case 1: | |
date = this.nextBillDateIsWithinOneMonth(nextBillDate) ? | |
moment(nextBillDate) : moment(nextBillDate).subtract(1, 'month') | |
break | |
case > initialFrequency: | |
newFrequencyDelta = (inputFrequency - initialFrequency) | |
date = moment(nextBillDate).add(newFrequencyDelta, 'month') | |
break | |
default: |