参照サイト
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
<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"); |
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
<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> |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import sys | |
from naoqi import ALProxy | |
def on(args, bap): | |
bap.startAwareness() | |
bap.setEngagementMode("Unengaged") |
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
module AWSOperation | |
def self.get_ec2_events(config = {}) | |
report = [] | |
config[:proxy_uri] ||= ENV['HTTP_PROXY'] || ENV['http_proxy'] | |
ec2 = AWS::EC2.new(config) | |
ec2.regions.each do |region| | |
reg = ec2.regions[region.name] | |
reg.instances.each do |instance| | |
status = reg.client.describe_instance_status({"instance_ids" => [ instance.id ]}) |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "holidays" | |
gem "trollop" | |
gem "rest-client" |
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
# A sample Gemfile | |
source "http://rubygems.org" | |
gem "trollop" | |
gem "aws-sdk" |
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
require 'rubygems' | |
gem 'aws-sdk' | |
require 'aws' | |
require 'optparse' | |
require 'ostruct' | |
require 'time' | |
require 'yaml' | |
require 'csv' | |
options = OpenStruct.new |
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
source "https://rubygems.org" | |
gem "holidays" | |
gem "trollop" | |
gem "rest-client" |