Skip to content

Instantly share code, notes, and snippets.

@sckzw
sckzw / canplayer.py
Created July 20, 2016 11:58
CAN (ISO 11898) data player
#!/usr/bin/env python
#coding: UTF-8
import string
import sys
import time
# コマンドライン引数で指定されたファイルをオープン
argv = sys.argv
argc = len( argv )
@sckzw
sckzw / backup.csh
Last active August 29, 2015 14:05
Backup shell script
#! /bin/csh
set host_name = route
set user_name = shuichi
set mac_addr = 00:00:00:00:00:00
set wait_time = 2m
set shutdown_flag = 0
echo "Starting backup. `date`"
@sckzw
sckzw / verilog-mode-flymake-sample.v
Created February 16, 2014 20:23
Emacsのverilog-modeのためのflymake設定 ref: http://qiita.com/shuichinet/items/5a5e1b5c571fc2a17bd5
module foo( /*AUTOARG*/ );
/*AUTOINPUT*/
/*AUTOOUTPUT*/
/*AUTOWIRE*/
bar bar( /*AUTOINST*/ );
baz baz( /*AUTOINST*/ );
endmodule
// Local Variables:
@sckzw
sckzw / verilog-mode-font-lock.el
Created February 16, 2014 19:38
Emacsのverilog-modeで数値を強調表示する ref: http://qiita.com/shuichinet/items/f380f6928fa9bd7421c6
(font-lock-add-keywords
'verilog-mode
'(("\\(\\<[1-9][0-9_]*\\)?'h[0-9_a-fxz]+\\>" . font-lock-string-face) ; 16進数
("\\(\\<[1-9][0-9_]*\\)?'d[0-9_xz]+\\>" . font-lock-string-face) ; 10進数
("\\(\\<[1-9][0-9_]*\\)?'o[0-7_xz]+\\>" . font-lock-string-face) ; 8進数
("\\(\\<[1-9][0-9_]*\\)?'b[01_xz]+\\>" . font-lock-string-face) ; 2進数
("\\<[0-9][0-9_]*\\>" . font-lock-string-face))) ; 基数なし
@sckzw
sckzw / README.md
Last active August 26, 2016 17:19
Python script to delete duplicate tracks from Google Play Music library.

Python script to delete duplicate tracks from Google Play Music library. Please retry until "No duplicate songs" message is displayed. Use this script at your own risk. gmusicapi is required.