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
RatingWatch
Search
Shu Kakihana
April 18, 2017
Programming
96
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RatingWatch
学校の授業で発表したやつの公開版です
Shu Kakihana
April 18, 2017
More Decks by Shu Kakihana
See All by Shu Kakihana
第28回高専プロコン競技部門に出場しました
kurokoji
0
83
Vimのはなし(LT)
kurokoji
1
150
競プロのおはなし
kurokoji
0
130
冴島清美が最近キてる
kurokoji
1
140
Q:忍野忍ですか? A:いいえ,工藤忍です
kurokoji
0
730
Other Decks in Programming
See All in Programming
The Rails Doctrine Decade
koic
2
590
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
カツオ、ご期待ください
suneo3476
0
190
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
380
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
910
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Ethics towards AI in product and experience design
skipperchong
2
430
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Git: the NoSQL Database
bkeepers
PRO
433
67k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Being A Developer After 40
akosma
92
590k
Mobile First: as difficult as doing things right
swwweet
225
10k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Transcript
RatingWatch Kurokoji,mito,Luz,nemusou
競技プログラミング ご存知ですか?
数学的な問題などを プログラミングによって正確に解く
情報オリンピックがその一例
他にどんなの?
AtCoder • AtCoder(https://atcoder.jp/) • 大体週一回にコンテストが開かれる(日本語/英語) • コンテストの結果によってレートが変動する
None
競プロerは勝負の世界に生きている • 世界中で競プロは行われている • 順位やレートで他の人よりも上に行くために日々精進
競プロerは勝負の世界に生きている • 世界中で競プロは行われている • 順位やレートで他の人よりも上に行くために日々精進 ➢ ライバルとレート比較すればさらに向上心が…?
RatingWatch
機能 • AtCoderでの今までのレート,現在レート等取得 • 最大二人まで同時にグラフ表示可能 • 今こいつに勝ってる,負けてるというのがひと目でわかる • Tweet機能実装済み
実演
楽したところ • Bootstrap というCSSフレームワークを使うといい感じになった • Chart.js を用いたグラフ表示 • jquery.xdomainajax.js を用いたスクレイピング
大変だったこと • AtCoderにはUser情報を取得できる公式APIが存在しない • そこでUserのページからJSONを抽出した(スクレイピング) • Jquery.xdomainajax.js を使用して抽出を試みるも,<script>タグ の部分が取得できなかった •
コードを見ると<script>タグの部分だけ削除するようにされていた • 該当部分を削除すると取得できた • 非同期処理なので色々と大変 • 2人のグラフ表示
最後に • 視覚的に刺激があるのでJavascript面白い • だけど非同期処理の闇めっちゃ深そう • もしかしたらWebに公開するかも(追記:公開しました) • https://kurokoji.github.io/RatingWatch