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 | |
function get_chokkin_getsuyoubi(){ | |
$day = 86400; // 60*60*24; | |
$t_dow = date_create()->format('n'); | |
return date('Y-m-d', time() - ($day * ($t_dow - 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
<?php | |
function get_days_until_next_nichiyoubi(){ | |
return 6 -(date_create()->format('n')); | |
} |
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
FROM php:7.1 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
libicu-dev \ | |
wget \ | |
vim \ | |
git \ | |
zsh \ | |
lv \ | |
zip \ |
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
CREATE TEMP FUNCTION | |
hoge(event | |
STRUCT< | |
name STRING, | |
params ARRAY< | |
STRUCT< | |
key STRING, | |
value STRUCT<string_value STRING, int_value INT64, float_value FLOAT64, double_value FLOAT64> | |
> | |
>, |
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
{ | |
"schema":{ | |
"fields":[ | |
{ | |
"mode":"NULLABLE", | |
"name":"event_date", | |
"type":"STRING" | |
}, | |
{ | |
"mode":"NULLABLE", |
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
FROM phpstan/phpstan:0.9 | |
RUN apk --update --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/community add \ | |
git \ | |
php7-intl | |
RUN cd /usr/bin && curl -fSL https://github.com/haya14busa/reviewdog/releases/download/0.9.11/reviewdog_linux_arm -o reviewdog && chmod +x ./reviewdog | |
COPY ./run.sh /tmp/run.sh | |
RUN chmod +x /tmp/run.sh |
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 | |
return [ | |
'file_list' => [ | |
'config/functions.php', | |
], | |
'directory_list' => [ | |
'src', | |
'vendor', | |
'.phan/stubs' |
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
// obtain from: | |
// Botkitで最小構成のSlack Bot https://qiita.com/nobukatsu/items/88917a2348628244bc42 | |
// howdyai/botkit https://github.com/howdyai/botkit | |
const botkit = require('botkit') | |
const controller = botkit.slackbot({ debug: true }) | |
controller.hears('hello', ['direct_message', 'direct_mention'], (bot, message) => { | |
bot.reply(message, 'Hello yourself!') | |
}) |
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
diff --git a/.github-aciton/travis-ci/.gitignore b/.github-aciton/travis-ci/.gitignore | |
new file mode 100644 | |
index 0000000..ad46b30 | |
--- /dev/null | |
+++ b/.github-aciton/travis-ci/.gitignore | |
@@ -0,0 +1,61 @@ | |
+# Logs | |
+logs | |
+*.log | |
+npm-debug.log* |
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 | |
/** | |
* !!! Auto generated file. Do not directly modify this file. !!! | |
* You can either version control this or generate the file on the fly prior to usage/deployment. | |
*/ | |
namespace App\Dto; | |
/** | |
* Car DTO |
OlderNewer