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
import { WebClient } from "@slack/web-api"; | |
import { RTMClient } from "@slack/rtm-api"; | |
import { Request, Response } from "express"; | |
import { createEventAdapter } from "@slack/events-api"; | |
// Slack Appのトークンを設定 | |
const slackWebClient = new WebClient(process.env.SLACK_TOKEN); | |
const slackRtmClient = new RTMClient(process.env.SLACK_TOKEN); | |
const slackEvents = createEventAdapter(process.env.SLACK_SIGNING_SECRET); |
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
{"conflicts":{"dark":false,"light":false},"e0d8d148-45e7-4d79-8313-e7b2ad8abe16":{"enabled":false},"ad923617-e76e-418e-9f23-490738a32299":{"enabled":true},"e1692c29-475e-437b-b7ff-3eee872e1a42":{"enabled":true},"ad923617-e76e-408e-9f23-490738a32238":{"enabled":false},"60e14feb-a81d-4ffb-9b12-7585d346bad8":{"enabled":false},"1794c0bd-7b96-46ad-aa0b-fc4bd76fc7fb":{"enabled":true},"ad923617-e76e-408e-9f23-490738a3223f":{"enabled":false},"033bff54-50ba-4cec-bdc0-b2ca7e307085":{"enabled":false},"69e7ccb2-4aef-484c-876d-3de1b433d2b9":{"enabled":false},"c4435543-4705-4d68-8cf7-d11c342f8089":{"enabled":false},"35815b3b-3916-4dc6-8769-c9c2448f8b57":{"enabled":true},"cb6fd684-f113-4a7a-9423-8f0f0cff069f":{"enabled":false},"87e077cc-5402-451c-ac70-27cc4ae65546":{"enabled":true},"0d541743-eb2c-4d77-83a8-3b2f5e8e5dff":{"enabled":false},"b99deb52-6955-43d2-a53b-a31540cd19a5":{"enabled":false},"d61dc8a7-b195-465b-935f-53eea9efe74e":{"enabled":true},"c86cfe98-e645-4822-aa6b-e2de1e08bafa":{"enabled":false},"c8b1db83-ee37-45b4 |
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
slice("▓▓▓▓▓▓▓▓▓▓", 0, round(prop("isDoneカウント") / prop("全件カウント") * 10)) + slice("░░░░░░░░░░", 0, round((.999 - prop("isDoneカウント") / prop("全件カウント")) * 10)) + " " + if(prop("isDoneカウント") == 0, "0", format(round(prop("isDoneカウント") / prop("全件カウント") * 100))) + "%" |
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
- #DailyNotes | |
- #{date:yyyy} #[[{date:yyyy-QQQ}]] #[[{date:yyyy-MM}]] #[[{date:yyyy-MM-W週}]] #[[{date:EEEE}]] | |
- [[体調]]は? # | |
- #[[4行日記]] | |
- #[[■事実]] | |
- #[[◆気づき]] | |
- #[[●教訓]] | |
- #[[★宣言]] | |
- #[[📌TaskList]] | |
- |
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
- #DailyNotes | |
- #{date:yyyy} #[[{date:yyyy-QQQ}]] #[[{date:yyyy-MM}]] #[[{date:yyyy-MM-W週}]] #[[{date:EEEE}]] | |
- [[体調]]は? # | |
- #[[4行日記]] | |
- #[[■事実]] | |
- #[[◆気づき]] | |
- #[[●教訓]] | |
- #[[★宣言]] | |
- #[[📌TaskList]] | |
- |
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 AppModel extends Model { | |
protected $field_alias = array( | |
'short'=>'longlonglonglonglong', | |
); | |
protected function fieldAlias( $field ){ | |
if( isset( $this->field_alias[ $field ] ) ) $field = $this->field_alias[ $field ]; | |
return $field; | |
} | |
/** cake conditions maker | |
[exsample] |