Skip to content

Instantly share code, notes, and snippets.

View tailriver's full-sized avatar

Shinsuke Ogawa tailriver

View GitHub Profile
@tailriver
tailriver / 1_introduction.tex
Last active December 10, 2015 20:08
makeによるTeX論文作成用タイプセット
\setcounter{chapter}{0}
\chapter{Introduction}
\section{Background}
Lorem ipsum dolor sit amet ...
\section{Purpose}
Lorem ipsum dolor sit amet ...
@tailriver
tailriver / gist:3141139
Created July 19, 2012 06:26
D-optimality
input_file <- commandArgs()[6]
output_file <- commandArgs()[7]
search_max <- as.integer(commandArgs()[8])
M <- data.matrix(read.table(input_file))
nrows <- dim(M)[1]
if (search_max < 1) search_max <- nrows
selected_rows <- rep(0, nrows)
@tailriver
tailriver / HSL_V.dat
Created June 25, 2012 10:33
Schematic Graph of HSL Color Space for certain Vs on ANSYS
! Schematic Graph of HSL Color Space for certain Vs on ANSYS
!
! Requirement:
! ANSYS (FEM software)
!
! Usage:
! File > Read Input from ... [select this file]
! or
! Copy and paste to ANSYS Command Prompt
!
@tailriver
tailriver / .vimrc
Created January 22, 2012 11:09
.vimrc
" References:
" http://www.kawaz.jp/pukiwiki/?vim#cb691f26
" http://archiva.jp/web/tool/vimrc.html
set nocompatible
set number
set ruler
set cmdheight=1
set laststatus=2
@tailriver
tailriver / gist:1651602
Created January 21, 2012 05:48
Bookmarklet of Matrix authorization for Tokyo Tech Portal
javascript:(function(){var c='AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJ';var r=document.body.innerHTML.match(/\[\w,\d\]/g);for(var i=0;i<r.length;i++){document.getElementsByName('message'+(i+3))[0].value=c.charAt(7*(r[i].charCodeAt(1)-String("A").charCodeAt(0))+(r[i].charAt(3)-1));}})();