h
- left
j
- down
k
- up
l
- right
0
- end of line
(defn iota [t nxt stop y] | |
(take-while stop (iterate #(t (nxt %)) y))) | |
(def upto | |
(fn [start end] | |
(iota identity inc #(< % end) start))) | |
(def downto | |
(fn [start end] | |
(iota identity dec #(> % end) start))) |
require 'rake' | |
task :default => [:lein] | |
desc "download leiningen script and create symbolic link to /usr/local/bin/lein" | |
task :lein do | |
leiningen | |
end | |
def curl_leiningen(source_file) |
h
- left
j
- down
k
- up
l
- right
0
- end of line
def isDetailCancellableWithDelegate = { | |
delegate.status != "INVOICED" || billingService.isCancellable(delegate.invoice) | |
} | |
def theMetaProgrammingWay = { | |
def listOfObjects = detailService.findAll() | |
listOfObjects.each { | |
it.metaClass.isCancellable = isDetailCancellableWithDelegate | |
} |
;; ~/.lein/user.clj | |
(if (>= (.compareTo (clojure-version) "1.3.0") 0) | |
(do (use 'clojure.repl) | |
(use 'clojure.java.javadoc) | |
(use 'clojure.reflect))) |
000 SUB RECEIVE_REFUND | |
010 ASK POLITELY | |
020 IF REFUND = "YES" THEN | |
030 GOTO GOODBYE | |
040 ELSE | |
050 GOTO ASK_STERNLY | |
060 END IF | |
070 ASK_STERNLY: | |
080 ASK STERNLY | |
090 IF REFUND = "YES" THEN |
Matthew | |
If you are interested in the following role, please contact me as soon as possible. If you aren't interested perhaps you could refer someone who might be interested | |
Senior Grails on Rails / Groovy on Grails Developer | |
This is a 6 to 12 month consulting position that can also possibly lead to a permanent position, and is located in Atlanta, Georgia. | |
Our Client is just starting with Groovy in their environment, and they need someone who not only is hands-on, but who also can lead/mentor others on their team with the technology. |
watch('koans/(.*)\.rb') { system "rake" } |
;; I wanted to setup a hook which would compile the user init file upon exit or save. | |
;; So I wrote the code below to do so: | |
(defun my-emacs-lisp-mode-hook () | |
(when (files-equal-p buffer-file-name user-init-file) | |
(add-hook 'after-save-hook 'byte-compile-user-init-file t t))) | |
(add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook) | |
(add-hook 'kill-emacs-hook 'byte-compile-user-init-file t t) |
I was having issues with the append/prepend of twitter bootstrap. When writing my forms in haml, there would be a space between the input and the prepended text/icon. Here was my original code:
.field
= f.label :twitter
.input-prepend
%span.add-on @
= f.text_field :twitter