Google Code Prettify In My Server

I summarized how to use Google Code Prettify in own server, not using CDN. Step1 : Download souce code from github Clone repository or Download zip from the folloing repository. https://github.com/googlearchive/code-prettify Step2 : Choice js files "prettify.js" in "src" folder...

How to center image with native CSS and Bootstrap

Centering image by native CSS Because a image tag is inline element, you need to change display property to "block" and set margin "auto" to center the image by native CSS. CSS .sample { display: block; margin-left: auto; margin-right: auto;...

“1_000_000 === 1000000” becomes TRUE – JavaScript

On recent web browsers, "1_000_000 === 1000000" becomes TRUE. That is because it is a "Numeric Separator" specification that allows underscores in numeric value. (https://github.com/tc39/proposal-numeric-separator) If you try to write value like 1 billion, you can improve the readability of...