Skip to content

Instantly share code, notes, and snippets.

@EsProgram
EsProgram / SceneViewCamera.cs
Last active February 22, 2024 03:41
Unityのカメラ用スクリプト。Sceneビューのようなマウス操作でカメラを移動可能にする。
using UnityEngine;
/// <summary>
/// GameビューにてSceneビューのようなカメラの動きをマウス操作によって実現する
/// </summary>
[RequireComponent(typeof(Camera))]
public class SceneViewCamera : MonoBehaviour
{
[SerializeField, Range(0.1f, 10f)]
private float wheelSpeed = 1f;
@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/

@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