Skip to content

Instantly share code, notes, and snippets.

View twada's full-sized avatar
💭
🦁

Takuto Wada twada

💭
🦁
View GitHub Profile
@kazuho
kazuho / git-blame-pr.pl
Last active June 28, 2022 07:15
git-blame by PR #
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;
@kasei-san
kasei-san / テスト駆動開発読書感想会議事録.md
Created November 21, 2017 08:22
テスト駆動開発読書感想会議事録

テスト駆動開発読書感想会議事録

集中

  • TDDは1つのボールに集中する
  • 「割り込みにさらに割り込みしない」は実践したい

TDDというスキル

<?php
trait EnumTrait
{
/** @var static[] */
private static $instance;
/** @var mixed value of constant */
private $value;
/**

https://speakerdeck.com/rtechkouhou/javaru-men

p.68 7って数値リテラルが大分ヤバい

p.69 entrySetメソッドを使うべき 単にListに変換したいだけなら、謎のDTOとかいうオブジェクトの必要性を感じない

List<Map.Entry<String, String>> list = new ArrayList<>(arg.entrySet());

p.72

@shepherdwind
shepherdwind / index.js
Created April 21, 2017 08:45
espower-path-ts
require('intelli-espower-loader');
require('./test/foo.test.js');
@willnet
willnet / be_a_rails_contributer.md
Last active August 21, 2023 05:44
Railsコントリビュータへの道

これはなに

  • Railsにプルリクストを送るときに知っておくと便利なお作法集
  • Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針

お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。

前提知識

Railsのコードを読むには、最低限次の二つの知識があったほうがよいです

@koba04
koba04 / .gitignore
Last active December 21, 2018 02:21
karma + mocha + browserify + babel + power-assert
node_modules/
@stomita
stomita / app001.test-bundle-by-cmd.js
Last active August 29, 2015 14:16
browserify+espowerifyでassertの結果がおかしくなる件
/*
* browserify -t espowerify ./build/test/e2e/app001.test.js > ./build/test/e2e/app001.test-bundle-by-cmd.js
*/
//...
'use strict';
var assert = require('power-assert');
describe('apptest001', function () {
it('should raise', function () {
assert(assert._expr(assert._capt(1 === 0, 'arguments/0'), {
content: 'assert(1 === 0)',
@Layzie
Layzie / 2014-11-15-node-fest2014.md
Last active August 29, 2015 14:09
Node学園祭2014メモ

Node学園祭2014

基調講演

ファイルアップロードについて

アップロードの歴史

  • HTTPはあんまりアップロードのこと考えてない
  • FTPはいまはあんまり使われてないけど、前は使われてた
@tmm1
tmm1 / sample.gif
Last active December 11, 2020 07:40
View Profiler
sample.gif