Skip to content

Instantly share code, notes, and snippets.

View rinx's full-sized avatar
🍵
Drinking sencha all the time

Rintaro Okamura rinx

🍵
Drinking sencha all the time
View GitHub Profile
@rinx
rinx / fourier.tex
Last active August 29, 2015 14:08
Reproduction of a showcase of TeX
\documentclass{ltjarticle}
% Reproduction of
% http://blog.revolutionanalytics.com/2014/01/the-fourier-transform-explained-in-one-sentence.html
%
\usepackage[paperwidth=10cm, paperheight=5cm]{geometry}
\usepackage[svgnames]{xcolor}
@rinx
rinx / x11forwarding_on_OSX.md
Created October 20, 2014 04:28
X11Forwarding on OSX

OSXからX11を飛ばすときのメモ

OSXにsshしたときにX11Forwardingができなかったので,そのときに変更した点のメモ.

/etc/sshd_configに下記を追記.

X11Forwarding yes
XAuthLocation /opt/X11/bin/xauth
@rinx
rinx / get_weather_chart.sh
Created October 1, 2014 02:29
Download weather chart data from tenki.jp
#!/bin/sh
#
# Download weather chart data from tenki.jp
#
CMDNAME=`basename $0`
year=$1
month=$2
day=$3
@rinx
rinx / get_gms_imgs.sh
Last active August 29, 2015 14:07
Download MTSAT data from tenki.jp
#!/bin/sh
# ------------------------------
# Download MTSAT data from tenki.jp
#
# # infrared
# http://az416740.vo.msecnd.net/static-images/satellite/2014/09/17/11/00/00/japan_near/large.jpg
# # visible
# http://az416740.vo.msecnd.net/static-images/satellite/2014/09/17/11/00/00/japan_near/large-visible.jpg
# # vapor
@rinx
rinx / github.css
Last active August 29, 2015 14:07 — forked from theconektd/github.css
Github-like css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
width: 800px;
margin: 0 auto;
padding: 30px; }
@rinx
rinx / md_to_html_via_pandoc.md
Last active August 29, 2015 14:06
To convert from markdown to HTML via pandoc with github-like style.

To convert from markdown to HTML via pandoc with github-like style.

Get github.css

From Github Markdown CSS.

$ wget https://gist.github.com/andyferra/2554919/raw/2e66cabdafe1c9a7f354aa2ebf5bc38265e638e5/github.css
@rinx
rinx / mc.f90
Last active August 29, 2015 14:06
calculate I = \int_{-1}^{1} x^2 dx by monte carlo method in fortran
! ---------------------------
! calculate
! I = \int_{-1}^{1} x^2 dx
! by monte carlo method.
! ---
! reference:
! http://aidiary.hatenablog.com/entry/20140728/1406555863
! ---------------------------
program main
@rinx
rinx / beamerthemeALOHA.sty
Last active August 29, 2015 14:06
beamertheme 'ALOHA'
\mode<presentation>
\usepackage{tikz}
\usetikzlibrary{calc}
\makeatletter
\def\progressbar@progressbar{} % the progress bar
\newcount\progressbar@tmpcounta% auxiliary counter
\newcount\progressbar@tmpcountb% auxiliary counter
\newdimen\progressbar@pbht %progressbar height
@rinx
rinx / beamerthemePearLemonFizz.sty
Last active August 29, 2015 14:06
beamer theme for autumn seminar
\mode<presentation>
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme{rounded}
\useoutertheme{infolines}
\setbeamertemplate{headline}[default]
\definecolor{PLFEmerald}{RGB}{4, 191, 191}
@rinx
rinx / timecard
Last active August 29, 2015 14:05
lab_lifelog viewer
2014/07/10 10:00:00 11:00:00
2014/07/11 10:00:00 12:00:00
2014/07/12 10:00:00 13:00:00
2014/07/13 10:00:00 14:00:00
2014/07/14 10:00:00 15:00:00
2014/07/15 10:00:00 16:00:00
2014/07/16 10:00:00 17:00:00
2014/07/17 10:00:00 18:00:00
2014/07/18 10:00:00 19:00:00
2014/07/19 10:00:00 20:00:00