Skip to content

Instantly share code, notes, and snippets.

@tfmertz
tfmertz / atom_shortcuts.md
Last active October 9, 2015 15:58
Shortcut keys for Atom text editor

Atom Shortcut Keys

Editor

Keys Action
cmd + d Select word, additional presses select next occurrence
cmd + k Skip current selection when using cmd + d
ctrl + cmd + up/down Move the current line up or down
ctrl + shift + k Delete current line
cmd + enter Add a line below and take cursor there
// Sets a timer
// @param timeleft - amount left in seconds
function setTimer(timeleft) {
//get the timer to timeleft seconds from now
var end_time = new Date(Date.now() + timeleft*1000);
var timer = setInterval(function() {
//find time remaining
var diff = end_time.getTime() - Date.now();
//split it up into minutes and seconds
@tfmertz
tfmertz / setup_instructions.md
Last active August 29, 2015 14:19
Installing Web Development Tools on Ubuntu 14.04.02 LTS

Setting up a Web Dev Environment on Ubuntu 14.04.02 LTS

This guide assumes you have Ubuntu version 14.04.02 LTS installed on your computer. It is meant to walk the user through the installation of some basic programs needed for web development.

Note: All hotkeys are in windows terms

Initial Setup

  1. Open a terminal window - Shortcut: Ctrl + Alt + T
  2. Type sudo apt-get update to make sure you have the freshest package list.