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
// ---------------------------------------------- | |
// 文字列に引数のデータを書き込みます。 | |
// データを書き込む位置に{0}などと表記してください。 | |
// e.g. | |
// sprintf("position(x:{0},y:{1}", x,y); | |
// ---------------------------------------------- | |
sprintf = function(fmt){ | |
for (var i=1; i<arguments.length; i++){ | |
var reg = new RegExp("\\{" + (i-1) + "\\}", "g"); |
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
' ******************************************************************* | |
' | |
' Excel VBA Code Snippet | |
' | |
' ******************************************************************* | |
' ----------------------------------------------- | |
' 曜日を表す文字列を取得する。 | |
' |
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
###################################################################### | |
# Ruby CodeSnippet | |
###################################################################### | |
# -------------------------------------------------------------------- | |
# Rubyでの起動を指定。一行目に記述する必要あり。 | |
# -KuオプションでUTF-8を指定。日本語を出力する時にないと文字化けする。 | |
# -------------------------------------------------------------------- | |
#!/usr/bin/ruby -Ku |
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
/********************************************************************* | |
* PHP CodeSnippet | |
*********************************************************************/ | |
/*-------------------------------------------------------------------- | |
include | |
--------------------------------------------------------------------*/ | |
// ファイル取り込み | |
require_once 'hoge.php'; |
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
BOOL SetClipboardPng(LPCWSTR filename){ | |
// ▼クリップボードの占有を開始 | |
if (FALSE == OpenClipboard(NULL)) return FALSE; | |
BOOL bRet = FALSE; | |
// ▼ファイルオープン | |
HANDLE hFile = CreateFile( | |
filename, // lpFileName |
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
' 指定ディレクトリを削除する。 | |
Function DeleteDir(dir_ As String) As Boolean | |
On Error Resume Next | |
Kill dir_ & "\*.*" | |
RmDir dir_ | |
If Err = 0 Then DeleteDir = True | |
End Function | |
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
#include <windows.h> | |
#include <sstream> | |
#ifdef _MSC_VER | |
/* | |
* OutputDebugString関数のストリームバッファClass | |
* | |
* // インスタンス作成 | |
* std::ostream dout(new MSDebugStreambuf); |
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
' I/Oタイプ | |
Const ORAPARM_INPUT = 1 | |
Const ORAPARM_OUTPUT = 2 | |
Const ORAPARM_BOTH = 3 | |
' 変数型 | |
Const ORATYPE_VARCHAR2 = 1 | |
Const ORATYPE_NUMBER = 2 | |
Const ORATYPE_SINT = 3 | |
Const ORATYPE_FLOAT = 4 |