This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name trello/title,url,cardNo copy to clipboard | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author geerpm | |
// @match https://trello.com/c/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ooo | |
foreach ($_REQUEST as $k => $v) { | |
if (!is_scalar($k)) $k = json_encode($k); | |
if (!is_scalar($v)) $v = json_encode($v); | |
file_put_contents("php://stderr", "[{$k}] {$v}" . PHP_EOL); | |
} | |
abort(401, 'Unauthorized'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm i -g vue-cli | |
$ vue create test-project | |
Vue CLI v3.1.3 | |
? Please pick a preset: Manually select features | |
? Check the features needed for your project: Babel, TS, PWA, Router, Vuex, CSS Pre-processors, Linter | |
? Use class-style component syntax? Yes | |
? Use Babel alongside TypeScript for auto-detected polyfills? Yes | |
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes | |
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* UserAgent判定 | |
* | |
* UAリスト | |
* http://www.openspc2.org/userAgent/ | |
* http://www.useragentstring.com/pages/useragentstring.php | |
* | |
* | |
* android標準ブラウザUA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$prefList = [ | |
['kanji' => '北海道', 'kana' => 'ホッカイドウ', 'alphabet' => 'Hokkaido'], | |
['kanji' => '青森県', 'kana' => 'アオモリケン', 'alphabet' => 'Aomori'], | |
['kanji' => '岩手県', 'kana' => 'イワテケン', 'alphabet' => 'Iwate'], | |
['kanji' => '宮城県', 'kana' => 'ミヤギケン', 'alphabet' => 'Miyagi'], | |
['kanji' => '秋田県', 'kana' => 'アキタケン', 'alphabet' => 'Akita'], | |
['kanji' => '山形県', 'kana' => 'ヤマガタケン', 'alphabet' => 'Yamagata'], | |
['kanji' => '福島県', 'kana' => 'フクシマケン', 'alphabet' => 'Fukushima'], | |
['kanji' => '茨城県', 'kana' => 'イバラキケン', 'alphabet' => 'Ibaraki'], | |
['kanji' => '栃木県', 'kana' => 'トチギケン', 'alphabet' => 'Tochigi'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* cakephp3.6 | |
* Cache adapter for PSR-16 | |
* | |
* 1. Add 'psr/simple-cache' to your composer ($ composer.phar require psr/simple-cache) | |
* 2. Add 'psr16' settings in app.php OR change 'CACHE_ENGINE' constant in PsrSimpleCache class. | |
* | |
* 'Cache' => [ | |
* 'psr16' => [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dump例 | |
mysqldump --no-data [db] -h [host] -u [user] > config/Migrations/initial.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HogeTest extends IntegrationTestCase | |
{ | |
public function setUp() | |
{ | |
parent::setUp(); | |
// 一度dropしないと設定できない | |
// config/app.phpでEmailやEmailTransportの設定を確認して使用中のものを引数で渡す | |
\Cake\Mailer\Email::dropTransport('default'); |
NewerOlder