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
Kei Shiratsuchi
PRO
October 21, 2013
Technology
0
150
Gem #wedding_s
Kei Shiratsuchi
PRO
October 21, 2013
Tweet
Share
More Decks by Kei Shiratsuchi
See All by Kei Shiratsuchi
モノリスとマイクロサービスの橋渡し - ベターからモアベターへ
kei_s
PRO
0
110
なぜ リアーキテクティング専任チームを作ったのか
kei_s
PRO
2
1.5k
実践 Rails アソシエーションリファクタリング / Rails association refactoring in practice
kei_s
PRO
8
8.9k
「Go言語でつくるインタプリタ」を Rust で移植してみた / "Write An Interpreter In Go" In Rust
kei_s
PRO
1
1.9k
Rust言語で作るインタプリタ / Write An Interpreter In Rust
kei_s
PRO
2
680
育児休業のご報告と、育児グッズとしてのスマートスピーカー / Parental Leave and SmartSpeaker
kei_s
PRO
0
860
「深層学習による自然言語処理」読書会 第6章2.7
kei_s
PRO
0
460
「深層学習による自然言語処理」読書会 第5章5.1
kei_s
PRO
0
460
最近個人的に気になるプログラミング言語おさらい Ruby, Python, Go, Rust, Julia
kei_s
PRO
0
1k
Other Decks in Technology
See All in Technology
React開発にStorybookとCopilotを導入して、爆速でUIを編集・確認する方法
yu_kod
1
270
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
47
19k
freeeのアクセシビリティの現在地 / freee's Current Position on Accessibility
ymrl
2
180
整頓のジレンマとの戦い〜Tidy First?で振り返る事業とキャリアの歩み〜/Fighting the tidiness dilemma〜Business and Career Milestones Reflected on in Tidy First?〜
bitkey
2
16k
United airlines®️ USA Contact Numbers: Complete 2025 Support Guide
unitedflyhelp
0
310
Lufthansa ®️ USA Contact Numbers: Complete 2025 Support Guide
lufthanahelpsupport
0
190
2025 AWS Jr. Championが振り返るAWS Summit
kazukiadachi
0
110
Flutter向けPDFビューア、pdfrxのpdfium WASM対応について
espresso3389
0
130
Zephyr RTOSを使った開発コンペに参加した件
iotengineer22
1
220
Delta airlines Customer®️ USA Contact Numbers: Complete 2025 Support Guide
deltahelp
0
680
関数型プログラミングで 「脳がバグる」を乗り越える
manabeai
1
190
united airlines ™®️ USA Contact Numbers: Complete 2025 Support Guide
flyunitedhelp
1
300
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
223
9.7k
Facilitating Awesome Meetings
lara
54
6.4k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Speed Design
sergeychernyshev
32
1k
Rails Girls Zürich Keynote
gr2m
95
14k
The Pragmatic Product Professional
lauravandoore
35
6.7k
RailsConf 2023
tenderlove
30
1.1k
A designer walks into a library…
pauljervisheath
207
24k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
The Cult of Friendly URLs
andyhume
79
6.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
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 ͯ͠ਖ਼͍͠ϑΝΠϧύεʹ͢Δɻ
ͬͯΈͨ