This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Colors reference | |
| // You can use the following as so: | |
| // console.log(colorCode, data); | |
| // console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`); | |
| // | |
| // ... and so on. | |
| export const reset = "\x1b[0m" | |
| export const bright = "\x1b[1m" | |
| export const dim = "\x1b[2m" |
Source : https://github.com/shiena/ansicolor/blob/master/README.md
Ansicolor library provides color console in Windows as ANSICON for Golang.
In your command-line run the following commands:
brew doctorbrew update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| // set up some routes | |
| switch(req.url) { | |
| case '/': | |
| console.log("[501] " + req.method + " to " + req.url); | |
| res.writeHead(501, "Not implemented", {'Content-Type': 'text/html'}); | |
| res.end('<html><head><title>501 - Not implemented</title></head><body><h1>Not implemented!</h1></body></html>'); | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTML | |
| - Semantic HTML | |
| - Event delegation | |
| - Accessibility / ARIA | |
| CSS | |
| - Specificity | |
| - Pseudo-elements | |
| - Pseudo-selectors | |
| - Combinators |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |
I hereby claim:
- I am raghav4 on github.
- I am raghavsharma (https://keybase.io/raghavsharma) on keybase.
- I have a public key whose fingerprint is FF40 B945 AE93 F089 7CB2 224D 08BB B638 8224 5BF0
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function doSomething(random) { | |
| var firstLike = document.querySelector( | |
| 'section.ltpMr.Slqrh > span.fr66n > button > div > span > svg[aria-label="Like"]' | |
| ); | |
| if (firstLike) { | |
| firstLike.scrollIntoView({ | |
| behavior: "smooth", | |
| block: "center", | |
| inline: "nearest", | |
| }); |
OlderNewer