Skip to content

Instantly share code, notes, and snippets.

(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))
(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")
;; 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)
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) {
config.generators do |g|
g.test_framework :rspec, :fixture => false
g.view_specs false
g.helper_specs false
end
StringLiterals:
Enabled: false
LineLength:
Max: 99
Encoding:
Enabled: false
HashSyntax:
Enabled: false
(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")
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'
(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)
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