This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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( |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
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 |
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 |
OlderNewer