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
PLATEX = platex | |
DVIPDFMX = dvipdfmx | |
BIBTEX = bibtex | |
TARGET = research_plan | |
PDF_READER = open | |
all: $(TARGET).dvi | |
pdf: $(TARGET).pdf |
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
function el-on { | |
for SCRIPT in $@ | |
do | |
if [ ! -e ~/.emacs.d/inits-available/$SCRIPT.el ]; then | |
echo "$SCRIPT.el is not found"; | |
else | |
rm -rf ~/.emacs.d/inits-enable/$SCRIPT.el ~/.emacs.d/inits-enable/$SCRIPT.elc | |
ln -s ~/.emacs.d/inits-available/$SCRIPT.el ~/.emacs.d/inits-enable/$SCRIPT.el | |
fi | |
done |
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
require "sinatra" | |
require "cinch" | |
require "yaml" | |
require "json" | |
config_file = ARGV.shift || "config.yml" | |
if not File.exist? config_file | |
puts "error: Can't find config file #{config_file}" | |
exit | |
end |
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
while true do | |
p "Hoooooooot" | |
end |
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
# Description: | |
# syussya | |
# | |
# Dependencies: | |
# "request" | |
# "cheerio" | |
# | |
# Configuration: | |
# None | |
# |
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
# Description: | |
# taisya | |
# | |
# Dependencies: | |
# "request" | |
# "cheerio" | |
# | |
# Configuration: | |
# None | |
# |
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
[alias] | |
graph = log --graph --branches --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s' | |
st = status | |
gr = log --graph --branches --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s' | |
cm = commit | |
co = checkout | |
br = branch | |
remote-br = branch -r | |
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d % | |
gl = log --pretty='medium-reverse' --graph --name-status |
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 | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <aar_file> [<output_path>]" 1>&2 | |
exit 1 | |
fi | |
unzip $1 -d /tmp/aar2jar > /dev/null | |
if [ -z "$2" ]; then | |
dir=. |
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
# エンコード | |
echo '件名' | nkf -jM | |
# デコード | |
echo '=?ISO-2022-JP?B?GyRCN29MPhsoQg==?=' | nkf -w - |
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
// jQuery版に書き換えた | |
(function($){ | |
var queries = (function(){ | |
var s = location.search.replace("?", ""), | |
query = {}, | |
queries = search.split("&"), | |
i = 0; | |
if(!s) return null; | |
OlderNewer