Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Siri and Ruby
Search
Ryo Katsuma
June 29, 2013
Programming
0
1k
Siri and Ruby
Ryo Katsuma
June 29, 2013
Tweet
Share
More Decks by Ryo Katsuma
See All by Ryo Katsuma
The past and future of cookpad mart service development
katsuma
0
650
What we learned from our failure at Cookpad Mart to increase the probability of success in product development
katsuma
0
2.8k
Overview and challenge of Cookpad Mart in 2022
katsuma
0
10k
Technology infrastructure and development organization supporting Cookpad Mart
katsuma
0
570
Description of Cookpad Mart for engineers
katsuma
0
1.4k
Rails for backend of fresh EC platform "Cookpad Mart"
katsuma
3
3k
Service development process for Cookpad Mart
katsuma
1
400
What is "engineer to manager" ?
katsuma
13
8k
Problems of Fresh Market's EC
katsuma
0
250
Other Decks in Programming
See All in Programming
今の SmartHR にエンジニアで入社するとどうなるの?
daisukeshinoku
3
2k
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
7
1.9k
Open Source Swiftc Workshop
kitasuke
1
290
品質とスピードを両立: TypeScriptの柔軟な型システムをバックエンドで活用する
kosui
5
1.2k
Material 3で Material 2ぽい見た目にする
numeroanddev
2
250
OpenTelemetry のサービスという概念について
azukiazusa1
1
410
htmx is fun!
codehex
2
190
ONE WEDGE_Company_Information
1wedge
0
180
上手な探索的テストとその上達方法について
matsu802
4
660
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
530
IntelliJ IDEA を知らなかった 自分に教えたい小ネタ集 / IntelliJ IDEA Hints for My Past Self
mackey0225
3
180
incrementalモデルの理解を深める
ikkimiyazaki
2
640
Featured
See All Featured
A Tale of Four Properties
chriscoyier
150
22k
A designer walks into a library…
pauljervisheath
199
23k
Thoughts on Productivity
jonyablonski
57
3.8k
The Power of CSS Pseudo Elements
geoffreycrofte
58
4.9k
How To Stay Up To Date on Web Technology
chriscoyier
781
250k
GraphQLの誤解/rethinking-graphql
sonatard
48
9.1k
Facilitating Awesome Meetings
lara
39
5.5k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
19
1.6k
The Art of Programming - Codeland 2020
erikaheidi
40
12k
Rebuilding a faster, lazier Slack
samanthasiow
72
8.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
240
1.2M
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
1
3.3k
Transcript
Siri and Ruby TokyuRubyKaigi06 @ryo_katsuma
Hello!! Tokyu Ruby Kaigi
Ryo Katsuma @ryo_katsuma Engineer at COOKPAD Inc. github.com/katsuma twitter.com/ryo_katsuma
http://www.flickr.com/photos/superstarjet/2373405653/ Thank you, SUNTRY !!
͕ɺ͔͠͠
ਖ਼ɺ ਲͬͺΒͬͨɻ
खݩ͕͓΅͔ͭͳ͍
Α͘Θ͔ΒΜ 3FCMPHͪ͠Ό͍ͦ͏
ͰɺϏʔϧ ͖ͩɻ
టਲͯͯ͠ ৗੜ׆Λ ΞϨίϨ͍ͨ͠
Break through?
Siri
You just say something
Siri solves all problems
None
+
+ Ruby makes Siri more cool
None
SiriProxy
Siri plugin by simple regexp
I say ‘GO’, You says ‘Stop’
class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed
end end
class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed
end end
class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed
end end very simple!
DNS setting SiriProxy
DNS setting SiriProxy
DNS setting SiriProxy
DNS setting SiriProxy Siri Server
DNS setting SiriProxy Siri Server
Demo 1
Turn on the screen saver https://github.com/katsuma/SiriProxy-Screen
None
def run_screen_saver `/System/Library/Frameworks/ScreenSaver.framework /Resources/ScreenSaverEngine.app /Contents/MacOS/ScreenSaverEngine` end
class SiriProxy::Plugin::Screen < SiriProxy::Plugin listen_for /ը໘Λ?(ফͯ͠|͚ͯ͠)/ do say 'εΫϦʔϯηʔόʔΛىಈ͠·͢' run_screen_saver
request_completed end end
Demo 2
Turn on/off the light https://github.com/katsuma/SiriProxy-iRemcon
None
iRemocon
Multi remote control with IP address
IP address TCP signal IR
IP address TCP signal Turn on/off the light
Conclusion
Siri + Ruby solves all problems
Have a nice beer!