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.seraphyware.authtest; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import javax.security.auth.callback.Callback; | |
import javax.security.auth.callback.CallbackHandler; | |
import javax.security.auth.callback.NameCallback; | |
import javax.security.auth.callback.PasswordCallback; | |
import javax.security.auth.callback.UnsupportedCallbackException; |
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.seraphyware.jnditest; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.net.URL; | |
import java.util.Enumeration; | |
import javax.naming.InitialContext; |
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 | |
if [ "$#" -eq 0 ]; then | |
echo "Usage:" | |
echo " dir2dmg <path/to/directory>" | |
exit 1 | |
fi | |
PWD=`pwd` |
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
option explicit | |
dim rs | |
set rs = CreateObject("ADODB.Recordset") | |
with rs.Fields | |
.Append "IDX", 3 ' integer | |
.Append "VAL", 200, 50 ' varchar(50) 文字列は長さ指定必要 | |
end with | |
rs.Open | |
dim idx |
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.lang.reflect.ParameterizedType; | |
public class GenericTypeParameterSample | |
extends AbstractGenericTypeParameterSample<String> { | |
public static void main(String[] args) { | |
GenericTypeParameterSample inst = new GenericTypeParameterSample(); | |
Class<?> dataType = inst.getDataType(); | |
System.out.println("dataType=" + dataType); | |
} |
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.seraphyware.sandboxscript; | |
import java.beans.Expression; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.Reader; | |
import java.io.UncheckedIOException; | |
import java.io.Writer; | |
import java.nio.file.Files; |
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.seraphyware.jaasexample; | |
import java.awt.BorderLayout; | |
import java.awt.Container; | |
import java.awt.Dimension; | |
import java.awt.GridBagConstraints; | |
import java.awt.GridBagLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; |
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
// DDEServerExampleVC6.cpp | |
// | |
#include "stdafx.h" | |
// stdafx.h内に、#pragma warning(disable:4786) をいれてmap展開の長さ警告を抑制する | |
#include <windows.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <tchar.h> |
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/bin/env python | |
# -*- coding: utf-8 -*- | |
import pyExcelerator | |
# スタイルのキャッシュ | |
styles = {}; | |
# パターン番号からスタイルを生成しキャッシュする. |
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
// ローダのメカニズムを有効化 | |
Ext.Loader.setConfig({ | |
enabled: true | |
}); | |
// Ext.uxで始まる名前のスクリプト(お手製スクリプト)は | |
// uxフォルダ以下を検索するように指示する. | |
Ext.Loader.setPath('Ext.ux', 'ux'); | |
// このページで使用するコンポーネント |
OlderNewer