Skip to content

Instantly share code, notes, and snippets.

@mechamogera
mechamogera / index.html
Last active Feb 29, 2016
Pepperのイベントをjavascriptで受け取る(localサーバーからだとできなくてS3に配置するとできた)
View index.html
<html>
<head>
<meta charset="UTF-8" />
<title>Pepper event catch test</title>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="libs/qimessaging/1.0/jquery.min.js"></script>
<script src="libs/qimessaging/1.0/qimessaging.js"></script>
<script>
var session = new QiSession("10.247.85.167");
@mechamogera
mechamogera / Readme.md
Created Feb 26, 2016
Webカメラの映像をgoogle cloud visionに送信サンプル
@mechamogera
mechamogera / index.html
Created Feb 25, 2016
CCVでWebカメラ画像認識サンプル
View index.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Webカメラの映像をface++に送信</title>
</head>
<body>
<h2>Video</h2>
<video id="camera" autoplay></video>
<h2>Canvas</h2>
<canvas id="canvas"></canvas>
@mechamogera
mechamogera / basic_awareness.py
Created Feb 5, 2016
PepperのBasicAwarenessをオン、オフするスクリプトサンプル
View basic_awareness.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import sys
from naoqi import ALProxy
def on(args, bap):
bap.startAwareness()
bap.setEngagementMode("Unengaged")
@mechamogera
mechamogera / OrbitControls.js
Last active Jul 13, 2019
THETAのDualfisheye動画をthree.jsで視聴するためのサンプル
View OrbitControls.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
/*global THREE, console */
// This set of controls performs orbiting, dollying (zooming), and panning. It maintains
@mechamogera
mechamogera / index.html
Last active Dec 2, 2015
three.jsテスト
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>get started with three.js</title>
</head>
<body>
<script src="http://threejs.org/build/three.min.js"></script>
<script src="http://threejs.org/examples/js/controls/OrbitControls.js"></script>
@mechamogera
mechamogera / Gemfile
Last active Aug 29, 2015
AssumeRoleテスト用のS3アップロードスクリプト
View Gemfile
# A sample Gemfile
source "https://rubygems.org"
gem 'aws-sdk', '< 2.0'
@mechamogera
mechamogera / receving-mail-server.json
Last active Dec 18, 2018
メール受信環境を構築するCloudFormationテンプレート
View receving-mail-server.json
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Mail server for receiving",
"Parameters" : {
"MailServerDomain" : {
"Type" : "String",
"Default" : "mail.example.com",
"Description" : "mail server domain"
},
@mechamogera
mechamogera / Gemfile
Last active Aug 29, 2015
CloudWatch LogsのGroupから一括でLogを取得するスクリプト
View Gemfile
# A sample Gemfile
source "https://rubygems.org"
gem 'trollop'
gem "json"
gem "aws-sdk-core"