Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Gem #wedding_s
Search
Kei Shiratsuchi
PRO
October 21, 2013
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Gem #wedding_s
Kei Shiratsuchi
PRO
October 21, 2013
Transcript
31 slides
͖ͳ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 ͯ͠ਖ਼͍͠ϑΝΠϧύεʹ͢Δɻ
ͬͯΈͨ
More Decks by Kei Shiratsuchi
See All by Kei Shiratsuchi
モノリスとマイクロサービスの橋渡し - ベターからモアベターへ
kei_s
PRO
0
150
なぜ リアーキテクティング専任チームを作ったのか
kei_s
PRO
2
1.7k
実践 Rails アソシエーションリファクタリング / Rails association refactoring in practice
kei_s
PRO
8
10k
「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
830
育児休業のご報告と、育児グッズとしてのスマートスピーカー / Parental Leave and SmartSpeaker
kei_s
PRO
0
910
「深層学習による自然言語処理」読書会 第6章2.7
kei_s
PRO
0
510
「深層学習による自然言語処理」読書会 第5章5.1
kei_s
PRO
0
520
最近個人的に気になるプログラミング言語おさらい Ruby, Python, Go, Rust, Julia
kei_s
PRO
0
1.1k
Other Decks in Technology
See All in Technology
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
120
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
310
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
110
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
Is the Website Dying?
miriamschwab
0
190
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
1
670
20261119_AgentCore
takuyay0ne
2
300
技術書典で本を売る流れ
yoshimura_datam
0
160
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
280
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
280
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
500
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
610
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
160
Documentation Writing (for coders)
carmenintech
77
5.7k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Git: the NoSQL Database
bkeepers
PRO
433
67k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k