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
'.vim-mode:not(.insert-mode)': | |
'space space': 'command-palette:toggle' | |
'space w': 'core:save' | |
'space q': 'core:close' | |
'space f': 'fuzzy-finder:toggle-file-finder' | |
'space c': 'git-plus:commit' | |
'space a': 'git-plus:add' |
- Talisker 57 North
- Linkwood 20 years anniversary (can't find the bottle anywhere)
- Drop
project.clj
in Rails root - copy
_clojurescript.html.erb
into/app/views/shared/
- update your layout according to
application.html.erb
- replace
project-name
by your project name - run the following:
lein cljsbuild auto &
bundle exec rails s
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
http://vk.com/wall2051158_6783 |
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
{"0":"#073642","1":"#dc322f","2":"#859900","3":"#b58900","4":"#268bd2","5":"#d33682","6":"#2aa198","7":"#eee8d5","8":"#002b36","9":"#cb4b16","10":"#586e75","11":"#657b83","12":"#839496","13":"#6c71c4","14":"#93a1a1","15":"#fdf6e3"} |
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
class IO | |
def readbytes(n) | |
str = read(n) | |
if str == nil | |
raise EOFError, "End of file reached" | |
end | |
if str.size < n | |
raise TruncatedDataError.new("data truncated", str) | |
end | |
str |
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
class RestfulActions | |
include Singleton | |
Action = Struct.new(:name, :method, :args) | |
@@actions = [] | |
[ | |
[:index, :get], | |
[:new, :get], | |
[:show, :get, {:id => 1}], |
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
# custom matchers to expect layouts | |
Spec::Matchers.define :use_layout do |layout| | |
match do |response| | |
response.layout == layout | |
end | |
failure_message_for_should do |employee| | |
"expected response to use layout named #{layout}" | |
end | |
failure_message_for_should_not do |employee| | |
"expected response to not use layout named #{layout}" |
OlderNewer