Skip to content

Instantly share code, notes, and snippets.

View AuthorProxy's full-sized avatar
👾
Don't worry, be happy :)

Alex Kostyukov AuthorProxy

👾
Don't worry, be happy :)
View GitHub Profile
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace AutoSenderService
{
public static class XmlSerializerHelper
{
public static string Serialize<T>(T item)
@AuthorProxy
AuthorProxy / _Layout.cshtml
Created July 1, 2013 14:34
X-UA-Compatible - ASP.NET MVC HTTP Browser Compatibility
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" />
</head>
</html>
@AuthorProxy
AuthorProxy / GetObjectsArray.js
Last active July 3, 2016 12:09
JSON Array Post methods
// The same but for 'GET'
$.ajax({
url: '/Backend/Article/GetChildArticleIds',
traditional: true,
data: {
filter: '',
fieldId: 1115,
ids: [19975]
}
@AuthorProxy
AuthorProxy / DateTimeConvertions.cs
Created August 19, 2014 11:06
Testing different formats for date and time
using System;
using System.Globalization;
using System.Threading;
namespace Program
{
public class Program
{
private static void thread_test()
{
@AuthorProxy
AuthorProxy / PrepareConsole.cs
Created August 19, 2014 11:08
Prepare console for use with windows forms application
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;
namespace ConsoleUI
{
/// <summary>
/// Configure console to use with WF
@AuthorProxy
AuthorProxy / OpenXMLSample.cs
Created August 19, 2014 11:39
OpenXML SDK Sample: Find and replace marks with text
using System;
using System.Collections.Generic;
using System.Linq;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
namespace OpenXML_ReadAndReplaceMarks
{
class Program
{
@AuthorProxy
AuthorProxy / disable-scroll-events.css
Created August 23, 2014 09:59
Disable events while scrolling page
.disable-hover {
pointer-events: none;
}
var a = 'один аргумент';
console.log(a);
console.log('много аргументов', 12, true, [1,2,3], {a:1,b:2});
console.log('Node', document.getElementsByTagName('body'));
console.log('DOM', document);
console.log('функция', alert);
console.log('прочее', NaN, null, undefined);
console.log('У Пети было %d %s',10,'яблок');
console.log('Пи равно %f',Math.PI);
@AuthorProxy
AuthorProxy / JsonNetResult.cs
Last active September 21, 2016 21:55 — forked from rorymurphy/JsonNetValueProviderFactory.cs
ASP.NET MVC Value Provider Factory using JSON.NET
using Newtonsoft.Json;
using System;
using System.Web.Mvc;
namespace Proxy.Mvc.Extensions.ActionResults
{
public class JsonNetResult<T> : JsonResult
{
public JsonNetResult(T data)
{
@AuthorProxy
AuthorProxy / 101-rx-samples.md
Created October 10, 2020 19:54 — forked from omnibs/101-rx-samples.md
101 Rx Samples in C#

101 Rx Samples in C#

This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.

Here's the unedited original, translated to Github Markdown glory:

101 Rx Samples - a work in progress