Skip to content

Instantly share code, notes, and snippets.

@Shusei-E
Shusei-E / git.migrate
Created March 6, 2019 14:45 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/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.
@Shusei-E
Shusei-E / coefficent_plot_walkthrough.R
Created July 4, 2016 11:39 — forked from dsparks/coefficent_plot_walkthrough.R
A coefficient plot for multiple models
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:
@Shusei-E
Shusei-E / .gvimrc
Last active November 2, 2016 17:18 — forked from m-note/.vimrc
Vimの設定ファイル
" 起動時のウィンドウサイズの変更
set lines=56
set columns=105
% 横に並べる
% cf. http://tex.stackexchange.com/questions/232259/adding-captions-to-aligned-images-in-beamer
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}[onlytextwidth]
@Shusei-E
Shusei-E / beamer_template_citation.tex
Last active April 25, 2017 09:54 — forked from m-note/beamer_template_default.tex
1つ目がもっともベーシックなもの、2つ目はProgress Dotsを表示させるもの。
\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
@Shusei-E
Shusei-E / graduation_thesis.tex
Last active January 12, 2018 17:24 — forked from m-note/graduation_thesis.tex
卒論などの長い論文用
\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}
@Shusei-E
Shusei-E / report_template.tex
Last active June 17, 2022 02:31 — forked from m-note/report_template.tex
Texレポートテンプレート
\documentclass[a4paper,10.5pt,uplatex]{jsarticle}
%--脚注の設定
\usepackage{natbib}
\bibpunct[, ]{(}{)}{;}{and}{}{,} %本文での引用の体裁はここで整えられるみたい
\bibliographystyle{apsr2006Edited}
\usepackage{amsmath}
%--余白の設定
\usepackage[truedimen,margin=20truemm]{geometry}
%--図の設定
\usepackage[dvipdfmx]{graphicx} % PDFの利用もOKに