Skip to content

Instantly share code, notes, and snippets.

View darlenew's full-sized avatar

Darlene Wong darlenew

View GitHub Profile
@darlenew
darlenew / vimium-shortcuts.md
Last active June 29, 2017 01:07
Vimium Keyboard Shortcuts - https://vimium.github.io

Vimium Keyboard Shortcuts

Navigating history

H   :   Go back in history
L   :   Go forward in history

Manipulating tabs

@darlenew
darlenew / Default (OSX).sublime-keymap
Last active July 21, 2017 18:24
Sublime Text keymap
[
/* remap escape to jj
https://scotch.io/tutorials/how-to-remap-escape-in-sublime-text-3s-vintage-mode
*/
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context": [
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false },
{ "key": "setting.vintage_ctrl_keys" }
]
@darlenew
darlenew / Preferences.sublime-settings
Last active June 18, 2018 20:59
Sublime Text settings
{
"caret_extra_width": 0,
"caret_style": "smooth",
"font_size": 12.0,
"ignored_packages": [], // i.e. don't ignore Vintage
"rulers":
[
72,
80,
120
@darlenew
darlenew / mac-setup.md
Created June 9, 2017 07:13
Mac Setup Guide

Mac Setup

Capslock be praised! (from vim-adventures.com :)

Swap the control and capslock keys.

System Preferences -> Keyboard -> Modifier Keys

Change the displayed hostname

@darlenew
darlenew / script.js
Last active August 29, 2015 14:19
Parse Exercise: Output all the users under age 40 near 10 miles to GPS Location (38,-121) #parse #javascript #js #node
// Exercise: Output all the users under age 40 near 10 miles to GPS Location (38,-121)
// Setup:
// $ brew install node --with-npm; brew install npm; npm install parse
// Substitute Parse API and Javascript keys below.
// Run:
// $ node script.js
var API_KEY = ""
var JAVASCRIPT_KEY = ""
var Parse = require('parse').Parse;