Skip to content

Instantly share code, notes, and snippets.

View shoyan's full-sized avatar

Shohei Yamasaki shoyan

View GitHub Profile
@voluntas
voluntas / webrtc.rst
Last active April 25, 2024 12:30
WebRTC コトハジメ
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@aras-p
aras-p / preprocessor_fun.h
Last active April 12, 2024 17:24
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@y-yu
y-yu / inherit.md
Created August 9, 2012 06:57
JavaScriptの継承について

JavaScriptの継承について

全然理解出来てなかったので調べてみた。

経緯

function f () {
	// Class
}
@HatemMahmoud
HatemMahmoud / Ubuntu rbenv
Created September 7, 2011 12:56
Installing Ruby 1.9.2 with OpenSSL on Ubuntu 11.04 using ruby-build and rbenv
# for more info: https://gist.github.com/1120938

2013 年の新卒研修メニュー

Rails Tutorial

目的

  • 2013 年にモダンな方法で一通り Web アプリケーションを自分一人で作れるようになってもらう
  • 作る過程で Web 開発で必要とされるアプリケーションレイヤのスキルセットを身につけてもらう

教科書

@masquaremo
masquaremo / str_num_sample.rb
Last active May 30, 2021 06:56
Rubyで文字列と数値を相互に変換するメソッドとかのまとめ
#!/usr/bin/ruby
#数値を16進数文字列に
p 65.to_s(16) #=> "41"
#数値をASCII文字に
p 65.chr #=> "A"
#文字列を16進数とみなして数値に
p "41".hex #=> 65
@kyanny
kyanny / gist:5694201
Last active July 16, 2020 03:38
日本語概略:: RubyKaigi 2013 – great conference, but I probably wouldn’t go next year if I was a woman

RubyKaigi 2013 – great conference, but I probably wouldn’t go next year if I was a woman の内容の概略です。認識間違ってたら訂正するので @kyanny までご連絡ください。

It is a Japanese outline text of RubyKaigi 2013 – great conference, but I probably wouldn’t go next year if I was a woman. If you find any issues, please mention to @kyanny.


  • RubyKaigi 2013 のあるプレゼン中に、発表者が「おまえらが来年台湾に来るべき理由: 女の子がかわいい」という発言をした (あくまで冗談、というニュアンスで)
  • その発言に対する聴衆の反応は、拍手喝采・オオウケ、という感じだった。けどこれってまずくない?というのが元ブログの趣旨
  • ブログの著者は、この発表者の発言そのものを問題視しているのではない (全く問題が無いと思っているわけでもないが、個人攻撃は望んでいないのであえて名指ししていない / 訳者も同感です)
  • 聴衆はざっと見た感じ 95% くらいは男性で、ブログ著者は、「そういう男性ばかりの場で、女性の容姿に関する冗談に対し、そのような反応をしているのをその場に居合わせた女性が見たら、来年もまた来たいと思うのだろうか?」と言っている
@nissuk
nissuk / ExampleDbTest.php
Created September 4, 2011 12:28
PHPUnit 3.5.15: データベースのテストをする単純な例
<?php
class ExampleDbTest extends PHPUnit_Extensions_Database_TestCase {
protected $conn = null;
/**
* (non-PHPdoc)
* @see PHPUnit_Extensions_Database_TestCase::setUp()
*/
public function setUp() {