I hereby claim:
- I am kurone-kito on github.
- I am kurone_kito (https://keybase.io/kurone_kito) on keybase.
- I have a public key ASDWJqIZRqUlaz3xvg0NMErFxap5gwfMSqyg5obNmxr5RAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| const https = require('https'); | |
| const ifttt = event => `https://maker.ifttt.com/trigger/${event}/with/key/${process.env.IFTTT_WEBHOOK_KEY}`; | |
| exports.handler = async (event) => { | |
| const time = new Date(); | |
| const valid = time.getHours() >= 18; | |
| const eventId = valid ? 'night' : 'other'; | |
| await new Promise(r => https.get(ifttt(eventId), r)); | |
| const response = { statusCode: 200, body: eventId }; |
| using UnityEngine; | |
| public class CubeBehavior : MonoBehaviour | |
| { | |
| const float threshold = 1f; | |
| private readonly Quaternion quaternion = Quaternion.AngleAxis(90, Vector3.down); | |
| public Vector3 direction = Vector3.forward * 0.1f; | |
| // Update is called once per frame |