Skip to content

Instantly share code, notes, and snippets.

@blkcatman
blkcatman / LtcHelper.cs
Last active December 13, 2022 20:05
Unity上で音声信号からLinear timecodeに変換するヘルパーメソッド
using System;
using System.Collections.Generic;
using System.Linq;
using Unity.Mathematics;
public static class LtcHelper
{
public static readonly string SyncWord = "0011111111111101";
public struct WaveLengthData
@blkcatman
blkcatman / .babelrc
Last active June 16, 2019 07:25
babelファイル
{
"presets": [
[
"@babel/preset-env", {
"targets": {
"browsers": [ ">1.0%" ]
}
}
]
]
@blkcatman
blkcatman / webpack.config.js
Last active June 16, 2019 07:24
webpackコンフィグファイル
const path = require('path');
const webpack = require('webpack');
const config = {
entry: {
app: ['./index.js'],
},
output: {
path: path.resolve((__dirname, 'dist')),
filename: 'bundle.js',
@blkcatman
blkcatman / TimeSignalToSlack.js
Created February 5, 2019 14:24
GASからIncomingWebhooks経由でSlackに時報を送るサンプル
function isHoliday(date) {
if (date.getDay() === 0 || date.getDay() === 6) {
return true;
}
var calId = 'ja.japanese#holiday@group.v.calendar.google.com';
var calendar = CalendarApp.getCalendarById(calId);
var events = calendar.getEventsForDay(date);
return events.length > 0;
}