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
// | |
// AVCaptureTestViewController.h | |
// | |
// Created by inobo on 2014/11/15. | |
// Copyright (c) 2014年 private inobo. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import <AVFoundation/AVFoundation.h> |
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
// | |
// AVCaptureTestViewController.m | |
// | |
// | |
// Created by inobo52 on 2014/11/15. | |
// Copyright (c) 2014年 private inobo. All rights reserved. | |
// | |
// この記事に助けられた | |
// http://stackoverflow.com/questions/24842108/capture-video-frames-sample-code-for-ios-7-0-and-up |
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
// | |
// ViewController.h | |
// VoiceTest | |
// | |
// Created by inobo52 on 2014/11/10. | |
// Copyright (c) 2014年 inobo. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "SRClientHelper.h" |
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
// | |
// ViewController.m | |
// VoiceTest | |
// | |
// Created by inobo52 on 2014/11/10. | |
// Copyright (c) 2014年 inobo. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import <AVFoundation/AVFoundation.h> |
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
<?php | |
/* | |
Google Speech APIを利用して | |
音声ファイルー>テキストを返すAPIを作成 | |
参考サイト: | |
Twilio x Google Speech API ブログ | |
http://katsumi-takahashi.blogspot.jp/2013/12/twilio-twiliotranscribe-api-twilio.html | |
Google Speech API – Full Duplex PHP Version |
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
<?php | |
// WebAPI 仕様 | |
// https://dev.smt.docomo.ne.jp/?p=docs.api.page&api_docs_id=71#tag01 | |
// コード参考 | |
// http://www.d-labo.net/laboratory/php/7001.php | |
// http://stackoverflow.com/questions/9412650/how-to-fix-411-length-required-error-with-file-get-contents-and-the-expedia-xml | |
// http://okwave.jp/qa/q8782761.html | |
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
// | |
// ViewController.m | |
// | |
// Created by inobo52 on 2014/09/19. | |
// Copyright (c) 2014年 All rights reserved. | |
// | |
//参考にしたURL | |
//http://iosguy.com/tag/directions-api/ | |
//https://developers.google.com/maps/documentation/directions/?hl=ja#UnitSystems |
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 "open-uri" | |
# nokogiriは既にインストール済み | |
class EventController < ApplicationController | |
# HTML解析に使うメソッド(getDoc, render_json) | |
def getDoc(url) | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset # 文字種別を取得 | |
f.read # htmlを読み込んで変数htmlに渡す |
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
# encoding: utf-8 | |
require "open-uri" | |
require "nokogiri" | |
class Korekae | |
def index | |
url = "http://kizasi.jp/kizapi.py?type=rank" | |
xml = open(url).read | |
doc = Nokogiri::XML(xml) |