Skip to content

Instantly share code, notes, and snippets.

View rhaamo's full-sized avatar
💭
squeak squeak

Valérianne rhaamo

💭
squeak squeak
View GitHub Profile
@defunkt
defunkt / gist:449668
Created June 23, 2010 08:55 — forked from dustin/gist:397971
Emacs Lisp to automatically add, commit, and push when files change
;; Automatically add, commit, and push when files change.
(defvar autocommit-dir-set '()
"Set of directories for which there is a pending timer job")
(defun autocommit-schedule-commit (dn)
"Schedule an autocommit (and push) if one is not already scheduled for the given dir."
(if (null (member dn autocommit-dir-set))
(progn
(run-with-idle-timer
anonymous
anonymous / syntax_for_redcloth.rb
Created April 30, 2009 07:09
Using CodeRay -and- Syntax with RedCloth
#
# Using CodeRay -and- Syntax with RedCloth
#
# Setup both gems in config/environment.rb
# config.gem "syntax", :version => '1.0.0'
# config.gem "coderay", :version => '0.8.312'
#
# Then drop this in config/initializers
#
# Now you can: