Skip to content

Instantly share code, notes, and snippets.

@olivierlacan
olivierlacan / launch_sublime_from_terminal.markdown
Created September 5, 2011 15:50
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@danstuken
danstuken / gist:1334293
Created November 2, 2011 17:26
Umbraco Fuzzy Search
var toSearchForm = searchTerm.Split(' ');
var searcher = ExamineManager.Instance.SearchProviderCollection["SiteQuickSearchSearcher"];
var criteria = searcher.CreateSearchCriteria(IndexTypes.Content);
var fieldsToSearch = new[]
{
"nodeName", "pageTitle", "menuText", "pageBody", "metaKeywords",
"metaDescription"
};
@ericelliott
ericelliott / essential-javascript-links.md
Last active July 18, 2024 15:03
Essential JavaScript Links