Skip to content

Instantly share code, notes, and snippets.

@atinfinity
atinfinity / oclMat_custom_kernel2.cpp
Created February 18, 2015 13:48
sample code to execute custom OpenCL kernel on OpenCV 2.4.9
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/ocl/ocl.hpp>
// cl_mem構造体を参照するためにインクルード
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
@UnaNancyOwen
UnaNancyOwen / PCLVisualizer1.cpp
Last active November 7, 2017 07:44
Drawing the Point Cloud using PCLVisualizer with Kinect v2 Grabber
// Disable Error C4996 that occur when using Boost.Signals2.
#ifdef _DEBUG
#define _SCL_SECURE_NO_WARNINGS
#endif
#include "kinect2_grabber.h"
#include <pcl/visualization/pcl_visualizer.h>
template <typename PointType>
class Viewer
@hiroki-o
hiroki-o / AttachSpringBone.cs
Created December 15, 2017 10:47
UnityChan Dynamic Setup
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine.AssetGraph;
using UnityChan;
@kankikuchi
kankikuchi / NameGenerationWindow.cs
Last active August 10, 2018 10:19
日本語から変数や関数名を生成するエディタ拡張【Unity】【エディタ拡張】
// NameGenerationWindow.cs
// http://kan-kikuchi.hatenablog.com/entry/NameGenerationWindow
//
// Created by kan.kikuchi on 2017.12.10.
using UnityEditor;
using UnityEngine;
using UnityEngine.Networking;
using System;
using System.Collections;
@sh-akira
sh-akira / RestartOnStop.cs
Last active September 11, 2018 07:02
UnityエディタでStopしたときにエディタを再起動するエディタ拡張です
//
// Unity Restart Editor On Stop
// @sh_akira
// Put this file to Assets/Editor/
//
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
@shichiE
shichiE / AnimationClipSmoother.cs
Created September 17, 2018 10:58
AnimatinClipのカーブのスパイクを均すエディタ拡張
// 自由に使ってどうぞ
// [Edit]フォルダに入れてメニューの[Animation Clip Smoother]-[Open]を選択するとウィンドウが表示される。
// 編集するAnimationClipを選択後、編集するカーブを選択して[実行]ボタンを押す。
using UnityEditor;
using UnityEngine;
public class AnimationClipSmoother : EditorWindow
{
/// <summary>
xcargs = ""
xcargs += " IDEBuildOperationMaxNumberOfConcurrentCompileTasks=16"
xcargs += " GCC_GENERATE_DEBUGGING_SYMBOLS=NO DEBUG_INFORMATION_FORMAT=dwarf"
xcargs += " ONLY_ACTIVE_ARCH=YES VALID_ARCHS=arm64"
xcargs += " CC=\"ccacheclang\" GCC_PRECOMPILE_PREFIX_HEADER=NO" if File.exist?("/usr/local/bin/ccacheclang")
@mao-test-h
mao-test-h / ProgressBarDrawer.cs
Created February 21, 2019 18:48
Inspectorにプログレスバーを表示する奴のサンプル
// usage:
// [SerializeField] [ProgressBar] float _sample;
// [SerializeField] [ProgressBar("hoge")] float _sample;
// [SerializeField] [ProgressBar(0f, 1f)] float _sample;
// [SerializeField] [ProgressBar(0f, 1f, "hoge")] float _sample;
namespace Sample
{
using System;
using UnityEngine;
@UnaNancyOwen
UnaNancyOwen / Qt5.5.md
Last active June 5, 2020 03:12
Building Qt with Visual Studio

Building Qt5.5 with Visual Studio

Download

  1. Qt 5.5.1(qt-everywhere-opensource-src-5.5.1.zip)をダウンロードしてファイルを解凍する。(C:\qt-everywhere-opensource-src-5.5.1)
    http://www.qt.io/download/

  2. jom 1.1.0(jom_1_1_0.zip)をダウンロードしてファイルを解凍する。(C:\jom)
    http://download.qt.io/official_releases/jom/

@heppoko
heppoko / ugui_optimize.md
Last active August 24, 2020 23:11
Unity uGUI 最適化マニアックス(仮)の目次的なメモ

基礎知識

  • Profiler
  • Frame Debugger
  • ガベージコレクション
  • リソースの解放
  • uGUI のソースコード

Canvas