This file contains hidden or 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
Day job: Developer at XING AG | |
Favorite Ruby project: Rspec | |
Open Source contributions: Filet, Rubinius, Drupistrano, etc - isn't this github? I have a profile here ;) | |
How do you use GitHub: Open source sharing, online code portfolio, projects collaboration |
This file contains hidden or 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
(defvar ffip-file-tuple-function "tuple function") | |
(setq ffip-file-tuple-function '(lambda (file) | |
(let ((full-path (expand-file-name file)) | |
(project-root (expand-file-name (ffip-project-root)))) | |
(cons (replace-regexp-in-string project-root "" full-path) | |
full-path)))) |
This file contains hidden or 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
;;; find-file-in-project.el --- Find files in a project quickly. | |
;; Copyright (C) 2006-2009, 2011 | |
;; Phil Hagelberg, Doug Alcorn, and Will Farrington | |
;; Author: Phil Hagelberg, Doug Alcorn, and Will Farrington | |
;; URL: http://www.emacswiki.org/cgi-bin/wiki/FindFileInProject | |
;; Git: git://github.com/technomancy/find-file-in-project.git | |
;; Version: 2.1 | |
;; Created: 2008-03-18 |
This file contains hidden or 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 mumamo-chunk-keyboard-major-mode (chunk pos) | |
(let* ((min-max (mumamo-chunk-syntax-min-max chunk nil)) | |
(cmin (car min-max)) | |
(cmax (cdr min-max)) | |
(major (mumamo-chunk-major-mode chunk))) | |
;;(msgtrc "keyboard-major-mode cmin=%s pos=%s cmax=%s" cmin pos cmax) | |
(unless (and (<= cmin pos) | |
(<= pos cmax)) | |
(setq major 'mumamo-border-mode)) | |
major)) |
This file contains hidden or 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 ruby-generate-tags() | |
(interactive) | |
(let ((root (ffip-project-root))) | |
(let ((my-tags-file (concat root "TAGS"))) | |
(message "Regenerating TAGS file: %s" my-tags-file) | |
(if (file-exists-p my-tags-file) | |
(delete-file my-tags-file)) | |
(shell-command | |
(format "find %s -iname '*.rb' | grep -v db | xargs ctags -a -e -f %s" | |
root my-tags-file)) |
This file contains hidden or 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
;;; rcodetools.el -- annotation / accurate completion / browsing documentation | |
;;; Copyright (c) 2006-2008 rubikitch <[email protected]> | |
;;; | |
;;; Use and distribution subject to the terms of the Ruby license. | |
(defvar xmpfilter-command-name "ruby -S xmpfilter --dev --fork --detect-rbtest" | |
"The xmpfilter command name.") | |
(defvar rct-doc-command-name "ruby -S rct-doc --dev --fork --detect-rbtest" | |
"The rct-doc command name.") |
This file contains hidden or 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
(setq el-get-sources | |
'((:name package-name))) | |
(defun sync-packages () | |
"Synchronize packages" | |
(interactive) | |
(el-get 'sync '(el-get package)) | |
(add-to-list 'package-archives '("tromey" . "http://tromey.com/elpa/")) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
(setq my-packages (mapcar 'el-get-source-name el-get-sources)) |
This file contains hidden or 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
$ rvm --trace --create use "ruby-something" | |
+ [[ -n '' ]] | |
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ /scripts/cli : __rvm_parse_args() 707 > [[ -z '' ]] | |
+ /scripts/cli : __rvm_parse_args() 707 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 709 > [[ 0 -eq 1 ]] | |
+ /scripts/cli : __rvm_parse_args() 709 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 19 > [[ -n --create ]] | |
+ /scripts/cli : __rvm_parse_args() 21 > rvm_token=--create |
This file contains hidden or 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
class MiniTest::Spec::SandboxCommand < MiniTest::Spec | |
def reset_config | |
Xing::Scripts::Config.config_file = nil | |
Xing::Scripts::Config.config = nil | |
end | |
def setup_config | |
capture_io { Xing::Scripts::Config.config } | |
end |
This file contains hidden or 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
Dir.chdir(File.expand_path('~/.emacs.d/snippets/')) | |
Dir['**/*'].each do |f| | |
unless File.directory?(f) | |
puts f | |
content = File.read(f) | |
unless content =~ /#\s*key:/ | |
key = File.basename(f).split('.').first | |
content.gsub!(/(#.*name.*\n)/, "\\1# key: #{key}\n") | |
File.open(f, "w") { |f| f << content } | |
end |