Skip to content

Instantly share code, notes, and snippets.

KatsuYuzu KatsuYuzu

Block or report user

Report or block KatsuYuzu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@KatsuYuzu
KatsuYuzu / webapi-client.ts
Last active Apr 23, 2016
ASP.NET WebAPI 体験記 #clrh99 で話した割り切り WebAPI に対応したクライアント自動生成 T4
View webapi-client.ts
/* tslint:disable */
namespace App.WebApi {
"use strict";
//#region infrastructure
angular.module("webApiClient", [])
.provider("webApiClientHandler", [function () {
@KatsuYuzu
KatsuYuzu / Global.asax.cs
Last active Dec 16, 2015
ASP.NET MVC カスタムモデルバインダー
View Global.asax.cs
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using WebApplication.Common;
namespace WebApplication
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
@KatsuYuzu
KatsuYuzu / jQuery.Validation.Unobtrusive.d.ts
Created Feb 28, 2015
Type definitions for jQuery.Validation.Unobtrusive
View jQuery.Validation.Unobtrusive.d.ts
// Type definitions for jQuery.Validation.Unobtrusive
interface UnobtrusiveValidator {
options: any;
}
interface Validator {
unobtrusive: UnobtrusiveValidator;
}
@KatsuYuzu
KatsuYuzu / fiddle.css
Last active Aug 29, 2015
jQuery.Validation.Unobtrusive handle sample - http://jsfiddle.net/bsq6e1b2/
View fiddle.css
.input-validation-error {
background-color: #ff0000;
}
@KatsuYuzu
KatsuYuzu / tslint.json
Last active Jan 19, 2016
好みの tslint.json(Web Essentials 2.5.4時点のすべての rules)
View tslint.json
// added and custom from Web Essentials 2.5.4 default
{
"rules": {
"ban": [
true,
[ "_", "extend" ],
[ "_", "isNull" ],
[ "_", "isDefined" ]
],
"class-name": true,
@KatsuYuzu
KatsuYuzu / UnityConfig.vb
Last active Aug 29, 2015
Unity.Mvc - UnityConfig.vb, UnityMvcActivator.vb
View UnityConfig.vb
Imports System
Imports Microsoft.Practices.Unity
Imports Microsoft.Practices.Unity.Configuration
''' <summary>
''' Specifies the Unity configuration for the main container.
''' </summary>
Public Class UnityConfig
#Region "Unity Container"
Private Shared ReadOnly _Container As Lazy(Of IUnityContainer) = New Lazy(Of IUnityContainer)(
@KatsuYuzu
KatsuYuzu / PickPhotoAction.cs
Last active Aug 29, 2015
Windows ストアアプリで画像ライブラリを起動して写真ファイルを選択するトリガーアクション。
View PickPhotoAction.cs
using Microsoft.Xaml.Interactivity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Windows.Graphics.Imaging;
using Windows.Storage;
using Windows.Storage.Pickers;
@KatsuYuzu
KatsuYuzu / CaputurePhotoAction.cs
Created Mar 10, 2014
Windows ストアアプリでWebカメラで写真をキャプチャするトリガーアクション。
View CaputurePhotoAction.cs
using Microsoft.Xaml.Interactivity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Windows.Media.Capture;
using Windows.Storage;
using Windows.UI.Xaml;
@KatsuYuzu
KatsuYuzu / MyTriggerBehavior.cs
Last active Jan 1, 2016
Windows ストアアプリの独自のTriggerBehaviorサンプル。
View MyTriggerBehavior.cs
using Microsoft.Xaml.Interactivity;
using System;
using Windows.ApplicationModel;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
namespace App1
{
[ContentProperty(Name = "Actions")]
@KatsuYuzu
KatsuYuzu / BindToApplicationBarIconButtonBehavior.cs
Created Dec 17, 2013
Windows PhoneのApplication Barのバインディングサンプル。長くなるのでコマンドは省略。コマンドはprismのソースを参照するとよいです。
View BindToApplicationBarIconButtonBehavior.cs
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interactivity;
You can’t perform that action at this time.