Skip to content

Instantly share code, notes, and snippets.

View simeg's full-sized avatar
:octocat:
I may be slow to respond.

Simon Egersand simeg

:octocat:
I may be slow to respond.
View GitHub Profile
@simeg
simeg / gist:c0ed34b12350bc69a61222bc2fdb65b6
Created September 22, 2017 06:52 — forked from bhurlow/gist:3043629
Linux Screen Cheat Sheets
–ctrl a c -> cre­ate new win­dow
–ctrl a A -> set win­dow name
–ctrl a w -> show all win­dow
–ctrl a 1|2|3|… -> switch to win­dow n
–ctrl a ” -> choose win­dow
–ctrl a ctrl a -> switch between win­dow
–ctrl a d -> detach win­dow
–ctrl a ? -> help
–ctrl a [ -> start copy, move cur­sor to the copy loca­tion, press ENTER, select the chars, press ENTER to copy the selected char­ac­ters to the buffer
–ctrl a ] -> paste from buffer
@simeg
simeg / API.md
Created September 9, 2017 15:05 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@simeg
simeg / solver.js
Created May 14, 2017 16:44 — forked from hughrawlinson/solver.js
Naive 2048 Solver
var a = (keyCode)=>{
var keyEvent = document.createEvent("Events");
keyEvent.initEvent("keydown", true, true);
keyEvent.keyCode = keyCode;
keyEvent.which = keyCode;
document.body.dispatchEvent(keyEvent);
}
const LEFT = 37;
const UP = 38;