Skip to content

Instantly share code, notes, and snippets.

{
"createTime": 1457625703, // Coordinated Universal Time(UTC), based from 1970-01-01 00:00:00, Type - long
"dataSet":[
{
"id":"user1", // 使用者 ID, Type String
"data":{
"rightHand":{ "x":0, "y":0, "z":0 }, // 身體各節點的旋轉角度資料
"leftHand":{ "x":0, "y":0, "z":0 }, // 節點名稱請參考下面圖片說明
...
...
{
"createTime": 1457625703, // Coordinated Universal Time(UTC), based from 1970-01-01 00:00:00, Type - long
"dataSet":[
{
"id":"user1", // 使用者 ID, String
"position":{ "x":0.0, "y":0.0, "z":0.0 } // 數字單位為公尺
},
{
"id":"user2", // user id
"position":{ "x":0.0, "y":0.0, "z":0.0 }
{
"id":"user1", // 使用者 ID
"data":{
"rightHand": { // 肢體節點名稱
"action":{
"vibrate":{
"duration": 1000, // Type - long for ms
"interval": 1000, // Type - long for ms
"times": 1000 // Type - int
},
@newyellow
newyellow / RenderTextureToBlend.cs
Last active July 19, 2017 11:23
RenderTextureToBlend.cs
using UnityEngine;
using System.Collections;
public class RenderTextureToBlend : MonoBehaviour {
public RenderTexture _texture;
public Colorful.Blend _blend;
// Use this for initialization
void Start () {
{
"createTime":"8/25/2017 10:13:50 PM",
"dataSet":[
{
"id":"thetestman",
"data":{
"hips":{
"x":"0",
"y":"270",
"z":"0"
/**
* (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
*/
//==============================================================================
// Welcome to scripting in Spark AR Studio! Helpful links:
//
// Scripting Basics - https://fb.me/spark-scripting-basics
// Reactive Programming - https://fb.me/spark-reactive-programming
// Scripting Object Reference - https://fb.me/spark-scripting-reference
Quaternion _preRotation;
public Vector3 newRotation = Vector3.zero;
void Awake () {
_preRotation = transform.rotation;
}
void Update () {
transform.rotation = _preRotation * Quaternion.Euler(newRotation);
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<div>
<input type="button" value="print" onmousedown="printArray();" />
query HoldTokenList($token: bigint = "") {
hic_et_nunc_token_holder(where: {holder_id: {_eq: "tz1RPZp6NLzn7x4g7jhqHtCkhCQVnhbVMj8y"}, quantity: {_gte: "1"}}) {
holder_id
quantity
token_id
}
hic_et_nunc_swap(where: {creator_id: {_eq: "tz1RPZp6NLzn7x4g7jhqHtCkhCQVnhbVMj8y"}, status: {_eq: "0"}}) {
status
price
token_id
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
iframe {
display: block;
margin: 0 auto;