- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| class A | |
| def foo(num) | |
| %w[one two three][num - 1] | |
| end | |
| end | |
| describe A do | |
| describe "#foo" do | |
| RSpec::Matchers.define :do_foo do |args| | |
| match do |instance| |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
| /* balloon | |
| =balloon-left($size: 6px, $color: #FFF, $top: 6px) | |
| position: relative | |
| &:after | |
| position: absolute | |
| content: "" | |
| display: block | |
| border: $size solid transparent | |
| border-right: $size solid $color | |
| top: $top |
| Application.configure do | |
| config.after_initialize do | |
| # Partialの情報をHTMLに埋める | |
| # For ActionPack 3.2.8 | |
| class ActionView::PartialRenderer | |
| def render_with_partial_annotation(*args) | |
| setup(*args) | |
| path = @path | |
| content = "".html_safe |
このエントリはTDD Advent Calendar jp: 2012の22日目のエントリです。 昨日は@fukayatsuさんのTDDを続けるためにでした。
世界終わらなくてよかったですね!Hello world!
というわけで今日はTDDをチームや社内で導入するために僕がやったことや、失敗したことなどを共有できたらいいなと思い、エントリを書きます。
まず、すでに社内全体でTDDを導入できている人はこのエントリを読む必要はありません。僕に伝えられることは何もありません。ここで読み終わってOKです。
つぎに、社内やチーム内の重要ポストの人がTDDやテスト自動化なんて意味なし、無駄なことだと思っている場合は、TDDがすでに定着している会社に転職をするといいと思います。僕に伝えられることは何もありません。ここで読み終わってOKです。
| [ | |
| // how to move in the filer with hjkl | |
| { "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context": | |
| [ {"key": "control", "operand": "sidebar_tree"} ] | |
| }, | |
| { "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context": | |
| [ {"key": "control", "operand": "sidebar_tree"} ] | |
| }, | |
| { "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
| [ {"key": "control", "operand": "sidebar_tree"} ] |
| # config/initializers/i18n_exception_handler.rb | |
| I18n.exception_handler = ->(exception, locale, key, options) do | |
| if exception.is_a?(I18n::MissingTranslation) | |
| Rails.logger.warn exception.message if Rails.env.development? | |
| key.to_s.split('.').last.humanize | |
| else | |
| raise exception | |
| end | |
| end |