This file contains 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
:: 当バッチファイルが置かれているドライブのF:\home\userにホームディレクトリを固定 | |
:: どのパソコンに刺しても対応できるようにドライブレターが ~d0 のあたりで展開される | |
:: | |
:: 参考文献 | |
:: dotcloudとfluxflexの開発環境を、USBメモリで持ち運ぶ(Windows限定) | |
:: http://blog.alglab.net/archives/24 | |
:: 「%~dp0」でカレントディレクトリが取得できる訳 | |
:: http://d.hatena.ne.jp/GARAPON/20100615/1276612386 | |
:: 環境 | |
:: $uname -a |
This file contains 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
;; load-path の設定 | |
(setq load-path (append '("~/.emacs.d/elisp/" | |
"/usr/share/emacs23/site-lisp/ibus/" | |
"~/.emacs.d/elisp/twittering-mode/") | |
load-path)) | |
;; ============================================ | |
;; 見た目の設定 | |
;; ============================================ | |
;; ツールバーを表示しない |
This file contains 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
set nocompatible | |
"-------- | |
" vundle | |
"-------- | |
filetype off "required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() |
This file contains 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
# ============================================================ | |
## 文字列 "^[" は実際にはエスケープなので置換しないと動かないよ。 | |
# | |
## Emacs の場合: | |
# M-x replace-string RET C-q ESC RET ^[ RET とすれば置換。 | |
# | |
## Vim の場合: | |
# :%s/\^\[/Ctrl+v ESC/gc とすれば置換。 | |
# ============================================================ |
This file contains 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
# GNU Screen settings | |
# prefix key: C-z | |
# literal: z | |
escape ^Zz | |
# General | |
startup_message off | |
vbell off | |
autodetach on |
This file contains 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 | |
# あるディレクトリに保存されている、拡張子.jpgのファイルの拡張子を | |
# 全て.jpegに変えるスクリプトを作成しなさい。 | |
if (($# == 1)); then | |
cd $1 || exit 1 | |
rename .jpg .jpeg *.jpg | |
else | |
echo 'フォルダを1つ指だけ定してください' |
This file contains 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
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
int i,j; | |
int param; | |
param = atoi(argv[1]); | |
for(i=0; i<param; i++) { | |
for(j=0; j<i+1; j++) { |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(void) { | |
int i=0,j=0,k=0; | |
int tmp=0; | |
int map[5][5]={0},buf[5][15]={0}; | |
srand((unsigned int) time(NULL)); |
This file contains 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
#include <stdio.h> | |
// define macro | |
#define swap(type, x, y) do {type t = x; x = y; y = t;} while(0) | |
// define prototype | |
void bubble_sort(int a[], int n); | |
// main program | |
int main(void) |
This file contains 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
11月25日 | |
バス回数券; 2300; 交通費 | |
昼飯; 600; 食費 | |
珈琲豆; 1000; 嗜好品 | |
11月26日 | |
ガソリン代; 3210; 交通費 | |
夕飯; 800; 食費 | |
傘; 1050; |
OlderNewer