Skip to content

Instantly share code, notes, and snippets.

@kconragan
kconragan / keyrepeat.shell
Last active October 16, 2025 10:31
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
@sjl
sjl / gist:2013603
Created March 10, 2012 22:20
Lobos DB definition for SQLite3
(def db
{:classname "org.sqlite.JDBC"
:subprotocol "sqlite"
:subname "./db.sqlite3"})
@am0c
am0c / gist:960214
Created May 7, 2011 04:51
perlbrew on eshell
;; eshell init script which let
;; perlbrew to be enabled in emacs eshell environment
;; it is translated from $HOME/perl5/perlbrew/etc/bashrc
;; to elisp script
;;
;; am0c <[email protected]> http://twitter.com/am0c
;;
(require 'cl)
(defmacro get-home-path () '(getenv "HOME"))
@sharifulin
sharifulin / gist:261811
Created December 22, 2009 15:56
The Mojolicious example of routes (simple CRUD model)
#!/usr/bin/perl
use common::sense;
use lib '../lib';
$ENV{MOJO_APP} ||= 'App';
use Mojolicious::Commands; Mojolicious::Commands->start;
package App;
use common::sense;