Skip to content

Instantly share code, notes, and snippets.

html
head
title live
link(href='https://vjs.zencdn.net/7.10.2/video-js.css' rel='stylesheet')
style.
* {
margin: 0;
}
body,
html {
; Installer https://www.autohotkey.com/
; Run `AutoHotkey_1.xxx_setup.exe`
; alt-ime-ahk
; https://github.com/karakaram/alt-ime-ahk
; ファイル配置
; ├ alt-ime-ahk.ahk
; ├ IME.ahk
; └ (this file).ahk
using UnityEngine;
using UnityEditor;
/// <summary>
/// このコンポーネントはMainシーンから加算ロードされた場合、非アクティブになる
/// </summary>
public class PartialSceneObject : MonoBehaviour
{
// 単体シーンのロード時に SceneLoader.cs から呼ばれる
public void Init()
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
public class UDPReceive : MonoBehaviour
{
static UdpClient udp;
Thread thread;
using System.Net.Sockets;
using System.Text;
using UnityEngine;
public class UDPSender : MonoBehaviour
{
private UdpClient client;
void Start()
{
@nenjiru
nenjiru / artnet.js
Last active April 21, 2018 13:28
Artnet for NodeJS
/*
--------------------------------------------------------------------------------
Config
--------------------------------------------------------------------------------
*/
var dgram = require('dgram')
, Buffer = require('buffer').Buffer;
var HEADER = [65, 114, 116, 45, 78, 101, 116, 0, 0, 80, 0, 14, 0, 0, 0, 0];
/**
* 基底クラス
* @file base.js
*/
function Base ()
{
this.position = { x:0, y:0, z:0 };
}
Base.prototype.update = function ()
@nenjiru
nenjiru / toQuery.js
Created June 14, 2013 06:26
オブジェクトをクエリーにする
/**
* オブジェクトをクエリーにする
* @param obj {Object}
* @returns {String}
* @private
*/
toQuery = function(obj)
{
var query = '';
@nenjiru
nenjiru / jQuery.template.js
Created April 12, 2013 13:04
jQuery template
/**
* jQuery extend
*/
jQuery.fn.extend({
/**
* plugin
*
* @param {Object} argument comment
*/
plugin: function(args)
@nenjiru
nenjiru / Cakefile
Created March 12, 2013 11:29
Cakefile for coffee script
# http://qiita.com/items/57ccb570f02799efd9d3
fs = require 'fs'
path = require 'path'
{spawn, exec} = require 'child_process'
option '-o', '--output [DIR]', 'Output directory.'
option '-t', '--target [DIR]', 'Watch target directory.'