Skip to content

Instantly share code, notes, and snippets.

Avatar

Pavel Elizariev Ph47

View GitHub Profile
View Sample to issue 2264
{
"webroot": "wwwroot",
"version": "1.0.1",
"exclude": [
"wwwroot",
"bower_components",
"node_modules"
],
"packExclude": [
"node_modules",
View gist:fe250c07310969a1d839
<html>
<head>
<title>Title of page</title>
</head>
<body>
<header>
<h1></h1>
</header>
<main>
<article>
@Ph47
Ph47 / Startup.cs
Created Jan 20, 2015
About DependencyInjection issue
View Startup.cs
using Microsoft.AspNet.Builder;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.AspNet.Hosting;
using Microsoft.Framework.DependencyInjection;
using Memorialis.Model;
using Microsoft.AspNet.Routing;
using Memorialis.Web.Utility;
using Memorialis.Identity;
namespace Memorialis.Web
View Lab1
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
public class Program
{
public void Main(string[] args)
{
@Ph47
Ph47 / gist:df12b939ff104ce0b943
Created Dec 21, 2014
Handler with russian support
View gist:df12b939ff104ce0b943
<%@ WebHandler Language="C#" Class="Handler" %>
using System;
using System.Web;
public class Handler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
context.Response.Write(Uri.UnescapeDataString(context.Request.RawUrl));
@Ph47
Ph47 / gist:a972ca5a7dbbe5477cd4
Created Dec 19, 2014
Russian language query parse
View gist:a972ca5a7dbbe5477cd4
using Microsoft.Owin.Hosting;
using Owin;
using System;
using System.Threading.Tasks;
using AppFunc = System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>;
namespace Playground1
{
class Program
{
View gist:31d9fc795156c39fd9e9
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string url = "http://localhost:15914/main.ashx?action=directorAddManager&name=%D0%9B%D0%B5%D1%85%D0%B0&status=true&pass=1234";