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
const GUEST_EMAILS = [ // 招待するゲストのメールアドレス | |
'xxx@example.com', | |
]; | |
const FETCHING_DAYS = 30; // 何日後までの予定を取得するか | |
function main() { | |
const dateFrom = new Date(); | |
const dateTo = new Date(dateFrom.getTime() + (FETCHING_DAYS * 24 * 60 * 60 * 1000)); | |
const calendar = Calendar.Calendars.get('primary'); |
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
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
using System; | |
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.Audio; | |
using DG.Tweening; | |
// Singleton として持ち続ける | |
public class SoundManager : MonoBehaviour { | |
static SoundManager instance; |
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
using System; | |
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.Audio; | |
// Singleton として持ち続ける | |
public class SoundManager : MonoBehaviour { | |
static SoundManager instance; | |
public AudioMixerGroup BGMMixerGroup; |
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
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
namespace Util { | |
public static class Fade { | |
public static void FadeoutObject(GameObject gameObject, float fadeoutSec = 2.0f) { | |
if (gameObject.GetComponent<Fadeout>()) return; |
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 |
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
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"log" | |
"os" | |
"strconv" | |
"time" |
NewerOlder