Skip to content

Instantly share code, notes, and snippets.

@JeOam
JeOam / viewport.md
Last active April 29, 2020 02:53
Difference between visual viewport and layout viewport: https://www.cyanhall.com/posts/notes/2.visual-vs-layout-viewport/
We couldn’t find that file to show.

rem(font size of the root element)是指相对于根元素的字体大小的单位。简单的说它就是一个相对单位。看到rem大家一定会想起em单位,em(font size of the element)是指相对于父元素的字体大小的单位。它们之间其实很相似,只不过一个计算的规则是依赖根元素一个是依赖父元素计算。

via click

@JeOam
JeOam / prototype.md
Last active June 7, 2017 07:31
__proto__ VS. prototype

__proto__ is the actual object that is used in the lookup chain to resolve methods, etc. prototype is the object that is used to build __proto__ when you create an object with new.

function Point(x, y) {
    this.x = x;
    this.y = y;
}

var myPoint = new Point();
@JeOam
JeOam / Nuxt.md
Last active March 24, 2017 05:44
部署 Nuxt.js 到 Ubuntu 14.04
  1. 安装 Node.js
sudo apt-get update
# For the most recent LTS (the 6.x branch)
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -  
sudo apt-get install nodejs
@JeOam
JeOam / MooseFS.md
Last active February 24, 2017 07:49
MooseFS Notes
@JeOam
JeOam / Markdown.md
Created February 24, 2017 06:40
Markdown to PDF via Pandoc/LaTex
We couldn’t find that file to show.
@JeOam
JeOam / localtunnel.md
Created December 27, 2016 07:11
localtunnel notes

Install Latest Nodejs & Npm on Ubuntu 16.04 & 14.04

@JeOam
JeOam / Math.md
Last active October 14, 2016 00:53
Math Notes
We couldn’t find that file to show.
@JeOam
JeOam / PostgreSQL.md
Last active September 24, 2016 03:57
PostgreSQL Note
@JeOam
JeOam / Go.md
Created September 21, 2016 02:21
Go Notes Navigation