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 enh-ruby-program "/home/gnufied/.rbenv/versions/1.9.3-p448/bin/ruby") | |
(autoload 'enh-ruby-mode "enh-ruby-mode" "Major mode for ruby files" t) | |
(add-to-list 'auto-mode-alist '("\\.rb$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("\\.rake$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("Rakefile$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("\\.gemspec$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("\\.ru$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("Gemfile$" . enh-ruby-mode)) | |
(add-to-list 'interpreter-mode-alist '("ruby" . enh-ruby-mode)) |
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
(source "melpa" "http://melpa.milkbox.net/packages/") | |
(source "gnu" "http://elpa.gnu.org/packages/") | |
(source "marmalade" "http://marmalade-repo.org/packages/") | |
(depends-on "ac-js2") | |
(depends-on "adaptive-wrap") | |
(depends-on "ag") | |
(depends-on "auto-complete") | |
(depends-on "calfw") | |
(depends-on "cask") |
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
;; Set the starting position and width and height of Emacs Window | |
(add-to-list 'default-frame-alist '(left . 0)) | |
(add-to-list 'default-frame-alist '(top . 0)) | |
(add-to-list 'default-frame-alist '(height . 45)) | |
(add-to-list 'default-frame-alist '(width . 175)) | |
;; To get rid of Weird color escape sequences in Emacs. | |
;; Instruct Emacs to use emacs term-info not system term info | |
;; http://stackoverflow.com/questions/8918910/weird-character-zsh-in-emacs-terminal | |
(setq system-uses-terminfo nil) |
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
package eventfax.protocol | |
import scala.collection.jcl.TreeMap | |
import java.util.Date | |
import java.text.SimpleDateFormat | |
import java.text.DateFormat | |
import scala.collection.jcl.ArrayList | |
import scala.collection.mutable.Map | |
class HttpResponse(val pristine: Boolean) { |
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
config.generators do |g| | |
g.test_framework :rspec, :fixture => false | |
g.view_specs false | |
g.helper_specs false | |
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
StringLiterals: | |
Enabled: false | |
LineLength: | |
Max: 99 | |
Encoding: | |
Enabled: false | |
HashSyntax: | |
Enabled: false |
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
(source "melpa" "http://melpa.milkbox.net/packages/") | |
(source "gnu" "http://elpa.gnu.org/packages/") | |
(source "marmalade" "http://marmalade-repo.org/packages/") | |
(depends-on "ac-js2") | |
(depends-on "adaptive-wrap") | |
(depends-on "ag") | |
(depends-on "auto-complete") | |
(depends-on "calfw") | |
(depends-on "cask") |
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
1) installing a gem with C extensions installs | |
Failure/Error: expect(out).to eq("true") | |
expected: "true" | |
got: "" | |
(compared using ==) | |
# /home/ubuntu/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-expectations-2.14.3/lib/rspec/expectations/fail_with.rb:32:in `fail_with' | |
# /home/ubuntu/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-expectations-2.14.3/lib/rspec/expectations/handler.rb:34:in `handle_matcher' |
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 git-file-history () | |
(interactive) | |
(let ( | |
(diff-history-buffer (get-buffer-create "*git history*")) | |
(d default-directory) | |
(old-buffer-file-name (buffer-file-name)) | |
) | |
(switch-to-buffer diff-history-buffer) | |
(diff-mode) | |
(setq default-directory d) |
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
cmd = ARGV[0] | |
cur = ARGV[1].shellunescape | |
#ARGV seems to be empty array when completion script is invoked via zsh tab-complete | |
prev = ARGV[2].shellunescape | |
point = ENV['COMP_POINT'].to_i | |
line = ENV['COMP_LINE'][0..point-1].shellunescape |