I usually find myself in need of quick copying a single file content in a GitHub repo, for example, I have this URL

I could quickly copy this file content by the hotkey ctrl+c, look at this demo for better visualization

You can add the customed code as follows:

Today I encountered a weird bug, which I later found out relating to ASCII characters.

The story is, when I compare 2 exact same string , the result is always false, but by naked eyes, there are no difference between them @@

Accidentally, I copied and paste those string to the browser console and found out they contain weird red character, so that’s the reason why the 2-string-compare function returns false

Strings displayed in VScode:

What is your favorite?

Jelly Tran

jelly, web developer, based in Saigon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store