Skip to content

Instantly share code, notes, and snippets.

View andreimoment's full-sized avatar

Andrei Andreev andreimoment

View GitHub Profile
@andreimoment
andreimoment / gist:3835668
Created October 4, 2012 18:58
Everyday Keyboard shortcuts

Outlook

Switch to Mail. CTRL+1
Switch to Calendar. CTRL+2
Switch to Contacts. CTRL+3
Switch to Folder List in Navigation Pane. CTRL+6
Switch to Shortcuts. CTRL+7
Move between the Navigation Pane, the main Outlook window, the Reading Pane, and the To-Do Bar. F6 or CTRL+SHIFT+TAB

ZenCoding

@andreimoment
andreimoment / gist:2143516
Created March 21, 2012 01:41 — forked from JeanMertz/gist:1885444
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+X delete line
Ctrl+↩ insert line after
Ctrl+⇧+↩ insert line before
Ctrl+⇧+↑ move line (or selection) up
@andreimoment
andreimoment / syntax_highlighting.py
Created March 21, 2012 00:29 — forked from JeanMertz/syntax_highlighting.py
Ruby on Rails syntax highlight switcher for Sublime Text 2
import sublime, sublime_plugin
import os
class DetectFileTypeCommand(sublime_plugin.EventListener):
""" Detects current file type if the file's extension isn't conclusive """
""" Modified for Ruby on Rails and Sublime Text 2 """
""" Original pastie here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """
def on_load(self, view):
filename = view.file_name()
@andreimoment
andreimoment / dabblet.css
Created January 27, 2012 06:35 — forked from chriscoyier/dabblet.css
Animate to natural width
/* Animate to natural width */
body { background: black; padding: 100px; margin: 0; }
.progress-bar {
border: 2px solid red;
border-radius: 14px;
}
.progress-bar > div {