Skip to content

Instantly share code, notes, and snippets.

View abarth500's full-sized avatar

Shohei Yokoyama abarth500

  • Tokyo Metropolitan University
  • Tokyo Japan
View GitHub Profile
@abarth500
abarth500 / gist:3a8d8b6de61177b25604
Last active August 29, 2015 14:23
ソーシャルビッグデータ演習:クローリング結果の格納ファイル
[Stop by user]
Result is stored into C:\Users\Foo\Flickr-Tag-Crawler\test/result/car_train_NyHZ6SNw.txt
@abarth500
abarth500 / gist:26741e9269253cf205d0
Last active December 29, 2015 01:06
ソーシャルビッグデータ演習:クローラの実行
node execute.js car train -122.28,33.27,-113.43,42.26 -6.52,49.81,2.32,58.79
@abarth500
abarth500 / gist:f5ef3d49c1f863f73496
Last active December 29, 2015 00:41
ソーシャルビッグデータ演習:クローラのインストール
cd c:\sobig\
npm install flickr-tag-crawler
@abarth500
abarth500 / gist:071a69bc03f8e150a0f0
Last active June 28, 2016 01:16
[CS実験I] PHPのインストール
#phpをインストール
sudo dnf install php
#Apache(Webサーバ)を再起動
sudo systemctl restart httpd
@abarth500
abarth500 / gist:08ea3354502ef20a4f8d
Created December 2, 2014 00:58
[データベースシステム論] 試行課題3
--試行課題3
---以下の2つの問い合わせの意味の違いを考えよ
--一番安いワインを得る問い合わせ その1
SELECT * FROM wine ORDER BY price LIMIT 1;
--一番安いワインを得る問い合わせ その2
SELECT * FROM wine
WHERE price= (
SELECT min(price) FROM wine);
@abarth500
abarth500 / gist:170f4d1ff18414a050ba
Created December 2, 2014 00:57
[データベースシステム論] 試行課題2
--試行課題2
---以下の三つのSQLを試してみて、結果からそれぞれの問い合わせの意味・違いを考えよう。
--右結合
SELECT wid, name, district, price
FROM wine LEFT JOIN vineyard
ON wine.did = vineyard.did;
--左結合
SELECT wid, name, district, price
sudo vim /root/credentials_nas.txt
#書き込む内容は下のcredentials_nas.txtを参照せよ
#作成終わったらパーミッションをrootのみに限定する
sudo chown root:toot /root/credentials_nas.txt
sudo chmod 600 /root/credentials_nas.txt
@abarth500
abarth500 / gist:73728115e40a819956dc
Last active August 29, 2015 14:09
Flickr Photostream Datasetから「特定のエリアのデータ全て」を「1つのディレクトリ」へコピーする
find /drobo/yokolab/dataset/flickr_yokoyama/NewYork/ -name "*.geojson" -type f -print0 | xargs -0 -i% cp % ./NewYork
{
"dateupload":1364826240, /*当該ユーザのdateupload最大値*/
"type":"LineString", /*geojson形式準拠の為*/
"coordinates":[ /*[経度,緯度]の配列*/
[-67.55418,46.976475],
[-76.798982,18.000203],
....以後続く
],
"photos":[
[
@abarth500
abarth500 / gist:a7620b007dd759b636ad
Last active August 29, 2015 14:09
[データベースシステム論] 第6回 SQL例文
--p.14
CREATE TABLE users (
user_id integer,
namn varchar(30) NOT NULL,
PRIMARY KEY (user_id)
);
CREATE TABLE birthday (
user_id integer,
barthday date NOT NULL,
FOREIGN KEY (user_id)