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
| /* TopCoder | |
| * SRM : 577 | |
| * Division : 2 | |
| * Level : 1 | |
| * | |
| * Created on: | |
| * Author: tsu_nera<fox10225fox@gmail.com> | |
| */ | |
| #include <algorithm> | |
| #include <iostream> |
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/bash | |
| # option -r is Reboot | |
| if [ "$1" = "-r" ]; then | |
| echo "Reboot Emacs Daemon" | |
| emacsclient -e '(kill-emacs)' | |
| fi | |
| # start emacs | |
| emacs --daemon |
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
| # gitignore for C++ | |
| # Compiled Object files | |
| *.slo | |
| *.lo | |
| *.o | |
| # Compiled Dynamic libraries | |
| *.so | |
| *.dylib |
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/ruby | |
| require 'twitter' | |
| @client = Twitter::Client.new( | |
| :consumer_key => "hoegehoge", | |
| :consumer_secret => "hoegehoge", | |
| :oauth_token => "hoegehoge", | |
| :oauth_token_secret => "hoegehoge") | |
| @client.update ARGV[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
| /* TopCoder | |
| * SRM : 578 | |
| * Division : 2 | |
| * Level : 1 | |
| * | |
| * Created on: 2013/05/03(Fri) | |
| * Author: tsu_nera<fox10225fox@gmail.com> | |
| */ | |
| #include <algorithm> | |
| #include <iostream> |
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/bash | |
| files=.* | |
| for file in ${files} | |
| do | |
| filepath="${PWD}/${file}" | |
| homefile="${HOME}/${file}" | |
| # . と .. .git は抜かす |
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/bash | |
| MOCK_DIR=mocks | |
| # 指定されたディレクトリが存在するかチェック | |
| if [ ! -d "$1" ]; then | |
| echo 'error: input include directory path'; exit 1 | |
| else | |
| # 絶対パスになおす | |
| INCLUDE_DIR="${PWD}/$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
| #!/usr/bin/zsh | |
| # ログイン情報 | |
| username=tsu-nera | |
| password=************ | |
| # expect コマンドを実行 | |
| expect -c " | |
| # タイムアウト値の指定 | |
| set timeout 20 |
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
| ############### | |
| # zsh Setting | |
| ############### | |
| ############### | |
| # ヒストリ関連 | |
| ############### | |
| # 履歴の保存先 | |
| HISTFILE=$HOME/.zsh-history | |
| ## メモリに展開する履歴の数 |
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 off | |
| chcp 932 | |
| set file=%* | |
| rem Picasaに投稿 | |
| python "C:\Python26\Scripts\google" picasa post Futurismo "%file%" | |
| rem URL取得 | |
| for /f "usebackq tokens=*" %%a in (`python "C:\Python26\Scripts\google" picasa list --fields=url-direct --query "%file:C:\Users\TSUNEMICHI\Desktop\=%"`) do @set x=%%a |