Cursor movement
h - move left
j - move down
k - move up
l - move right
w - jump by start of words (punctuation considered words)
W - jump by words (spaces separate words)
e - jump to end of words (punctuation considered words)
// Tree Node Definition | |
function TreeNode(val) { | |
this.val = val; | |
this.left = this.right = null; | |
} | |
// Tree Creation | |
var t = new TreeNode(10) | |
t.left = new TreeNode(-2) | |
t.right = new TreeNode(6) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Linkedin Demo</title> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="//platform.linkedin.com/in.js"> | |
api_key: 86012 cynxvvidr | |
onLoad: checkAuthentication | |
authorize: true |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Index</title> | |
<button onclick="openWindow()">Login</button> | |
<pre id="access_token"></pre> | |
<pre id="tokenInfo"></pre> | |
<pre id="userInfo"></pre> |
// Vanilla JS - GET | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', 'https://reqres.in/api/users', true); | |
xhr.onload = function () { | |
console.log(xhr.responseText) | |
}; | |
xhr.send(null); | |
// Vanilla JS - POST | |
var xhr = new XMLHttpRequest(); |
Cursor movement
h - move left
j - move down
k - move up
l - move right
w - jump by start of words (punctuation considered words)
W - jump by words (spaces separate words)
e - jump to end of words (punctuation considered words)
Key/Command | Description |
---|---|
Ctrl + A | Go to the beginning of the line you are currently typing on. This also works for most text input fields system wide. Netbeans being one exception |
Ctrl + E | Go to the end of the line you are currently typing on. This also works for most text input fields system wide. Netbeans being one exception |
Ctrl + Q | Clears everything on current line |
Ctrl + L | Clears the Screen |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Index</title> | |
<button onclick="openWindow()">Open Window</button> | |
<script type="text/javascript"> | |
function openWindow(){ | |
window.open ("popup.html","popup", "width=350,height=250"); | |
window.addEventListener( |