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
// ==UserScript== | |
// @name expand_photozou_album_photos | |
// @namespace kunst1080 | |
// @description フォト蔵のアルバム画面を整形して見やすくする。 | |
// @include http://photozou.jp/photo/list/*/* | |
// @grant GM_xmlhttpRequest | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @version 1 | |
// ==/UserScript== |
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/sh | |
Usage(){ | |
cat << __EOT__ >&2 | |
lsコマンドの実行結果を色付きで表示します | |
Usage:`basename $0` <各種lsコマンドのオプション> | |
使用例) $ `basename $0` |
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
package jp.kontrapunkt.kunst1080.TinyTest; | |
import java.util.Calendar; | |
import java.util.Date; | |
public class TestTinyTest extends TinyTest { | |
public static void main(String[] args) { | |
testStart(new OKTest()); | |
//testStart(new NoTest()); |
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 | |
# 入力ファイルをTSVからCSV形式に変換する。ついでにヘッダの除去も行う | |
cat "$1" | tr -s ' ' | tr '\n' ',' | cut -d, -f2- | tr , '\n' | tr ' ' , | grep -v "^$" > tmp.input | |
# 1列目の項目を抜出し、キー1とする | |
cat tmp.input | cut -d, -f1 | sort -u > tmp.key1 | |
# 2列目の項目を抽出し、キー2とする | |
cat tmp.input | cut -d, -f2 | sort -u > tmp.key2 |
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
cat TESTCPY.cbl | cut -b8- | tr -d "\n" | tr "." "\n" | sed 's/^ *//g' | sed 's/(0*/(/g' | sed 's/[()]/ /g' \ | |
|nawk '$3=="PIC" ? ($4=="N" ? $5=$5*2:1) :1' \ | |
|sed 's/ *PIC *[9XN] */ PIC A/g' \ | |
|nawk '$3=="PIC" ? ($6=="COMP-3" ? $4="S9COMP3":1):1' | sed 's/S9COMP3 */H/g' | sed 's/ *COMP-3 *//g' \ | |
|sed 's/ *PIC */ /g' | cut -d " " -f1,3- \ | |
|nawk '{if($2=="OCCURS"){for(i=0;i<$3-1;i++){$(10+i)=$4;$2="";$3=""}}; $1="";print $0}' \ | |
|tr -d " " | tr -d "\n" | xargs -I% perl -nle "@o=unpack(%, \$_);print join(',',@o)" cobolfile.txt |
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
@if (1==1) /* | |
@echo off | |
if "%~1"=="" goto :USAGE | |
if "%~1"=="/?" goto :USAGE | |
rem ******************************************************************************** | |
:MAIN | |
CScript //nologo //E:JScript "%~f0" %* | |
If ERRORLEVEL 1 goto :USAGE |
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
@echo off | |
setlocal | |
rem ******************************************************************************** | |
if "%1"=="-h" goto USAGE | |
if "%1"=="--help" goto USAGE | |
if "%1"=="/?" goto USAGE | |
goto MAIN | |
rem ******************************************************************************** | |
:USAGE |
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
import java.io.UnsupportedEncodingException; | |
public class Char2SjisHexString { | |
// Test | |
public static void main(String args[]){ | |
String str = "月陽炎DVD"; | |
for (char c : str.toCharArray()) { | |
System.out.println(Character.toString(c) + ":" + char2SjisHexString(c)); | |
} |
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
#!/usr/local/bin/bash | |
# [前提] | |
# ①flavour/default に、以下のファイルをセットアップ済みであること | |
# - /etc/rc.conf | |
# - /etc/resolv.conf | |
# - /etc/make.conf | |
# - /etc/ssh/sshd_config | |
# - /var/ports/packages/ | |
# |
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
var util = Utility(); | |
// settings | |
var FTP_IP = "xxx.xxx.xxx.xxx"; | |
var FTP_USER = "username"; | |
var FTP_PASSWORD = "password"; | |
var FTP_MODE = "ascii"; | |
// メイン関数 | |
(function main(){ |