Skip to content

Instantly share code, notes, and snippets.

View Belorus's full-sized avatar

Grigory Belorus

View GitHub Profile
@Belorus
Belorus / gist:ef54161ac05cc226cb3d66fdbbcd1fb1
Created December 16, 2018 12:29
C# Mandelbrot with AVX Intrinsics and AggressiveOptimization flag
using System;
using System.Collections.Specialized;
using System.IO;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Text;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
@Belorus
Belorus / repro.cs
Created July 10, 2018 10:51
DryIoC-AutofacDiff
using System;
using DryIoc;
namespace ConsoleApp8
{
class Program
{
static void Main(string[] args)
{
var c = new Container();
@Belorus
Belorus / sample.cs
Last active February 28, 2018 17:40
C# CodeReview sample
using System.Diagnostics;
using System.IO;
using System.Net.Http;
using System.Net.NetworkInformation;
using System.Threading.Tasks;
using CodeReview;
namespace MyBestApp
{
using System;
@Belorus
Belorus / transform.py
Last active November 15, 2017 16:06
Trans
#!/usr/bin/python
import re
import struct
import sys
import json
import datetime
def transform_records():
while True:
byte_len = sys.stdin.buffer.read(8)
@Belorus
Belorus / gist:aed35f5b0b1e31a8011db833196c3598
Last active November 6, 2017 12:42
Bingo Blitz EventStream config
{
"__comment": [
"// Data types: string, long, int, float, double, bool",
"// # - values are passed by called",
"// $ - evaluated via delegate",
"// @ - field reference"
],
"ambient_context": {
"user_id": "#string",
"platform_type": "#string",
BB.Controllers.ControllerBuilder`1[BB.App.Load.InitializeController].<BuildAsync>b__6_0
BB.App.Load.InitializeController.<InitializeAsync>b__13_0
BB.App.DynamicConfig.DynamicConfigLoader+<>c__DisplayClass6_0.<Load>b__0
System.Net.Http.HttpClientHandler.StartRequest
System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation+<>c.<Run>b__2_0
BB.App.DynamicConfig.DynamicConfigLoader+<>c__DisplayClass6_0.<Load>b__1
BB.App.Dev.RemoteResource.RemoteResourceConfigurationProviderDecorator.<GetRemoteResourceMap>b__4_0
BB.Features.Resources.Remote.RemoteResourceConfigurationCommand+<>c__DisplayClass5_0.<Execute>b__1
BB.Controllers.ControllerBuilder`1[BB.App.Load.LoadingController].<BuildAsync>b__6_0
BB.Features.StaticDataCache.StaticDataFacade.UpdateInternal
@Belorus
Belorus / gist:f5a7086cefe2e0e4a7ef314a6f17a2f7
Last active July 5, 2016 13:26
Playtika Unity Developer assessment
Тестовое задание на позицию Unity Developer в Playtika.
На выбор есть 2 задания. Выполнить достаточно только одно из них.
1.
Необходимо написать 2D UI приложение на Unity которое будет запускаться на Android и iOS,
в котором будет отображаться список facebook друзей пользователя с возможностью послать им invite.
В списке необходимо отображать полное имя, аватарку друга и кнопку для отсылки приглашения.
На открытии приложения пользователь должен авторизоваться с необходимыми пермишнами.
Package MachineIcons was updated to version 1.0.18
[Mon, 14 Mar 2016] (by leonidt): add icon 360
[Fri, 18 Mar 2016] (by pavelp): jp local:
Package Popups/GiftsFriends was updated to version 1.0.19
[Wed, 09 Mar 2016] (by iblazhiievska): change by review
[Wed, 09 Mar 2016] (by iblazhiievska):
[Wed, 09 Mar 2016] (by iblazhiievska): script on txt
[Wed, 09 Mar 2016] (by leonidt): add "CONFIG::OPTIMIZE_NODES"
[Fri, 11 Mar 2016] (by pavelp): jp locale:
[Fri, 11 Mar 2016] (by iblazhiievska): localization
> JetBrains.Platform.ComponentModel.dll!JetBrains.Application.Table.TablePartCatalogCollectionSourceOwner.JetBrains.Util.dataStructures.Sources.ICollectionSourceOwner<JetBrains.Application.Catalogs.PartCatalogType>.ToEnumerable(ref JetBrains.Util.dataStructures.Sources.CollectionSource<JetBrains.Application.Catalogs.PartCatalogType> instance) Unknown
JetBrains.Platform.Util.dll!JetBrains.Util.dataStructures.Sources.CollectionSource<JetBrains.Application.Catalogs.PartCatalogType>.ToEnumerable() Unknown
JetBrains.Platform.ComponentModel.dll!JetBrains.Application.Extensibility.CatalogComponentSource.JetBrains.DataFlow.IViewable<System.Collections.Generic.IEnumerable<JetBrains.Application.Components.IComponentDescriptor>>.View.AnonymousMethod__0(JetBrains.DataFlow.Lifetime catalogLifetime, JetBrains.Application.Catalogs.PartCatalog catalogUnfiltered) Unknown
JetBrains.Platform.Util.dll!JetBrains.DataFlow.ICollectionEventsEx.ForEachItemCore<JetBrains.Application.Catalogs.PartCatalog>.AnonymousMethod__13() Un
@Belorus
Belorus / gist:84ce95f37f0540e19c31
Created February 22, 2016 18:34
Xamarin Android build bug
Microsoft (R) Build Engine version 14.0.24720.0
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 2/22/2016 9:33:49 PM.
Project "D:\Temp\App1\App1.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Project "D:\Temp\App1\App1.sln" (1) is building "D:\Temp\App1\App1\App1.csproj" (2) on node 1 (default targets).