Skip to content

Instantly share code, notes, and snippets.

View kazuk's full-sized avatar
👺
悪い子はいねーがー

kazuhiko kikuchi kazuk

👺
悪い子はいねーがー
View GitHub Profile
@kazuk
kazuk / HomeController.cs
Created April 14, 2012 00:29
create new gist を試してみるよ
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace SampleAppBase.Controllers
{
public class HomeController : Controller
{
@kazuk
kazuk / HttpApplicationExtentions.tt
Created April 14, 2012 02:18
ASP.NET HttpApplication からすべての Event key object を取得する
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Web" #>
<#@ output extension="EventKeys.cs" #>
<#@ import namespace="System.Web" #>
<#@ import namespace="System.Reflection" #>
<#@ import namespace="System.Linq" #>
using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Reflection.Emit;
using System.IO;
namespace Oosaki.Msil
{
@kazuk
kazuk / Program.cs
Created October 13, 2012 12:28
SEND+MORE=MONEY
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SendMoreMoney
{
class Program
{
static void Main(string[] args)
@kazuk
kazuk / Program.cs
Created October 13, 2012 12:39
SEND+MORE=MONEY
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SendMoreMoney
{
class Program
{
static void Main(string[] args)
@kazuk
kazuk / Program.cs
Created December 22, 2012 05:44
performace test for msgpack-cli TestStringMedium
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using MsgPack;
namespace PerfTest
{
class Program
@kazuk
kazuk / CustomBuild.targets
Created March 5, 2013 09:33
msbuild targets file for NuGet packaging & publish to local repos
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup >
<AvailableItemName Include="NuGetSpec">
<Visible>false</Visible>
</AvailableItemName>
</ItemGroup>
<PropertyGroup>
<NuGetRepository Condition="'$(NuGetRepository)' == ''">\\nugetrepos.local\NuGetRepos</NuGetRepository>
@kazuk
kazuk / InternalVisibleToSigned.tt
Created April 17, 2013 08:22
InternalsVisibleTo 属性を吐くT4 Template
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Reflection" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".cs" #>
using System.Runtime.CompilerServices;
@kazuk
kazuk / Program.cs
Created April 22, 2013 07:23
RazorEngineAndLinq
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using RazorEngine;
using RazorEngine.Compilation;
using RazorEngine.Compilation.Inspectors;
using RazorEngine.Templating;
@kazuk
kazuk / CodeDigger.TestPickuper.tt
Created April 24, 2013 05:13
Code Digger が吐いたテストを単体テストに取りこむ君
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="$(SolutionDir)\CodeDiggerTestPickuper\bin\Debug\CodeDiggerTestPickuper.dll"#>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Xml.linq" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Xml.Linq" #>