Skip to content

Instantly share code, notes, and snippets.

@yu-tang
yu-tang / IConstructor.cls
Created March 9, 2012 06:33
Constructor for VBA class module.
Option Explicit
Public Sub Initialize(args() As Variant)
'
End Sub
@yu-tang
yu-tang / ReadMe.md
Created March 17, 2012 18:31
Scriptish / Greasemonkey User Script for moug
@yu-tang
yu-tang / ReadMe.md
Created March 18, 2012 04:01
Scriptish / Greasemonkey User Script for moug

Scriptish / Greasemonkey User Script for moug

機能

  • コード ブロックをシンタックス ハイライト
  • twitter ユーザーはアバターを表示
  • レス番号を表示 (v0.3-)
  • キーボード ショートカット (v0.4-)
@yu-tang
yu-tang / Bundle_ja.properties
Created October 7, 2012 07:16
OmegaT 2.6.1_01 L10N Bundle_ja.properties
#/**************************************************************************
# OmegaT - Computer Assisted Translation (CAT) tool
# with fuzzy matching, translation memory, keyword search,
# glossaries, and translation leveraging into updated projects.
#
# Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, and Henry Pijffers
# 2007 Didier Briel, Zoltan Bartko, Martin Fleurke
# 2008 Andrzej Sawula, Alex Buloichik, Didier Briel, Martin Fleurke
# 2009 Didier Briel, Alex Buloichik, Martin Fleurke
# 2010 Didier Briel, Wildrich Fourie, Martin Fleurke,
@yu-tang
yu-tang / my-glossary-demo.groovy
Last active December 19, 2015 09:58
OmegaT scripting: Demonstrate to display first glossary entry to custom pane.
/*
* OmegaT scripting:
* Demonstrate to display first glossary entry to custom pane
*
* @author Yu Tang
* @date 2013-07-07
* @version 0.2
*/
import java.awt.Component

以下のコードに示す Main プロシージャの実行結果(イミディエイト出力)を答えよ。

''' Class Module: MyService.cls
Option Explicit

Private Sub Class_Initialize()
    Debug.Print "「いらっしゃいませ」(Initialize)"
    Debug.Print "「ご利用を開始します。終了時に所定の手数料を引き落とします」"
End Sub
@yu-tang
yu-tang / grab_matches.groovy
Last active January 2, 2017 22:30
OmegaT 用スクリプト。全分節の全参考訳文を列挙するサンプル。
// demonstrate how to get matches for each entry
// original concept from
// https://libretraduko.wordpress.com/2013/09/10/export-relavant-tus-from-legacy-tmx-files-in-omegat/
// by Kos Ivantsov 2013-09-10
// +
// Some hacks and refactoring
// https://gist.github.com/yu-tang/6526991
// by Yu-Tang
// +
// GUI independence and many improvments taken from
@yu-tang
yu-tang / BinaryReader.cls
Last active July 20, 2018 04:17
某所のカウンター GIF 画像を数値変換するデモ(Excel VBA)。
Option Explicit
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
Destination As Any, _
Source As Any, _
ByVal Length As Long _
)
Private Const ERR_INVALID_PROCEDURE_CALL_OR_ARGUMENT As Long = 5 ' プロシージャの呼び出し、または引数が不正です。
Private Const ERR_SUBSCRIPT_OUT_OF_RANGE As Long = 9 ' インデックスが有効範囲にありません。
@yu-tang
yu-tang / open_segmentation_customizer_with_large_font.groovy
Last active August 29, 2015 13:55
OmegaT scripting: Open segmentation customizer with large font
/*
* Open segmentation customizer with large font
*
* @author Yu Tang
* @date 2013-01-31
* @version 0.2
*/
import java.awt.Component;
import java.awt.event.WindowAdapter;
@yu-tang
yu-tang / testJRA.bas
Created March 2, 2014 01:47
WebScraper for VBA examples
Option Explicit
Sub JRA_Test01()
Dim req As WSHttpRequest
Dim proc As WSProcessReExecute
Dim ret As Collection
Dim token As String
' 騎手データ > リーディングの HTML から
' 「浜中 俊」のリンク先トークンを取得(週ごとに変動する模様)