Skip to content

Instantly share code, notes, and snippets.

View YumaInaura's full-sized avatar

いなうらゆうま ( 稲浦悠馬 ) YumaInaura

View GitHub Profile
@YumaInaura
YumaInaura / 00_README.md
Last active June 9, 2024 17:39
Golang — Understanding channel, buffer, blocking, deadlock and happy groutines.

Golang — Understanding channel, buffer, blocking, deadlock and happy groutines.

I was so confused to understand behaviior of Golang channels, buffer, blocking, deadlocking and groutines.

I read Go by Example topics.

@quanon
quanon / hoge_spec.rb
Last active September 14, 2022 08:48
RSpec での例外処理について
class Hoge
class InvalidBlockError < StandardError; end
attr_accessor :result, :error
# 渡されたブロックを実行して、結果をプロパティに格納するインスタンスメソッド。
def call
yield
self.result = :success
rescue => e
        _,'|             _.-''``-...___..--';)
       /_ \'.      __..-' ,      ,--...--'''
      <\    .`--'''       `     /'
       `-';'               ;   ; ;
 __...--''     ___...--_..'  .;.'
(,__....----'''       (,..--''   

To enable cat cat, place the above text in a file titled cat. Image by Felix Lee, from http://user.xmission.com/~emailbox/ascii_cats.htm