Skip to content

Instantly share code, notes, and snippets.

@jirutka
jirutka / example_non_styled.yml
Last active August 31, 2021 16:40 — forked from mislav/example.rb
A Psych extension to enable choosing output styles for specific objects.
# default boring output of Psych.dump
---
:response:
:body: ! "{\n \"page\": 1,\n \"results\": [\n \"item\", \"another\"\n ],\n
\ \"total_pages\": 0\n}\n"
:status: 200
:person:
name: Steve
age: 24
:array:
@altherlex
altherlex / description_component.rb
Last active February 13, 2017 20:23
Simple_form in show
#config/initializers/simple_form/description_component.rb
module SimpleForm
module Components
# Needs to be enabled in order to do automatic lookups
module Description
# Name of the component method
def desc(wrapper_options = nil)
object.send(attribute_name) if @builder.instance_variable_get('@lookup_action') == :show
end
end
start on filesystem and started docker
stop on runlevel [!2345]
respawn
chdir /location/of/fig
script
FILE=/var/run/docker.sock
while [ ! -e $FILE ] ; do
@darron
darron / gist:8312375
Last active January 2, 2016 13:49
Working .kitchen.yml file to use Docker with Test Kitchen under dvm.
---
driver:
name: docker
socket: <%= ENV['DOCKER_HOST'] %>
provisioner:
name: chef_solo
platforms:
- name: ubuntu-12.04
@voluntas
voluntas / shiguredo.rst
Last active February 19, 2025 04:20
時雨堂コトハジメ
@tcnksm
tcnksm / docker_cheat.md
Last active January 14, 2025 15:09 — forked from wsargent/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

@atty303
atty303 / gist:7261749
Last active December 27, 2015 03:48
iTerm2 + AquaSKK

iTerm2 + AquaSKK

AquaSKK を素の iTerm2 で使うと、IM 状態を変更するための "C-j" や "l" がそのまま入力されてしまって不便という問題があり、 以下のあたりでその問題を直すパッチを作ってくださった方がおりました。

僕も 1.0.0 が出たころに上記パッチを当てた iTerm2 をずっと使ってました。

@voluntas
voluntas / trello.rst
Last active August 20, 2020 14:55
Trello のススメ
@wsargent
wsargent / docker_cheat.md
Last active June 29, 2024 19:32
Docker cheat sheet
@katzchang
katzchang / README.md
Last active September 28, 2022 13:42
Steve Freeman氏とのペアプロ雑感 #tddbc

Steve Freeman氏とのペアプロ雑感

http://tddbc.doorkeeper.jp TDD Boot Camp 2013-07 -- TDDBC で、偶然にもロンドンから来日していたSteve Freeman氏を招くことができた。ちなみに本当に偶然の来日で、その日の夕方にご家族と隅田川の花火を見る予定だったらしい。貴重な時間である。

20分ほど講演していただき、さらに参加者と一緒にペアプロ課題に挑戦してもらった。しかもペアプロでっていう貴重な体験をさせてもらったので、そのことについてまとめたい。

Steve Freeman氏は書籍 "Growing Object-Oriented Software, Guided by Tests" (邦訳「実戦テスト駆動開発」)の共著者の一人で、Javaのモックフレームワーク "JMock"の開発者の一人。当然、自動販売機の課題にもJMockを駆使してモデリングしていただくことになった。

Start from the outside