

複数端末でログインできてデータも同期しつつ、パソコンでも使えるチャットアプリって意外とない▼「振り込め詐欺」の新名称募集について :警視庁
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
<title>サンプル</title>
</head>
<body>
<div data-role="page" id="foo">
<div data-role="panel" id="mypanel">
<p>パネル</p>
<p>中身</p>
</div>
<div data-role="header" data-position="fixed">
<h1>ヘッダー</h1>
</div>
<div data-role="content">
コンテンツ
<a href="#" data-role="button" data-icon="star"
data-theme="b">ボタン</a>
<a href="#mypanel" data-role="button">パネル</a>
<a href="#popupBasic" data-rel="popup" data-role="button"
data-transition="pop">ポップアップ</a>
<div data-role="popup" id="popupBasic">
<p>ポップアップ</p><p>中身</p>
</div>
<div data-role="collapsible-set" data-inset="false"
data-content-theme="d">
<div data-role="collapsible">
<h3>アコーディオン</h3>
<p>中身</p>
</div>
<div data-role="collapsible">
<h3>アコーディオン</h3>
<ul data-role="listview">
<li>リスト</li>
<li>リスト</li>
<li>リスト</li>
</ul>
</div>
<div data-role="collapsible">
<h3>アコーディオン</h3>
<p>中身</p>
</div>
</div>
</div>
<div data-role="footer" data-id="foo1" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="#bar">リンク</a></li>
<li><a href="#bar">リンク</a></li>
<li><a href="#bar">リンク</a></li>
</ul>
</div>
</div>
</div>
<div data-role="page" id="bar">
<div data-role="header">
<h1>マルチページ</h1>
</div>
<div data-role="content">
<a href="#foo" data-role="button" data-icon="check">戻る</a>
</div>
</div>
</body>
</html>
| 0 | tweet_id |
| 1 | in_reply_to_status_id |
| 2 | in_reply_to_user_id |
| 3 | retweeted_status_id |
| 4 | retweeted_status_user_id |
| 5 | timestamp |
| 6 | source |
| 7 | text |
| 8- | expanded_urls |
(0) 196963653910675456 (1) 196962499604643840 (2) 54396210 (3) - (4) - (5) 2012-04-30 14:06:09 +0000 (6) <a href="http://stone.com/Twittelator" rel="nofollow">Twittelator</a> (7) @TanakaApple ついでに「すぐに家に帰ってしまう区」も考えてください
(0) 196078945374965760 (1) - (2) - (3) 196076541166354432 (4) 5329012 (5) 2012-04-28 03:30:38 +0000 (6) <a href="http://stone.com/Twittelator" rel="nofollow">Twittelator</a> (7) RT @pinkmac: 【速報】夫のこども手当使い込み疑惑が浮上
(0) 80072148634447873 (1) - (2) - (3) - (4) - (5) 2011-06-13 00:41:02 +0000 (6) <a href="http://twitter.com/tweetbutton" rel="nofollow">Tweet Button</a> (7) 愛知学院大学歯学部付属病院小児科にあるそう http://t.co/Hlfukd6 > 歯医者に置いてあるドラえもんが怖すぎる件... http://t.co/wGeRw9v (8) http://chalow.net/2007-06-25-3.html (9) http://twitpic.com/5aehqd
#!/usr/bin/perl
use strict;
use warnings;
my $all = join("", <>);
$all =~ s/([^"])\n/$1 /g;
foreach (split(/\n/, $all)) {
my @c = split_csv($_);
print join("\n", map {"($_) $c[$_]"}
grep {$c[$_] ne '"'} 0..$#c)."\n";
}
sub split_csv {
my ($s) = @_;
$s =~ s/""/\x07\x08/g;
my @rv = ("$s," =~ /("[^"]+"|[^,]+|),/g);
return map {s/^"(.*)"$/$1/g; s/\x07\x08/"/g; $_} @rv;
}
% ./tweetscsv.pl tweets.csv
(0) 37441352706826240 (5) 2011-02-15 09:21:28 +0000 (6) <a href="http://tou.ch/" rel="nofollow">ロケタッチ(loctouch)</a> (7) おうちにむかう @ 東京メトロ日比谷線 恵比寿駅にタッチ! http://tou.ch/VOYsCz (0) 37365786729254912 (5) 2011-02-15 04:21:12 +0000 (6) <a href="http://www.hatena.ne.jp/guide/twitter" rel="nofollow">Hatena</a> (7) きのこる先生 / http://f.hatena.ne.... - 2008年の抱負 - yto - はてなハイク http://htn.to/PkN5LY (0) 37365231462264832 (3) 36344413101760512 (4) 207566268 (5) 2011-02-15 04:19:00 +0000 (6) web (7) RT @aknmssm: なんでも文末に「大手メディアはなぜ報じないのだろう?」とつけるといきなり社会派なツイートになる運動を実施しています。この運動をなぜ大手メディアは報じないのか。
| 順位 | 回数 | source |
|---|---|---|
| 1 | 5119 | web |
| 2 | 3828 | twitterfeed |
| 3 | 3582 | Twittelator |
| 4 | 2446 | Flickr |
| 5 | 2066 | Hatena |
| 6 | 970 | movatwitter |
| 7 | 965 | Twittelator |
| 8 | 763 | |
| 9 | 754 | Buffer |
| 10 | 724 | NatsuLiphone |
% ./tweetscsv.pl tweets.csv | grep '^(6)'| cut -c5- | sort | uniq -c | sort -nr | head -20
| 全ツイート数 | 105959 |
| リプライ率 | 0.016 (1.6%) = 1712/105959 |
| 公式RT率 | 0.013 (1.3%) = 1378/105959 |
% ./tweetscsv.pl tweets.csv | wc -l 105959 % ./tweetscsv.pl tweets.csv | grep '^(3) [1-9]'| wc -l 1712 % ./tweetscsv.pl tweets.csv | grep '^(1) [1-9]'| wc -l 1378
| 順位 | 回数 | User ID | ScreenName |
|---|---|---|---|
| 1 | 68 | 10228272 | @YouTube |
| 2 | 67 | 15315186 | @riskyspeeder |
| 3 | 51 | 2067431 | @yto |
| 4 | 48 | 14512408 | @yozora2 |
| 5 | 45 | 16323986 | @mirai2008 |
| 6 | 34 | 2067291 | @kogure |
| 7 | 30 | 7178212 | @wada_akiko |
| 8 | 24 | 5550762 | @yomoyomo |
| 9 | 22 | 14484428 | @makipapa |
| 10 | 21 | 69835788 | @erumoamere |
% ./tweetscsv.pl tweets.csv | grep '^(2) [0-9]'| cut -c5- | sort | uniq -c | sort -nr | head
| 順位 | 頻度 | 単語(名詞) |
|---|---|---|
| 18 | 1038 | とら |
| 25 | 827 | 恵比寿 |
| 26 | 769 | iPhone |
| 28 | 688 | ブログ |
| 42 | 372 | 発言小町 |
| 43 | 371 | 妻 |
| 45 | 364 | 私 |
| 48 | 345 | 朝 |
| 49 | 342 | 東京 |