Skip to content

Instantly share code, notes, and snippets.

// coding: utf-8
import std.stdio;
import std.string;
int main(string[] argv) {
auto fin = File("patchworkinput.txt");
char[][] data = [ "dummy".dup ]; // ダミー。後で "." に置き換える
foreach (line; fin.byLine) {
data ~= ("." ~ line ~ "."); // 両側に sentinel を配置
}
@miau
miau / nk.py
Created February 25, 2010 23:41
# -*- coding: utf-8 -*-
import unittest
c = {
0: u'零',
1: u'一',
2: u'二',
3: u'三',
4: u'四',
5: u'五',
--- web_ui.py.org 2008-12-11 10:44:02.000000000 +0900
+++ web_ui.py 2008-12-11 11:56:44.000000000 +0900
@@ -11,6 +11,7 @@
from trac.web import IRequestHandler
from trac.util.datefmt import parse_date, to_timestamp
from trac.wiki import wiki_to_html
+from trac.util.translation import _
import re
import traceback
#!/usr/local/bin/perl
use strict;
use warnings;
# git status -s | grep modified: | awk '{ print $3;}' > changed_files.txt
my $infile = 'changed_files.txt';
open my $in, '<', $infile or die "can't open $infile: $!";
my @files = <$in>;
close $in;
/**
* Small extension for Selenium tests.
*
* This extension will find any comments in the table with tests and makes them
* visible by inserting new table rows with comment text.
* Selenium Test Runner will ignore this new inserted rows.
*
* Before:
* <!--Comment text-->
*
# -*- coding: utf-8 -*-
$KCODE = 'u'
# Excel の罫線確認用に HTML に吐き出す(Excel データ取得→YAML として吐き出す部分)
# 文字コード変換を簡単に行うためのヘルパメソッド
#
# 基本的に UTF-8 で統一したいが、ファイルシステムとのやりとりは Shift_JIS なので。
# "あいう".sjis で Shift_JIS に、"あいう".utf8 で UTF-8 に変換する
require 'nkf'
# -*- coding: utf-8 -*-
# マウスポインタ配下にあるコントロールの幅を広げるスクリプト。
#
# 対象のコントロールにマウスポインタを置いて、ランチャーやショートカットでこのスクリプトを起動してください。
from ctypes import *
from ctypes.wintypes import *
def get_title(hwnd):
#!/usr/bin/perl
my $RCS_Id = '$Id: eps2png.pl,v 2.7 2009/05/20 13:33:19 jv Exp $ ';
# Author : Johan Vromans
# Created On : Tue Sep 15 15:59:04 1992
# Last Modified By: Johan Vromans
# Last Modified On: Wed May 20 15:55:08 2009
# Update Count : 175
# Status : Okay
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "OrderedDictionary"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
diff -u -r org/modCommon.bas mine/modCommon.bas
--- org/modCommon.bas Wed Jan 12 09:29:03 2011
+++ mine/modCommon.bas Thu Feb 03 12:52:41 2011
@@ -150,7 +150,7 @@
End Function
-Public Function SelectionCopyPicture(iFormat As Long) As Boolean
+Public Function SelectionCopyPicture(iFormat As Long, Optional vHideGridlines As Variant = Empty) As Boolean
Dim bGridlines As Boolean