Skip to content

Instantly share code, notes, and snippets.

@HiromuKato
HiromuKato / openai_function_calling_sample.ipynb
Created June 15, 2023 17:18
OpenAI function calling sample
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HiromuKato
HiromuKato / Program.cs
Created June 12, 2020 16:09
MRTKのソースリストをcsv形式に変換するVisual Studioのコンソールアプリ 参考:https://www.hiromukato.com/entry/2020/06/13/004434
using System.IO;
using System.Text;
namespace MRTKSourceListCreator
{
class Program
{
static void Main(string[] args)
{
// Assetsフォルダで以下DOSコマンドを実行して出力したファイル
@HiromuKato
HiromuKato / Cat.cs
Last active November 7, 2019 20:51
ねこちゃんオブジェクトを表示するスクリプト
using UnityEngine;
using UnityEditor;
[ExecuteInEditMode]
public class Cat : MonoBehaviour
{
public bool good = true;
[MenuItem("GameObject/3D Object/Cat", false, 10)]
static void CreateCat(MenuCommand menuCommand)
{
@HiromuKato
HiromuKato / HoudiniTello.py
Created March 26, 2019 04:30
HoudiniからTELLOを操作するスクリプト
from PySide2 import QtWidgets
import socket
def onCreateInterface():
widget = Tello()
return widget
class Tello(QtWidgets.QWidget):
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
@HiromuKato
HiromuKato / main.js
Last active January 27, 2019 08:10
Photoshop(のジェネレータ)からTELLOを操作するスクリプト
(function() {
"use strict";
var PLUGIN_ID = require("./package.json").name;
var MENU_ID = "fp";
var dgram = require('dgram');
var PORT = 8889;
var HOST = '192.168.10.1';
var client = dgram.createSocket('udp4');
@HiromuKato
HiromuKato / telloControlFor3DSMax.py
Created December 17, 2018 09:33
3DS MAXからTELLOを操作するスクリプト
from PySide2 import QtWidgets
import MaxPlus
import socket
class Tello(QtWidgets.QDialog):
def __init__(self, parent=MaxPlus.GetQMaxMainWindow()):
super(Tello, self).__init__(parent)
self.setWindowTitle("Tello Controller")
self.initUI()
@HiromuKato
HiromuKato / telloControl.py
Created August 25, 2018 11:45
MAYAからTELLOを操作するスクリプト
# -*- coding: utf-8 -*-
import maya.cmds as cmds
import socket
import sys
import time
class Tello :
def __init__(self) :
# Create Window
if cmds.window("Obj_EditWindow",exists=True):
@HiromuKato
HiromuKato / HoloRecorder.py
Created November 12, 2017 00:59
Pythonista application which controls HoloLens recording.
import ui
import console
import requests
import base64
isRecording = False
url = "192.168.0." # Input Device Portal url
token = ""
def btnAuth_tapped(sender):
@HiromuKato
HiromuKato / ChangeIconVisibility.cs
Created August 20, 2017 03:02
Unity SceneViewのアイコンを表示・非表示するエディタ拡張
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
public static class ChangeIconVisibility
{
// アイコンの表示・非表示フラグ
static bool visibility = false;