Skip to content

Instantly share code, notes, and snippets.

View Ph47's full-sized avatar

Pavel Elizariev Ph47

View GitHub Profile
{
"webroot": "wwwroot",
"version": "1.0.1",
"exclude": [
"wwwroot",
"bower_components",
"node_modules"
],
"packExclude": [
"node_modules",
<html>
<head>
<title>Title of page</title>
</head>
<body>
<header>
<h1></h1>
</header>
<main>
<article>
@Ph47
Ph47 / Startup.cs
Created January 20, 2015 13:05
About DependencyInjection issue
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
@Ph47
Ph47 / Lab1
Created January 13, 2015 09:14
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
public class Program
{
public void Main(string[] args)
{
@Ph47
Ph47 / gist:df12b939ff104ce0b943
Created December 21, 2014 00:06
Handler with russian support
<%@ 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 December 19, 2014 17:43
Russian language query parse
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
{
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";