A Pen by Geoff Jacobsen on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# greps the latest version of each gem for def, class, module and constants | |
# assumes you have a tmp dir under your home dir | |
# you can then grep this file in emacs for definitions and then you can click | |
# on them to go to the file | |
# | |
last=[] | |
results=Gem.path.map do |dir| | |
Dir["#{dir}/gems/*-[0-9].[0-9]*/lib"].sort{|a,b|b<=>a}.reject do |gem| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thread' | |
class MyBlockCaller | |
def initialize | |
@block = nil | |
@lock = Mutex.new | |
@result = nil | |
@call_done = ConditionVariable.new | |
@ready_to_call = ConditionVariable.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun update-visited-file-modtime-if-unchanged () | |
"Check the contents of all file buffers with changed file-modtime to see if they have really changed. | |
If not `set-visited-file-modtime' to match file." | |
(interactive) | |
(with-temp-buffer | |
(buffer-disable-undo) | |
(let (buf | |
fn | |
(cbuf (current-buffer)) | |
(buffers (buffer-list))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; | |
;;; handlebars-sgml-hacks.el --- add Handlebars contextual indenting support to sgml-mode | |
;;; | |
;;; Initial Developer: Geoff Jacobsen <[email protected]>, 2013 | |
;; Original code belongs to the Free Software Foundation | |
;; (see sgml-mode.el in GNU Emacs) | |
;; This file is free software; you can redistribute it and/or | |
;; modify it under the terms of the GNU General Public License as |