Skip to content

Instantly share code, notes, and snippets.

@tzarskyz
tzarskyz / gist:3001493
Created June 27, 2012 04:37
TextMate 2 .tm_properties

This is all based on the [alpha release][1].

Properties

From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.

@tzarskyz
tzarskyz / gist:3051873
Created July 5, 2012 06:46 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tzarskyz
tzarskyz / gist:3068892
Created July 8, 2012 01:21 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tzarskyz
tzarskyz / editscript.rb
Created August 5, 2012 19:48 — forked from ttscoff/editscript.rb
Fuzzy CLI file search through configured directories, ranked results displayed as menu
#!/usr/bin/env ruby
# encoding: utf-8
# == Synopsis
# Proof of concept using Fuzzy File Finder to locate a script to edit
# Searches a set of predefined locations for a fuzzy string
# e.g. "mwp" matches both "myweatherprogram" and "mowthelawnplease"
# ................on "(m)y(w)eather(p)rogram" and "(m)o(w)thelawn(p)lease"
#
# Results are ranked and a menu is displayed with the most likely
# match at the top. Editor to be launched and directories to search
@tzarskyz
tzarskyz / nvaltjournal.applescript
Created August 20, 2012 22:11 — forked from msabramo/nvaltjournal.applescript
Fix for "Append to nvALT journal" Alfred extension. Handling non-English characters as well.
on alfred_script(q)
set theYear to year of (current date) as string
set theMonth to (month of (current date) as number)
if theMonth < 10 then
set theMonth to "0" & theMonth
else
set theMonth to "" & theMonth
end if
@tzarskyz
tzarskyz / Tomorrow-Night-Eighties.tmTheme
Created October 24, 2012 22:03
Modified Tomorrow-Night-Eighties Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>http://chriskempson.com</string>
<key>name</key>
<string>Tomorrow Night - Eighties</string>
<key>settings</key>
<array>
@tzarskyz
tzarskyz / Tomorrow-Night-Eighties.tmTheme
Created October 24, 2012 22:30
Modified Tomorrow-Night-Eighties Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>http://chriskempson.com</string>
<key>name</key>
<string>Tomorrow Night - Eighties</string>
<key>settings</key>
<array>
--Script for setting Reminders for LaunchBar and Alfred
--For Alfred, Applescript must NOT be set to run in Background otherwise date parsing does not work
--For LaunchBar, place the script in ~/Library/Scripts/LaunchBar
--by Michelle L. Gill, 10/07/2012
--inspired by https://gist.github.com/3187630
--Notes on valid reminders
--Order of the text must be "title #note $list @date time" but note and list are optional. Date and time are also optional but both must be included if one is included
--Times can be in 12- or 24-hour format, and 24-hour format is assumed if am/pm are absent
--Times can include minutes and seconds (colon separated like hours:minutes:seconds) but minutes and seconds aren't required

Usage

Copy these files to your ~/Library/Application Support/Notational Velocity/ folder.

Usage

Copy these files to your ~/Library/Application Support/Notational Velocity/ folder