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
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Run" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<ProjectFolder>C:/project/PublishSampleProject/</ProjectFolder> | |
<OutputFolder>C:/Temp/msbuildTest/</OutputFolder> | |
</PropertyGroup> | |
<Target Name="Run"> | |
<CallTarget Targets="Build"/> | |
<CallTarget Targets="Publish"/> | |
</Target> |
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
DECLARE @STR NVARCHAR(100) | |
SET @STR = '' | |
SELECT | |
@STR = @STR + STR1 + ' / ' | |
FROM( | |
SELECT | |
'hoge' AS STR1 | |
UNION | |
SELECT |
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
bcp "SELECT * FROM OPENROWSET(BULK N'C:\temp\hoge.jpg', SINGLE_BLOB) as hoge" queryout hoge.jpg -U hogefugaman -n |
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.util.List; | |
public class DownCastSample { | |
public List<Integer> 警告が出る() { | |
Object obj = null; | |
List<Integer> ret = (List<Integer>) obj; | |
return ret; | |
} | |
public List<Integer> tryでくくっても警告が出る() { |
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.InvocationTargetException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.commons.beanutils.BeanUtils; | |
public class Converter { | |
public static <T, U> List<U> convert(List<T> in, Class<U> type) { | |
List<U> out = new ArrayList<U>(); |
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
$(".resizable").resizable({ | |
handles: "se", | |
resize: function (event, ui) { | |
var self = $(this).data("resizable"); | |
self.size.width = self.width; | |
} | |
}); |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using NUnit.Framework; | |
namespace Ledsun.Util | |
{ |
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
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Xml; | |
using System.Xml.Serialization; | |
using NUnit.Framework; | |
namespace Ledsun.Util | |
{ |
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
public class HogeHogeSession { | |
public static SessionWrapper<int> searchCondition = new SessionWrapper<int>( | |
"HogeHoge"); | |
} |
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
public abstract class PageBase : System.Web.UI.Page | |
{ | |
/// <summary> | |
/// イベント呼び出しのログ出力用メソッドです | |
/// </summary> | |
/// <param name="PageName">ページ名(日本語)</param> | |
/// <param name="EventName">イベント名(日本語)</param> | |
/// <param name="memo">その他メモ(あれば)</param> | |
/// <param name="queryNames">クエリパラメータ名(あれば)</param> | |
protected void EventTraceLog(string PageName, string EventName, string memo = "", string[] queryNames = null) |