Skip to content

Instantly share code, notes, and snippets.

@MasWag
MasWag / git-submodule-rm
Created December 11, 2012 03:00
removing git submodule
#!/bin/sh
#This script removes a submodule of git.
#All you have to do is to put this script to a pathed directiry, and type `git submodule-rm <submodule>`
#(You may have to type `chmod +x git-submodule-rm`) :P
if [ $# -ne 1 ] ; then
echo "usage: git submodule-rm <submodule>";
echo "No submodule specified, no submodule removed." 1>&2;
exit 1;
fi
@MasWag
MasWag / login_eccs.rb
Last active December 9, 2015 19:18
This is a script to login ECCS.
#!/usr/bin/ruby
require 'rubygems'
require 'mechanize'
require 'kconv'
require "pit"
username , password = ARGV
if (config = Pit.get("eccs-password")) == {} then
;;背景色の設定
(custom-set-faces
'(default ((t
(:background "#000040" :foreground "#e0e0e0")
)))
'(cursor ((((class color)
(background dark))
(:background "#00AA00"))
(((class color)
(background light))
@MasWag
MasWag / .gitconfig
Last active December 10, 2015 14:59
added credential helper
[user]
name = foo bar
email = [email protected]
[color]
ui = auto
[push]
default = tracking
[http]
sslVerify = False
[alias]
@MasWag
MasWag / .gitignore
Last active December 11, 2015 03:18
記号論理学IIレポート
*.aux
*.log
*~
@MasWag
MasWag / send_sms.rb
Last active December 11, 2015 21:48
sl4a send sms
require "android";
droid = Android.new
droid.smsSend("電話番号","送る内容")
droid.makeToast( "ちゃんと送りました。")
@MasWag
MasWag / markdown.bat
Created February 6, 2013 13:33
WindowsでMarkdownからhtmlを生成するバッチファイル。Markdown.plと同じディレクトリに置いておいて、Active Perlが必要。 This batchfile (of course in Windows) generates html from Markdown. It requires Markdown.pl (same directiry) and Active Perl.
Markdown.pl %1 > %~n1.html
@MasWag
MasWag / mkembedpdf
Last active December 14, 2015 09:09
#!/bin/sh
if [ $# -ne 1 ] ;then
cat <<EOF
usage : mkembedpdf pdffile
EOF
exit
fi
PS_NAME=$(echo $1|sed -e 's/\..*$//g').ps
@MasWag
MasWag / 時間割.csv
Last active December 15, 2015 06:59
3学期時間割
プログラミング構成論E26 高度情報化社会の機械工学1225教室
英語二列10-205 実験
物性化学1102教室 宇宙科学実習IIE38 実験
情報技術論511教室 宇宙科学実習IIE38 モンゴル語(初級)761教室
ロボゼミ516教室
;;Setting of flymake
(require 'flymake)
(defun flymake-cc-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "g++" (list "-Wall" "-Wextra" "-fsyntax-only" local-file))))