This file contains hidden or 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/sh | |
xrandr | grep "1229x922" | |
if [ $? -eq 0 ]; then | |
xrandr --output LVDS1 --scale 1x1 --panning 1024x768 | |
else | |
xrandr --output LVDS1 --scale 1.2x1.2 --panning 1229x922 | |
fi | |
This file contains hidden or 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/sh | |
wget -N https://gist.github.com/rinx/35bdb3af7c08a546b14f/raw/fortran.vim -P $HOME/.vim/ftplugin/fortran > /dev/null 2>&1 | |
if [ $? -eq 0 ]; then | |
echo -e "\033[0;32m✔ \033[1;35mA Vim filetype plugin $HOME/.vim/ftplugin/fortran/fortran.vim downloaded\033[00m" | sed "s/^-e //" | |
else | |
echo -e "\033[0;31m✗ \033[1;31mA Vim filetype plugin $HOME/.vim/ftplugin/fortran/fortran.vim downloading failed\033[00m" | sed "s/^-e //" | |
fi | |
wget -N https://gist.github.com/rinx/5018808/raw/python.vim -P $HOME/.vim/ftplugin/python > /dev/null 2>&1 |
This file contains hidden or 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
" *.md file read as markdown | |
au BufNewFile,BufRead *.md setlocal filetype=markdown | |
This file contains hidden or 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
\usepackage{luatexja} | |
\hypersetup{unicode=true} |
This file contains hidden or 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
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
require 'twitter' | |
# --- define consts --- | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' |
This file contains hidden or 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
setl conceallevel=0 |
This file contains hidden or 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
✔ | |
✗ | |
🔙 | |
⎇ |
This file contains hidden or 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
# | |
# Makefile template for lualatex document | |
# | |
# Please set target name | |
target=name | |
OS=${shell uname} | |
$(target).pdf: lualatex.fmt $(target).tex | |
lualatex $(target).tex |
This file contains hidden or 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/sh | |
for i in {0..255} | |
do | |
printf "\x1b[38;5;${i}m%03d " ${i} | |
done | |
printf "\n" |
This file contains hidden or 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
{- | |
波長lambdaは380nm-1500nm程度として計算する。 | |
媒質の屈折率n1は1.5として考える。 | |
-} | |
import System.IO | |
main :: IO () | |
main = mapM_ simulate [0.1,0.3,0.4,0.5,0.6,0.7,1.0] |