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
/** | |
* 幅: 364 (3人分表示する場合) | |
* 幅: 488 (4人分表示する場合) | |
* 高さ: 145 (横一列の場合) | |
* | |
* アバターを左から順に並べたい場合は、voice-states クラスの justify-content プラパティを削除 | |
* アバターを右から順に並べたい場合は、voice-states クラスに justify-content プラパティを追加して flex-end を指定 | |
**/ | |
:root { | |
--avatar-count: 3; |
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
javascript:(function(){var url=top.document.URL;if(url.match(/https.*?amazon/)){document.location.href=url+%27&rh=p_6%3AAN1VRQENFRJN5%2Cp_85%3A8070706051%27;}})(); |
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 | |
/** | |
* Sums the values of two associative arrays with the same keys. | |
* | |
* This function takes two associative arrays with identical keys and | |
* returns a new array where each value is the sum of the corresponding | |
* values from the input arrays. | |
* | |
* @param array $array1 The first associative array. | |
* @param array $array2 The second associative array. |
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
/** | |
* 文字列の末尾からスラッシュを削除する | |
* | |
* @param {string} str | |
* @returns {string} | |
*/ | |
function delete_trailing_slash(str) { | |
if (str.slice(-1) === '/') { | |
str = str.slice(0,-1); | |
} |
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
DELETE FROM | |
table_a | |
WHERE id NOT IN ( | |
SELECT | |
id | |
FROM( | |
SELECT | |
* | |
FROM | |
table_a AS t1 |
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 artisan config:cache | |
php composer.phar dump-autoload | |
php artisan db:seed --class=prefacture --force | |
php artisan migrate:fresh --seed | |
git stash | |
git flow init | |
git stash list | |
git branch | |
git stash show stash@{0} |
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 | |
define( 'PAGESPEED_INSIGTHS_ENDPOINT', 'https://www.googleapis.com/pagespeedonline/v5/runPagespeed?' ); | |
define( 'PAGESPEED_INSIGTHS_LOCALE', 'ja' ); | |
define( 'PAGESPEED_INSIGTHS_API_KEY', 'your_api_key' ); | |
$score = 0; | |
/** | |
* @see https://developers.google.com/speed/docs/insights/v5/reference/pagespeedapi/runpagespeed | |
*/ | |
$parameter = array( |
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
# Windows thumbnail cache files | |
Thumbs.db | |
ehthumbs.db | |
ehthumbs_vista.db | |
# Dump file | |
*.stackdump | |
# Folder config file | |
[Dd]esktop.ini |
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
[Unit] | |
Description=H2O - the optimized HTTP/1, HTTP/2 server | |
After=network.target remote-fs.target nss-lookup.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/sbin/h2o -m master -c /etc/h2o/h2o.conf | |
ExecReload=/bin/kill -HUP ${MAINPID} | |
ExecStop=/bin/kill -TERM ${MAINPID} | |
PrivateTmp=true |
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 | |
/** | |
* 内接サイズを計算する | |
* | |
* @see https://qiita.com/suin/items/b01eebc05209dba0eb3e | |
* | |
* @param int $width | |
* @param int $height | |
* @param int $containerWidth | |
* @param int $containerHeight |
NewerOlder