Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
export INSTDIR=/usr/local/netcdf-3.6.3-intel
export FC=ifort
export F77=ifort
export CC=icc
export CXX=icpc
export CPP='icc -E'
export CXXCPP='icpc -E'
#!/bin/sh
export INSTDIR=/usr/local/mpich2-1.4.1p1-intel
export CC=icc
export CXX=icpc
export CPP='icc -E'
export CXXCPP='icc -E'
export FC=ifort
export F77=ifort
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Derquinse Gist.GitHub Gadget">
<Require feature="dynamic-height" />
</ModulePrefs>
<UserPref name="gistId" display_name="Gist #" required="true" />
<Content type="html">
<![CDATA[
<div id="content_div">
@TakashiUNUMA
TakashiUNUMA / insert_fig_to_tex.sh
Created January 4, 2014 03:18
This script prints a LaTeX format that includes bounding box informations.
#!/bin/sh
if test $# -lt 1 ; then
echo "USAGE: sh $(basename $0) [figure(s)]"
exit 1
fi
infiles=$*
WIDTH="140mm"
DIR="pictures/"
@TakashiUNUMA
TakashiUNUMA / get_data_from_JMA.sh
Last active December 31, 2015 00:19
A wrapper script for the sounding data of http://www.data.jma.go.jp/obd/stats/etrn/upper/index.php. The commands of awk and w3m are required to use this script. USAGE: get_data_from_JMA.sh [JSTTIME] [STATION NUMVER] [TYPE] Note: An undef value "///" is replaced with "-999." in this script.
#!/bin/sh
#
# wget wrapper script
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/12/11
#
debug_level=100
if test $# -lt 2 ; then
#!/bin/sh
if test $# -lt 2 ; then
echo "USAGE: $(basename $0) [input pdf] [output eps]"
exit 2
fi
input=$1
output=$2
@TakashiUNUMA
TakashiUNUMA / Makefile
Last active December 25, 2015 15:59
Makefile for compiling a LaTeX file by the use of XeLaTeX.
SHELL = /bin/sh
FILE0 = main
TEX = $(FILE0).tex
XDV = $(FILE0).xdv
PDF = $(FILE0).pdf
PDFOUT = $(FILE0)_final.pdf
FILE1 = handout
HTEX = $(FILE1).tex
HXDV = $(FILE1).xdv
@TakashiUNUMA
TakashiUNUMA / get_data_from_uwyo.edu.sh
Created July 13, 2013 08:38
A wget wrapper script for the sounding data of http://weather.uwyo.edu/ . This script requires ”change_time” shell script (https://gist.github.com/TakashiUNUMA/5821630). USAGE: get_data_from_uwyo.edu.sh [JSTTIME] [STATION NUMVER] [TYPE]
#!/bin/sh
#
# wget wrapper script
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/07/13
#
debug_level=100
if test $# -lt 3 ; then
@TakashiUNUMA
TakashiUNUMA / change_time.sh
Last active December 18, 2015 17:49
Change Time by the use of date and awk command.
#!/bin/sh
#
# change_time.sh
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/06/21
#
if test $# -lt 3 ; then
echo "USAGE: $(basename $0) [YYYYMMDDHHNN] [INT] [+/-]"
echo " *** Note: All values must be 'integer'. *** "
@TakashiUNUMA
TakashiUNUMA / gplot.sh
Last active July 21, 2017 07:30
A template bash script for gnuplot.
#!/bin/sh
# 描画する元のデータを指定 (gnuplot スクリプトへ引き継がれる)
infile=input.txt
# bash ファイル内での出力ファイル名を指定 (gnuplot スクリプトへ引き継がれる)
epsfile=output.eps
cat > tmp.gnuplot << EOF
# 出力を eps color enhanced に指定するためのおまじない