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
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
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
doInstall <- TRUE | |
toInstall <- c("ggplot2") | |
if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")} | |
lapply(toInstall, library, character.only = TRUE) | |
ANES <- read.csv("http://www.oberlin.edu/faculty/cdesante/assets/downloads/ANES.csv") | |
ANES <- ANES[ANES$year == 2008, -c(1, 11, 17)] # Limit to just 2008 respondents, | |
head(ANES) # remove some non-helpful variables | |
# Fit several models with the same DV: |
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
" 起動時のウィンドウサイズの変更 | |
set lines=56 | |
set columns=105 |
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
\documentclass[11pt, dvipdfmx]{beamer} | |
\usepackage[utf8]{inputenc} | |
%\usetheme{Frankfurt} | |
\usetheme{Darmstadt} | |
\useoutertheme[subsection=false]{miniframes} | |
\AtBeginSection[]{\subsection{}} | |
\setbeamersize{text margin left=11pt,text margin right=11pt} | |
\beamertemplatenavigationsymbolsempty |
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]{jsbook} | |
%--脚注の設定 | |
\usepackage{natbib} | |
\bibpunct[, ]{(}{)}{;}{and}{}{,} %本文での引用の体裁はここで整えられるみたい | |
%--目次に索引以外は出力する cf. http://www.howtotex.com/packages/how-to-add-bibliography-and-more-to-table-of-contents/ | |
\usepackage[notindex, nottoc, notlof, notlot]{tocbibind} | |
%--数式用 | |
\usepackage{amsmath} |
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[a4paper,10.5pt,uplatex]{jsarticle} | |
%--脚注の設定 | |
\usepackage{natbib} | |
\bibpunct[, ]{(}{)}{;}{and}{}{,} %本文での引用の体裁はここで整えられるみたい | |
\bibliographystyle{apsr2006Edited} | |
\usepackage{amsmath} | |
%--余白の設定 | |
\usepackage[truedimen,margin=20truemm]{geometry} | |
%--図の設定 | |
\usepackage[dvipdfmx]{graphicx} % PDFの利用もOKに |