huinme / yapcviewer Goto Github PK
View Code? Open in Web Editor NEWViewer app for YAPC Asia 2013
Viewer app for YAPC Asia 2013
なんとなくGA以外の解析ツール試してみたい気分.
お気に入りへの追加の仕方的なもの
10:26 (monmon) 今さらですが、YAPC::ASIAですか?YAPC::Asiaですか?自分で書く時は後者を使っているのだけど、紙ものとかTシャツにはASIAって使ってたりするのでどうなのだろうと思って
10:30 (lestrrat) 基本 YAPC::Asia です
10:30 (lestrrat) デザイン的にそっちのほうがよければ::ASIAでもいいですけど
らしい。
あと、ついでなんだけど、table viewの時の一番上の「YAPC::ASIA 2013」はボタンないからそもそもview自体要らないかも(バランス悪くなるかな?)
セグメントコントロールだと複雑になるので
などなど.
下の画像をちょっと編集して使うか、一旦webviewにして本番までしのぐか
http://www.kcc.keio.ac.jp/floor/floor_2f.html
http://www.kcc.keio.ac.jp/floor/img/map_2f_00.gif
プロフィールイメージとか追加されているので。
talkのidを入れていくだけのEntityを作る予定
こんな感じかなと思ってるけど、viewDidLoadの[self _fetchTalksForDateString:self.eventDays[0]];
時点で0を渡すのではなく日にちの変更も必要だから一旦issueだけ切る
diff --git a/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m b/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m
index 5e25b18..0704445 100644
--- a/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m
+++ b/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m
@@ -87,6 +87,7 @@ static NSString *const kYVTalkListThirdDateString = @"2013-09-21";
- (void)viewWillAppear:(BOOL)animated
{
+ [self _scrollToCurrentSection];
[super viewWillAppear:animated];
}
@@ -185,6 +186,25 @@ static NSString *const kYVTalkListThirdDateString = @"2013-09-21";
return items;
}
+- (void)_scrollToCurrentSection
+{
+ NSDateComponents *cal = [[NSCalendar currentCalendar] components:NSHourCalendarUnit | NSMinuteCalendarUnit
+ fromDate:[NSDate date]];
+ __block NSString *now = [NSString stringWithFormat:@"%02d:%02d", cal.hour, cal.minute];
+ __block NSUInteger targetSection;
+ [self.frController.sections enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
+ if ([now compare:(NSString *)[obj name]] < 0) {
+ *stop = YES;
+ return;
+ }
+
+ targetSection = idx;
+ }];
+
+ NSIndexPath* indexPath = [NSIndexPath indexPathForRow:0 inSection:targetSection];
+ [self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
+}
+
Podfile上は最新versionをinstallするようになっている(バージョンを固定していない)ため、
pod updateのタイミングで違うバージョンのものをinstallする可能性がある
例えば19日の詳細のリンクがおかしいなと思っていたのだけどそもそもJSONのデータがmarkdown形式だった。
markdownに対応するの大変だろうし、
[url](url)
の形式なら
url
みたいに変更できればそうする。
時間なければ修正せずそのままでもいいかな。
時間あればその日その時間の所にスクロールして起動すればいいので
そんな大事ではなくのでこのくらいの対応で良さそう
diff --git a/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m b/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m index 8fc6f6f..7bc929f 100644 --- a/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m +++ b/YAPCViewer/Classes/ViewControlleres/YVTalkListViewController.m @@ -171,8 +171,8 @@ static NSString *const kYVTalkListThirdDateString = @"2013-09-21"; NSArray *items = [self.frController fetchedObjects]; - NSString *predicateString = @"title contains[cd] %@ OR title_en contains[cd] %@"; - NSPredicate *predicate = [NSPredicate predicateWithFormat:predicateString, query, query]; + NSString *predicateString = @"title contains[cd] %@ OR title_en contains[cd] %@ OR speaker.name contains[cd] %@ OR abstract.abstract contains[cd] %@"; + NSPredicate *predicate = [NSPredicate predicateWithFormat:predicateString, query, query, query, query]; items = [items filteredArrayUsingPredicate:predicate]; return items;
http://yapcasia.org/2013/info/
を開くようにする
変なところにヘッダーが表示される.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.