This file contains hidden or 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
#include <opencv2/opencv.hpp> | |
int main() | |
{ | |
cv::VideoCapture cap( "http://10.5.5.9:8080/live/amba.m3u8" ); | |
cv::namedWindow( "GoPro" ); | |
cv::Mat frame; | |
do { | |
cap >> frame; |
This file contains hidden or 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
#!ruby | |
# | |
# THETAのシャッターをPCから遠隔で切るだけの例 by GOROman | |
# | |
# 参考にしたページ | |
# http://mobilehackerz.jp/contents/Review/RICOH_THETA | |
require 'socket' |
This file contains hidden or 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.Collections; | |
// 草原クラス | |
class WWWWWWWWWWWWWWWWWWWWWWWW : MonoBehaviour { | |
public void wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww() { | |
Debug.Log ( "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww"); | |
} | |
} |
This file contains hidden or 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
# スーパーハカー用プログラム | |
require 'socket' | |
# 開くポート | |
PORT = 5656 # 適当なポート | |
# TCPサーバーになっちゃう | |
TCPServer.open( PORT ) do |server| | |
loop do |
This file contains hidden or 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
Cygwinにしたら解決しました・・・ | |
$ ruby -v | |
ruby 1.9.3p448 (2013-06-27) [x86_64-cygwin] | |
$ twurl -v | |
0.9.1 | |
$ twurl -d 'status=HELLO KARAAGE!' -X POST "/1.1/statuses/update_with_media.json" --file "TEST.png" --file-field "media[]" -t |
This file contains hidden or 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
// 断片 | |
TcpClient tc = new TcpClient(); | |
tc.Connect("api.twitter.com", 80); | |
using (NetworkStream ns = tc.GetStream()) | |
{ | |
System.IO.StreamWriter sw = new System.IO.StreamWriter(ns); | |
System.IO.StreamReader sr = new System.IO.StreamReader(ns); |
This file contains hidden or 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.Collections; | |
public class JoyY : MonoBehaviour { | |
public float power = 0.02f; | |
public Vector3 targetPos; | |
// Use this for initialization | |
void Start () { |
This file contains hidden or 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
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEditor; | |
// Unity にザオリク機能を追加します | |
[InitializeOnLoad] | |
static class Zaoriku | |
{ | |
static Zaoriku() { | |
EditorApplication.playmodeStateChanged += OnPlaymodeChanged; |
This file contains hidden or 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
// Tracking State を得る | |
OVR.ovrTrackingState ts = OVRDevice.HMD.GetTrackingState(); | |
// ポジショントラッキング されているか? | |
if ( (ts.StatusFlags & (uint)OVR.ovrStatusBits.ovrStatus_PositionTracked ) != 0 ) { | |
// ポジショントラッキング範囲内 | |
print( "Tracking!" ); | |
} |
This file contains hidden or 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
Shader "Custom/Kamaitachi" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { "Queue" = "Transparent" } | |
Stencil { | |
Ref 1 | |
Comp always |
OlderNewer