Skip to content

Instantly share code, notes, and snippets.

@taka2
taka2 / struts-config.xml
Created January 9, 2011 14:11
struts-config.xmlからアクション一覧を抽出
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Id: struts-config.xml,v 1.1.1.1 2003/08/12 14:45:44 matsu Exp $ -->
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<!--
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
public class JavaTest
{
public static void main(String[] args) throws Exception
{
String str = "123456789";
// 数字をどこで区切るかのパターン総当たり
int separatePatterns = (int)Math.pow(2, (str.length() - 1));
for(int i=0; i<separatePatterns; i++)
{
@echo off
set SERVICE_NAME=Themes
REM --------------------------------------------------
REM サービスが既に起動しているかどうかチェック
REM --------------------------------------------------
net start | findstr %SERVICE_NAME%
if %ERRORLEVEL% == 0 goto error10
' 参考サイト: http://msdn.microsoft.com/ja-jp/library/system.security.cryptography.tripledes(v=VS.71).aspx
Imports System
Imports System.IO
Imports System.Security.Cryptography
Imports System.Text
Class VBNETTest
Public Shared Sub Main()
Dim keyBytesBase64 = System.Convert.FromBase64String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
Imports System
Class VBNETTest
Public Shared Sub Main()
Console.WriteLine(DateTime.Now)
Dim excelObj
Dim numrows As Integer = 10000
Dim numcols As Integer = 100
Dim arr1 As Object
import java.io.*;
import jxl.*;
import jxl.write.*;
public class test
{
public static void main(String[] args) throws Exception
{
System.out.println(new java.util.Date());
WritableWorkbook workbook = Workbook.createWorkbook(new File("filename.xls"));
stDate = now()
numcols = 100
numrows = 10000
Dim arr1
ReDim arr1(numrows - 1, numcols - 1)
For i = 0 To numrows - 1
For j = 0 To numcols - 1
arr1(i, j) = i * j
import java.io.*;
import org.apache.poi.hssf.usermodel.*;
public class test
{
public static void main(String[] args) throws Exception
{
System.out.println(new java.util.Date());
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("sheet1");
' バルクセット
Sub hoge()
numcols = 100
numrows = 1000
Dim arr1
ReDim arr1(numrows - 1, numcols - 1)
For i = 0 To numrows - 1
For j = 0 To numcols - 1
arr1(i, j) = i * j