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.Text; | |
using UnityEngine; | |
public class ListAllReverbPresetSettings : MonoBehaviour | |
{ | |
[SerializeField] | |
AudioReverbFilter filter; | |
private void Start() |
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
#!/usr/bin/python3 | |
import argparse | |
import csv | |
import datetime | |
# A simple script that converts a TSV file into Xcode Localizable strings | |
# TSV format: | |
''' | |
id, comment, en, ja |
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
Shader "Hidden/TFLite/Resize" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Cull Off | |
ZWrite Off |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
void Start() | |
{ | |
// Option | |
var options = new Interpreter.Options() | |
{ | |
// Multithread | |
threads = 2, | |
// Metal option | |
gpuDelegate = new MetalDelegate(new MetalDelegate.Options() | |
{ |
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
// the image 28 * 28 grayscale | |
float[,] inputs = new float[28, 28]; | |
// the array of probability | |
float[] outputs = new float[10]; | |
void Start() | |
{ | |
// Read bytes from model and make Interpreter | |
interpreter = new Interpreter(File.ReadAllBytes(path)); |
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 Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
namespace ARKitStream.Internal | |
{ | |
public static class NativeArrayExtension | |
{ | |
public static byte[] ToRawBytes<T>(this NativeArray<T> arr) where T : struct | |
{ | |
var slice = new NativeSlice<T>(arr).SliceConvert<byte>(); |
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 Unity.Collections; | |
public static class NativeArrayExtension | |
{ | |
public static byte[] ToRawBytes<T>(this NativeArray<T> arr) where T : struct | |
{ | |
var slice = new NativeSlice<T>(arr).SliceConvert<byte>(); | |
var bytes = new byte[slice.Length]; | |
slice.CopyTo(bytes); | |
return bytes; |
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
<template lang="pug"> | |
.vimeo | |
.player(ref="player") | |
</template> | |
<script lang="ts"> | |
import { Component, Prop, Vue } from 'vue-property-decorator' | |
import Player, { Options } from '@vimeo/player' | |
// Vue wrapper for |
NewerOlder