Skip to content

Instantly share code, notes, and snippets.

View ryosuzuki's full-sized avatar

Ryo Suzuki ryosuzuki

View GitHub Profile
@ryosuzuki
ryosuzuki / DJI_0007.MP4
Created February 2, 2020 14:08
Jan 29 Wed, 3:39 PM GMT-07:00
ExifTool Version Number : 11.85
File Name : DJI_0007.MP4
Directory : .
File Size : 20 MB
File Modification Date/Time : 2020:02:02 07:03:42-07:00
File Access Date/Time : 2020:02:02 07:03:41-07:00
File Inode Change Date/Time : 2020:02:02 07:03:49-07:00
File Permissions : rw-r--r--
File Type : MP4
File Type Extension : mp4
ExifTool Version Number : 11.85
File Name : DJI_0007.MP4
Directory : .
File Size : 20 MB
File Modification Date/Time : 2020:02:02 07:03:42-07:00
File Access Date/Time : 2020:02:02 07:03:41-07:00
File Inode Change Date/Time : 2020:02:02 07:03:49-07:00
File Permissions : rw-r--r--
File Type : MP4
File Type Extension : mp4
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A-Frame Examples</title>
<script src="https://aframe.io/releases/0.9.1/aframe.min.js"></script>
</head>
<body>
<a-scene>
@ryosuzuki
ryosuzuki / rvo.js
Last active October 22, 2023 18:29
/*
* RVO Demonstration
* cf. http://gamma.cs.unc.edu/RVO/icra2008.pdf
*/
// parameters
const acceleration = 1;
const avoidanceTendency = 10;
class Agent {
using System;
using System.Collections;
using System.Collections.Generic;
using RVO;
using UnityEngine;
using Random = System.Random;
using Vector2 = RVO.Vector2;
public class GameAgent : MonoBehaviour
{
using UnityEngine;
using System.Net.Sockets;
using System.Text;
public class UDPClient : MonoBehaviour {
public string host = "192.168.1.158";
public int port = 8883;
private UdpClient client;
private class Command {
// make sure to select "Box Colider" option at the Inspector panel
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DragObject : MonoBehaviour {
//float distance = 10;
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>High frequency sound generator</title>
<script>
var WAcontext, oscillator, isPlay;
initSound();
function initSound() {
WAcontext = new AudioContext || new webkitAudioContext;
#version 330
precision lowp float;
uniform vec3 color;
out vec4 outColor;
void main() {
outColor = vec4(color, 1.0);
}