This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Copyright 2023 nyatla | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Deque, Iterator,TypeVar,Sequence,Iterable,Union | |
from ..interfaces import IPeekableStream | |
T=TypeVar("T") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""pickle可能なオブジェクトをJSONと相互変換します。 | |
Copyright 2020 nyatla | |
pickle可能なオブジェクトをJSONに変換してシリアライズ/復元します。 | |
変換元のオブジェクトは、配列,辞書,JsonPicklableの継承クラスです。 | |
再帰構造の動作チェックはしてません。 | |
オブジェクトは、{"__cls":str,"d":object}の辞書形式に変換します。 | |
JSONからオブジェクトに戻すときは、"__cls"キーに文字列を持つ要素をクラスインスタンスと判定し、 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Closeable; | |
import java.io.IOException; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.Semaphore; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* シャットダウン機能のあるマルチスレッドのキューオブジェクト. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
共有メモリのオーバヘッドを計測する。 | |
""" | |
import time | |
import numpy as np | |
import multiprocessing | |
import ctypes | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Rlp{ | |
/** | |
* 数値をRpl Lengthに変換する | |
*/ | |
private static function int2HexLen($l,$off) | |
{ | |
if($l<56){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FreakKeyPointTest extends AwtSketch{ | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) | |
{ | |
try { | |
new FreakKeyPointTest().run(); | |
} catch (Exception e) { | |
// TODO Auto-generated catch block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name mbedIDE Theme - Nyatlan Black | |
// @namespace http://nyatla.jp | |
// @include https://developer.mbed.org/compiler/* | |
// @version 3 | |
// @grant none | |
// ==/UserScript== | |
var head_tag=document.getElementsByTagName('head')[0]; | |
var css= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections; | |
using jp.nyatla.nyartoolkit.cs.markersystem; | |
using jp.nyatla.nyartoolkit.cs.core; | |
using NyARUnityUtils; | |
using System.IO; | |
/// <summary> | |
/// AR camera behaviour. |