Skip to content

Instantly share code, notes, and snippets.

Avatar

Yu Kawanami kawanamiyuu

  • RAKUS Co., Ltd.
  • Osaka, Japan
View GitHub Profile
@kawanamiyuu
kawanamiyuu / architecture-testing.md
Last active Aug 5, 2021
アーキテクチャテストに関する過去の登壇資料など
View architecture-testing.md
@kawanamiyuu
kawanamiyuu / softtab.user.js
Last active Nov 22, 2021
UserScript to input Soft tab instead of Hard tab.
View softtab.user.js
// ==UserScript==
// @name softtab.user.js
// @namespace https://gist.github.com/kawanamiyuu/
// @updateURL https://gist.github.com/kawanamiyuu/db042e2910ab05c105faf5b3ead211ae
// @version 1.3
// @description UserScript to input Soft tab instead of Hard tab.
// @include *
// @exclude https://github.com/*/*/projects*
// @require https://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
@kawanamiyuu
kawanamiyuu / php.ini
Last active Apr 10, 2018
最低限確認するphp.iniの設定項目
View php.ini
date.timezone = UTC
display_errors = 0
log_errors = 1
error_log = php://stderr
session.use_strict_mode = 1
session.use_cookies = 1
session.use_only_cookies = 1
session.cookie_secure = 1
session.cookie_httponly = 1
;session.cookie_lifetime = 0
@kawanamiyuu
kawanamiyuu / shuffleLTSpeakers.php
Last active Dec 25, 2017
LT順をシャッフルして決め、結果を音声で発表するPHPスクリプト
View shuffleLTSpeakers.php
#!/usr/bin/env php
<?php
$speakers = array_slice($argv, 1);
if (!$speakers) {
echo "ERROR!\n";
exit(1);
}
@kawanamiyuu
kawanamiyuu / gist:0f35e755aeaf7cab0470
Last active Jun 29, 2016
Rakus Osaka もくもく勉強会
View gist:0f35e755aeaf7cab0470
View gist:6367312
var $iframe = $('#some_iframe');
// iframe内のコンテンツのdocumentオブジェクト
var ifrmDoc = $iframe[0].contentWindow.document;
// あとはいつも通りでおk
var $body = $('body', ifrmDoc);
var $ele = $('#some_element', ifrmDoc);