Skip to content

Instantly share code, notes, and snippets.

View eagletmt's full-sized avatar

Kohei Suzuki eagletmt

View GitHub Profile

drone

starting build 
2015/06/20 11:48:42 Error building f7799833236bbcd4beb9d99250e691da52d64901, Err: Error: Failed to create build container. Internal Server Error
2015/06/20 11:48:43 subscription's close channel received message

docker events

2015-06-20T11:47:42.000000000Z f66622daa6fcf5a3fb73f4257bd3e9c83230f9651a1a682eeaded7906944862f: (from 45b1e781d300bffd3b9ee6e772e3f2b31aa4564b8cb9e22d5591f488a6879c64) destroy
%span&abc
&abc
%span& abc
& abc
% bundle exec haml in.haml
= "foo |
  bar" |
%p
  foo |
  bar |
% bundle exec haml -t ugly in.haml
= "foo " + |
  "bar " + |
  __LINE__.to_s |
= __LINE__
% bundle exec haml in.haml
foo bar 1
[Unit]
Description=Tokyo Tech Coder
After=nginx.service postgresql.service redis.service
Wants=nginx.service postgresql.service redis.service
[Service]
Type=forking
User=ttcoder
WorkingDirectory=/home/ttcoder/deploy/current
ExecStart=/usr/bin/bundle exec unicorn -c /home/ttcoder/deploy/current/config/unicorn.rb -E production -D
%div<
  hello
  world
%div<
  #{'hello'}
  world
:plain
  hello
  world
%br
:plain
  #{'hello'}
  world
%br
:plain
  without empty lines


:preserve
  with empty lines


%br
#!/usr/bin/env ruby
require 'benchmark/ips'
require 'slim'
t1 = 1000.times.map do |i|
"span*{foo: #{i}}"
end.join("\n")
t2 = 1000.times.map do |i|
"span foo=#{i}"
#!/usr/bin/env ruby
require 'benchmark/ips'
require 'haml'
t1 = 1000.times.map do |i|
"%span{foo: #{i}}"
end.join("\n")
t2 = 1000.times.map do |i|
"%span{:foo => #{i}}"