Skip to content

Instantly share code, notes, and snippets.

@hiiamyes
hiiamyes / f2e-interview-question.md
Last active June 17, 2019 04:58 — forked from duncan60/F2E interview question
F2E interview question

CSS

  1. What is CSS BEM?

Haven't used BEM before, but as I know, it's a class name naming convension, for better managing css code.

  1. What is the difference between em and rem units?
  • em: Representing relative font-size, relative to parent element.
  • rem: root em, representing relative font-size, but only relative to root element (``).
@hiiamyes
hiiamyes / sql-tdd.markdown
Created September 28, 2017 02:36 — forked from abrkn/sql-tdd.markdown
Migrations and testing for PostgreSQL using node.js and Travis-CI

Migrations and testing for PostgreSQL using node.js and Travis-CI

We're looking to add a column to the table user called admin (boolean) in an existing database.

Project layout

migrations
@hiiamyes
hiiamyes / package.json
Created July 12, 2017 16:03 — forked from tpai/package.json
A web crawler sample based on nightwatch.
{
"name": "nightwatch_webcrawler",
"description": "A web crawler sample based on nightwatch.",
"version": "0.0.1",
"author": {
"name": "tonypai",
"email": "[email protected]"
},
"homepage": "http://github.com/tpai",
"dependencies": {
@hiiamyes
hiiamyes / Dockerfile
Created July 12, 2017 15:33 — forked from kenfehling/Dockerfile
Docker: Ubuntu 16.04 with Node 6.10.2, Selenium Standalone, Chrome Headless
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
apt-transport-https \
openjdk-8-jre-headless \
curl \
xz-utils \
unzip \
bzip2 \
@hiiamyes
hiiamyes / atom-cheat-sheet.md
Created April 2, 2017 05:01 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key