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
Gem #wedding_s
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kei Shiratsuchi
PRO
October 21, 2013
Technology
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Gem #wedding_s
Kei Shiratsuchi
PRO
October 21, 2013
More Decks by Kei Shiratsuchi
See All by Kei Shiratsuchi
モノリスとマイクロサービスの橋渡し - ベターからモアベターへ
kei_s
PRO
0
130
なぜ リアーキテクティング専任チームを作ったのか
kei_s
PRO
2
1.7k
実践 Rails アソシエーションリファクタリング / Rails association refactoring in practice
kei_s
PRO
8
9.9k
「Go言語でつくるインタプリタ」を Rust で移植してみた / "Write An Interpreter In Go" In Rust
kei_s
PRO
1
2.1k
Rust言語で作るインタプリタ / Write An Interpreter In Rust
kei_s
PRO
2
810
育児休業のご報告と、育児グッズとしてのスマートスピーカー / Parental Leave and SmartSpeaker
kei_s
PRO
0
900
「深層学習による自然言語処理」読書会 第6章2.7
kei_s
PRO
0
490
「深層学習による自然言語処理」読書会 第5章5.1
kei_s
PRO
0
500
最近個人的に気になるプログラミング言語おさらい Ruby, Python, Go, Rust, Julia
kei_s
PRO
0
1.1k
Other Decks in Technology
See All in Technology
Type-safe IaC for Dart
coborinai
0
180
Playwright × AI Agent でE2Eテストはどう変わるか AI駆動テストの可能性と実用検証の結果
taiga7543
2
790
Aurora MySQL 8.4リリース! Rubyistが備えること / what-rubyist-should-prepare-for-aurora-mysql-8-4
fkmy
0
630
AI、CDK と協働する Full TypeScript アプリケーション開発 / Full TypeScript Application with AI and CDK
geekplus_tech
2
480
Amplify Gen2でbackend.tsにCDKを定義する/しない事によるCDKの挙動の違いとユースケース
smt7174
1
490
どこまでAIに任せるか 〜確率論と決定論の境界決定〜
shukob
0
440
AI Native なプロダクト組織の立ち上げ方 : 生産性 100 倍への挑戦
mikesorae
0
1.2k
全社でのソフトウェアサプライチェーン攻撃対策をやってみた with Takumi Guard
z63d
0
270
それでも、技術なブログを書く理由 #kichijojipm / Why I Still Write Tech Blogs Even Now
shinkufencer
0
330
アップデートで何が変わった?デモで学んで使いこなすIBM Bob2.0
muehara
0
230
AI_Dev_Day_製造業領域でのAI活用から見た活用の罠と成功に導く実践知.pdf
kintotechdev
0
160
Jitera Company Deck
jitera
0
270
Featured
See All Featured
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
260
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
420
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
330
Evolving SEO for Evolving Search Engines
ryanjones
0
240
Prompt Engineering for Job Search
mfonobong
0
380
Unsuck your backbone
ammeep
672
58k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
350
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
420
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
30 Presentation Tips
portentint
PRO
1
350
The Language of Interfaces
destraynor
162
27k
Transcript
͖ͳHFN ͘͠ ๅੴ ԿͰ͔͢ʁ നܛ
None
None
(FN
None
None
ͷ ϓϩάϥϛϯάݴޠ 3VCZ ศརΞΠςϜ
ྫ
8FC ΞϓϦ
sinatra require 'sinatra' get '/hi' do '͜ΜʹͪΘੈք' end
sinatra
ྫ
)5.- ղੳ
None
nokogiri require 'nokogiri' require 'open-uri' html = open('https://twitter.com/kei_s') doc =
Nokogiri::HTML(html) doc.css('.tweet-text').each do |e| puts e.text end
nokogiri ࣗ࡞ۀEBZ !FJLPN͋Γ͕ͱ͏͍͟͝·͢ʂ ఱؾྑ͍Ͱ͢ XJUIZVLBBUࡾܢԂ 4BOLFJFO(BSEFO <QJD>IUUQTQBUIDPNQ). ே͝Μ͔ͬ͠Γ৯ͨ ʔɺNBDͷPQFOίϚϯυͷBΦϓγϣϯศརͩͬͨ͠[TIͷิͰBQQΛީิʹͯ͠ WJNZUVUPSͳ͍ͷ
4BJOU1FQTJͷCBOEDBNQͷΞϧόϜ͕͜ͱ͝ͱ͘ങ͑ͳͯ͘ࠔΔ !TIJSBZVDB͋ʔͬɺ͍ʜʂ !GSLPVUʔ͍͋Γ͕ͱ͏ʂ·ͨͶʙ !GSLPVU͍ʔ͍ʂਲͬͯΔ͠ձ͍͍ͨͥʂ !GSLPVU࣌͠Ҏ߱ʹҿΜͰͨΒͥͻҿ͏ͥʙɻҿΊΔʁ !GSLPVU!TIJSBZVDB͍ΔΑ OHJOYXMVBͬͯΈ͚ͨͲ͍͚Δ͔ͳ !TIJSBZVDBͳΜͱ ೋਓ͚ͯͬ͜͠͏͓ञҿΜͰ͓Ոʹؼ͖ͬͯͨΒɺਲͬͯΔײ͋Δͻͱ͕ɺʮʔɺࠃഁΕͯ
(FN
ͷ ϓϩάϥϛϯάݴޠ 3VCZ ศརΞΠςϜ
None
ͷ ศརΞΠςϜ ͭΊ͋Θͤ
Gemfile # A sample Gemfile source "http://rubygems.org" gem "gems" gem
"sqlite3" gem "sequel" gem "activerecord" gem "awesome_print" gem "tapp" gem "gnuplot"
None
None
ΈΜͳͷ ͖ͳ(FN ͘͠ๅੴ Λ ͭΊ͋Θ͍ͤͨ
ͬͯΈͨ
ಈ͔ͳ͍
ͦΜͳ (FN ͳ͍
Ͱ ಈ͔͍ͨ͠
ແཧཧ Δ
w geminaboxΛͬͯϩʔΧϧϚγϯʹgemαʔόΛཱͯΔɻ w ϚϧνόΠτͷ໊લͷgemΛ࡞Δɻ۩ମతʹgemspecϑΝΠϧ ͚ͩ࡞ͬͯϏϧυ͢Δɻ w bundleίϚϯυ͕ϚϧνόΠτ໊ͷgemΛఆͯ͠ͳ͍ͷͰϞϯ ΩʔύονΛͯΔɻ w GemfileΛinstance_eval͢ΔࡍʹɺgemϝιουʹΔจ
ࣈྻΛforce_encoding(“UTF-8”) ͢Δɻ w gem αʔόʹґଘؔͷϦΫΤετΛ͛Δࡍʹ spec_file_name Λ URI.encode ͢Δɻ w gem ϥΠϒϥϦ͕ϚϧνόΠτ໊ͷ gem Λఆ͍ͯ͠ͳ͍ͷͰϞ ϯΩʔύονΛͯΔɻ w gem αʔό͔Βμϯϩʔυ͢ΔϦΫΤετΛ͛Δࡍʹ gem_file_name Λ URI.encode ͢Δɻ w geminabox ϚϧνόΠτ໊ͷ gem Λఆ͍ͯ͠ͳ͍ͷͰϞϯΩ ʔύονΛͯΔɻ w ϦΫΤετΛ URI.decode ͯ͠ਖ਼͍͠ϑΝΠϧύεʹ͢Δɻ
ͬͯΈͨ