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
// 1時間おきのトリガーを設定すること | |
// appsscript.json の timeZone を Asia/Tokyo にしておかないと変な時間にスケジュールが作られてしまうので注意 | |
// QQEnglish のレッスン予約完了メールを元に、Googleカレンダーのスケジュールを作成 | |
function getQQReservedLessonMail() { | |
const targetHours = 1; | |
const targetHoursInMilliSeconds = 60 * 60 * 1000 * targetHours; | |
const subject = "【QQEnglish】レッスン予約完了"; | |
const query = (`newer_than:${targetHours}h subject:"${subject}"`); | |
const threads = GmailApp.search(query); |
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
[url "git@github.com:"] | |
pushInsteadOf = https://github.com/ # use SSH | |
[user] | |
name = ハトネコエ | |
email = hatonekoe@gmail.com | |
[alias] | |
st = status | |
co = checkout | |
sw = switch | |
br = branch |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
// かぶらない可能性 | |
// charPattern: 文字種, n: 文字数, tryCount: 試行回数 | |
func notDuplicate(charPattern uint64, n uint64, tryCount uint64) 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"strings" |
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
require "discordrb" | |
require "net/http" | |
require "uri" | |
require "json" | |
# dotenv を使用する場合はここのコメントを解除します(※ gem install dotenv が必要) | |
# require "dotenv" | |
# Dotenv.load | |
class KizunaBot |
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
general: | |
branches: | |
ignore: | |
- gh-pages | |
machine: | |
timezone: Asia/Tokyo | |
node: | |
version: v6.1.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
# Ref: https://circleci.com/docs/2.0/deployment-integrations/ | |
version: 2 | |
jobs: | |
build: # runs not using Workflows must have a `build` job as entry point | |
working_directory: ~/repo | |
docker: | |
- image: circleci/node:8 # 8系がLTSなので使用 | |
steps: | |
- checkout # special step to check out source code to working directory | |
- run: |
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
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"log" | |
"os" | |
"strconv" | |
"time" |
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
package main | |
import ( | |
"context" | |
"go/build" | |
"log" | |
"os" | |
"strconv" | |
"time" |
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
aliases: | |
android_docker: &android_docker | |
docker: | |
- image: circleci/android:api-28 | |
environment: | |
TZ: Asia/Tokyo | |
steps: | |
- restore_cache: &restore_cache | |
key: &jars_key jars-{{ checksum "build.gradle.kts" }}-{{ checksum "app/build.gradle.kts" }} | |
- run: &download_deps |
NewerOlder