This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 横に並べる | |
% cf. http://tex.stackexchange.com/questions/232259/adding-captions-to-aligned-images-in-beamer | |
\documentclass{beamer} | |
\begin{document} | |
\begin{frame} | |
\begin{columns}[onlytextwidth] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################## | |
# Amazon Linuxでしてみる | |
sudo passwd # とりあえずrootのパスワードを設定 | |
sudo yum install gcc | |
sudo yum install zlib-devel | |
sudo yum install openssl-devel | |
sudo yum install bzip2-devel | |
sudo yum install readline-devel | |
sudo yum -y install make automake gcc gcc-c++ kernel-devel git-core # ビルドツールのインストール |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[report, 10.5pt, a4paper, oneside, openany, dvipdfmx]{jsarticle} | |
%--citation | |
\usepackage[backend=bibtex,notes,isbn=false,short]{biblatex-chicago} | |
\usepackage{filecontents} | |
\addbibresource{ref} | |
\usepackage{endnotes} | |
\let\footnote=\endnote | |
\begin{document} | |
A Sentence 1 \footcite[25]{Lancaster2008}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$\begin{aligned} s_y^2 &= \frac{1}{n} \sum_{i=1}^{n} (y_i - \overline{y})^2 \\ &= {\boldsymbol w}^T S {\boldsymbol w} | |
\end{aligned}$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: " " | |
author: " " | |
output: | |
html_document: | |
toc: false | |
number_sections: true | |
fig_width: 4.5 | |
fig_height: 4.5 | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import httplib2 | |
from lxml import etree | |
import json | |
from io import StringIO | |
import re | |
import unicodedata | |
import time | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import re | |
if __name__ == "__main__": | |
folder = input("Folder pass: ") | |
file_list = os.listdir(folder) | |
os.chdir(folder) | |
for file in file_list: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 実際は with open("downloaded_tag.txt", "r") as file_read: などとして、 | |
# 下のコードでlistになっているところを、file_readに置き換える | |
save_base = "a" | |
file_num = 1 | |
save_path = save_base + "_" + str(1) | |
flag = False | |
while flag == False: | |
check = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
results_df = pd.DataFrame() | |
results_df = results_df.append(pd.DataFrame({ | |
"ID": [user for i in range(len(tweet_list))], | |
"Date": [date.strftime('%Y-%m-%d') for i in range(len(tweet_list))], | |
"Time": tweet_time_list, | |
"Tweet": tweet_list, | |
"Type": tweet_type_list}, | |
columns = ['ID', 'Date', 'Time', 'Tweet', 'Type'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title_list.append((element.find_all("h3"))[0].contents) | |
#<a href="http://togetter.com/li/887196"> | |
#<h3 title="TITLE">TITLE</h3> | |
#</a> | |
page_url_list.append((element.find_all("a"))[0]["href"]) | |
#<a href="http://togetter.com/li/887196"> | |
category_temp = element.find_all("a", {"class":"category_link"}) | |
category_list.append(",".join([i.contents[0] for i in category_temp])) |
NewerOlder