Skip to content

Instantly share code, notes, and snippets.

@tofias
tofias / Open URLs in Safari Tabs.pl
Created March 7, 2012 03:39 — forked from gruber/Open URLs in Safari Tabs.pl
Open URLs in Tabs (an update to Gruber's instant classic perl script) see: http://log.tofias.net/scripts
#!/usr/bin/perl
# Description: http://daringfireball.net/2010/08/open_urls_in_safari_tabs
# License: See below.
# http://gist.github.com/507356
# UPDATE for "Create and run the AppleScript" portion of Gruber's original script
# http://gist.github.com/1990793
use strict;
@gruber
gruber / Google Search
Created April 14, 2011 23:09
Perl script that can be used to create a system-wide service to do a Google web search. Input is the selected text in whatever the current app is. The result is a new Google query using your default web browser. (Mac OS X's built-in Search Google service
@erikrose
erikrose / wrap_comment.py
Last active September 23, 2015 14:27
Comment-wrapping filter for BBEdit 10
"""BBEdit UNIX filter that wraps one or more optionally-indented, commented
lines to 79 chars, preserving indentation.
Just select all the lines (in their entirety) the comment spans, and invoke.
Works with #, --, and //-style comments.
For example, this... ::
# Upping this to 10000 makes it 3x faster. 10000 takes 15.936s. 5000 takes 16.303s.
#!/usr/bin/perl
# Description: http://daringfireball.net/2010/08/open_urls_in_safari_tabs
# License: See below.
# http://gist.github.com/507356
use strict;
use warnings;
use URI::Escape;