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()
{
/**
* 基底クラス
* @file base.js
*/
function Base ()
{
this.position = { x:0, y:0, z:0 };
}
Base.prototype.update = function ()
@nenjiru
nenjiru / ogp.html
Created March 16, 2015 13:54
OGP template
<!DOCTYPE HTML>
<html lang="ja">
<head prefix="og: http://ogp.me/ns# fb: http://www.facebook.com/2008/fbml">
<meta charset="UTF-8" />
<title></title>
<meta name="viewport" content="width=device-width" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<meta property="fb:app_id" content="" />
@nenjiru
nenjiru / vimrc
Created March 16, 2015 02:10
vimrc
""""""""""""""""""""""""""""""""""""""""
" プラグイン管理
""""""""""""""""""""""""""""""""""""""""
" MacVimを初期化した場合は、以下
" mkdir -p ~/.vim/bundle
" git clone https://github.com/Shougo/neobundle.vim
" git clone https://github.com/Shougo/vimproc.vim.git ~/.vim/bundle/vimproc.vim
" cd ~/.vim/bundle/vimproc.vim
" make
"
@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];
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman" language="ja-jp">こんちには、こんちには。ゆっくりしていってね</Say>
</Response>