v
: characterShift
+v
: whole lineCtrl
+v
: cursor, multiple lines
h
,j
,k
,l
f{c}
: move toc
character (useful for characters which would otherwise mess with/
regex search:.
,,
,;
,:
, etc.)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Font | |
:set guifont=Source\ Code\ Pro:h14 | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Hide pointless junk at the bottom, doesn't work in .vimrc for some reason? | |
:set laststatus=0 | |
:set noshowmode "don't show --INSERT-- | |
:set noruler "don't show line numbers/column/% junk |
# show all windows in workspace | |
gesture swipe up 3 xdotool key alt+control+Down | |
# show Desktop | |
gesture swipe down 3 xdotool key super+d | |
# move current workspace for left | |
gesture swipe left 4 xdotool key alt+control+Right | |
# move current workspace for right |
'use strict' | |
const DATE_MAX = (36 * 36 * 36 * 36 * 36) // Since we use base 36 this should give us 5 characters | |
const RANDOM_MAX = 100000 | |
function createId () { | |
// ID consistent of a time aspect as well as a random aspect to make sure two Promises | |
return `${(Date.now() % DATE_MAX).toString(36)}-${(Math.random() * RANDOM_MAX | 0).toString(36)}` | |
} |
{ | |
"name": "browsersync-proxy-example", | |
"version": "1.0.0", | |
"description": "", | |
"main": "proxy.js", | |
"scripts": { | |
"start": "node ./proxy.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", |
swagger: '2.0' | |
info: | |
version: "1.0.0" | |
title: GeoJSON geometry | |
description: An example of swagger file for a geographic API. It contains the geometry definitions | |
termsOfService: "no" | |
contact: | |
name: Daniele Andreis | |
email: daniele.andreis@gmail.com | |
url: "" |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
#!/bin/sh | |
# extend non-HiDPI external display on DP* above HiDPI internal display eDP* | |
# see also https://wiki.archlinux.org/index.php/HiDPI | |
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949 | |
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319 | |
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1` | |
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1` | |
ext_w=`xrandr | sed 's/^'"${EXT}"' [^0-9]* \([0-9]\+\)x.*$/\1/p;d'` |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.