Skip to content

Instantly share code, notes, and snippets.

View remarkablemark's full-sized avatar

Mark remarkablemark

View GitHub Profile
@remarkablemark
remarkablemark / learning-resources.md
Last active July 11, 2016 20:12
Learning resources pertaining to computer science and other topics.
@remarkablemark
remarkablemark / .eslintrc
Last active August 24, 2016 14:59
ESLint configuration
{
"parser": "babel-eslint",
"env": {
"browser": true, // allow browser globals like `window` and `document`
"node": true, // allow node globals like `process`
"commonjs": true, // allow globals like `require` and `exports`
"mocha": true // allow mocha globals like `describe` and `it`
},
@tdlm
tdlm / vim.md
Last active May 17, 2017 16:10
Vim Wizardry
Command Effect
V Visual line highlight.
C-V Visual block highlight.
C-z Suspend Vim and go go shell. Type fg to return to Vim session.
a Append mode.
A Go to end of line and go into insertion mode.
I Go to beginning of line and go into insertion mode.
R Replace mode. (backspace will undo any newly-typed characters!)
o Create a new line below and go into insertion mode.
@remarkablemark
remarkablemark / vim-tips.md
Last active November 7, 2018 17:10
A collection of useful VIM tips and tricks.

Vim Tips

Type Action Command
Editor Reload window :e
:edit
Horizontal split Ctrl w, s
:sp
:split
Vertical split Ctrl w, v
:vs
:vsplit
Switch between windows Ctrl w, (xor Ctrl w, h, j, k, l)
Open new tab :tabe
Go to next tab gt
@jaredhirsch
jaredhirsch / gist:4971859
Created February 17, 2013 15:19
all about ETags

ETags: a pretty sweet feature of HTTP 1.1

HTTP caching review

HTTP provides two ways for servers to control client-side caching of page components:

  • freshness may be based on a date or a token whose meaning is app-specific
  • whether or not the client needs to confirm the cached version is up-to-date with the server

This breaks down as follows:

  • Cache locally and don't check before using.
@remarkablemark
remarkablemark / tmux-cheatsheet.md
Last active March 21, 2021 10:26
tmux cheatsheet

tmux cheatsheet

PREFIX is the prefix key (Ctrl-b is the default). ^d means Ctrl-d. ^D means Ctrl-Shift-d.

Action Command
start a new session tmux
tmux new
tmux new-session
reattach an attached/detached session tmux attach``tmux attach-session
@Asheq
Asheq / css-display.md
Last active November 17, 2022 13:18
Compare CSS "display" Property Values
Behavior inline inline-block block
@remarkablemark
remarkablemark / .dockerignore
Last active January 24, 2023 23:20
Docker Node.js Example
node_modules/
*.log