Skip to content

Instantly share code, notes, and snippets.

"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
.pie {
position: relative;
svg {
width: 100%;
.arc-path-0 {
fill: $color-matisse !important;
}
@canvaspixels
canvaspixels / Key.js
Created October 28, 2018 12:52 — forked from boxmein/Key.js
A list of Protractor.js key constants
// Protractor keys
// Extracted from https://github.com/SeleniumHQ/selenium/blob/d943ee2950e25a2f4a3492058107cfd005d6f7fd/javascript/node/selenium-webdriver/lib/input.js#L44
const Key = {
NULL: '\uE000',
CANCEL: '\uE001', // ^break
HELP: '\uE002',
BACK_SPACE: '\uE003',
TAB: '\uE004',
CLEAR: '\uE005',
RETURN: '\uE006',
@canvaspixels
canvaspixels / gmail-send.js
Created October 21, 2019 12:42
Automate sending mass Emails using Gmail UI
function simulateClick(el) {
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
var cb = el;
var canceled = !cb.dispatchEvent(evt);
}
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
{
"workbench.startupEditor": "newUntitledFile",
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.syntaxProfiles": { "javascript": "html" },
"editor.autoIndent": false,
"window.zoomLevel": 0,
"editor.wordWrap": "on",
@canvaspixels
canvaspixels / vscode keybindings
Last active February 24, 2020 17:39
vscode keybindings
[
{
"key": "cmd+shift+h",
"command": "workbench.action.terminal.newWithCwd",
"args": {
"cwd": "${fileDirname}"
}
},
{
"key": "alt+t",
export BASH_SILENCE_DEPRECATION_WARNING=1
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
[[ -r "/Users/$USER/.bash_user" ]] && . "/Users/$USER/.bash_user"
# export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home"
export M2_HOME="/usr/local/Cellar/maven/3.3.3/libexec"
export M2="/usr/local/Cellar/maven/3.3.3/libexec/bin"
alias ct="PATH=$(npm bin):$PATH NODE_OPTIONS=--no-deprecation ct"