Skip to content

Instantly share code, notes, and snippets.

View shvydky's full-sized avatar
💭
Work. Finish. Publish. I'm at one of these stages just now.

Andrii Shvydkyi shvydky

💭
Work. Finish. Publish. I'm at one of these stages just now.
  • Co-Founder in instock.com, Co-Founder in Breeze Software
  • Kyiv, Ukraine
  • X @shvydky
View GitHub Profile
DouglasPeuckerEpsilon: 0.03 # epsilon for Douglas-Peucker algorithm
@shvydky
shvydky / global.targets
Last active December 13, 2023 05:28
MSBuild/GIT/SVN auto-increment build number
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="Settings">
<PropertyGroup>
<productVersion>0.1.1</productVersion>
</PropertyGroup>
<UsingTask
TaskName="ExtractRevisionHash"
TaskFactory="CodeTaskFactory"
@shvydky
shvydky / gist:5317207
Last active December 7, 2016 06:38
Read Large JSON
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Diagnostics;
using System.IO;
namespace ParseJSON {
class Program {
static void Main(string[] args) {
using (var reader = new JsonTextReader(new StreamReader(@"D:\large.json"))) {
@shvydky
shvydky / VKontakteOAuthProvider.Helpers.cs
Last active December 11, 2015 05:58
VKontakte OAuth client
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace Breeze.AspNet.Security.OAuth {
public static class Helpers {
static string[] UriRfc3986CharsToEscape = new string[] { "!", "*", "'", "(", ")" };