Skip to content

Instantly share code, notes, and snippets.

View EgorBo's full-sized avatar
🛠️
Working from home

Egor Bogatov EgorBo

🛠️
Working from home
View GitHub Profile
using System;
using System.Threading;
namespace ConsoleApplication
{
internal class Program
{
const int UnexpectedTimeoutMilliseconds = 30 * 1000;
public static void Main(string[] args)
<?xml version="1.0"?>
<scene id="1">
<attribute name="Name" value="NinjaSnowWar" />
<attribute name="Time Scale" value="1" />
<attribute name="Smoothing Constant" value="50" />
<attribute name="Snap Threshold" value="500" />
<attribute name="Elapsed Time" value="0" />
<attribute name="Next Replicated Node ID" value="2" />
<attribute name="Next Replicated Component ID" value="1" />
<attribute name="Next Local Node ID" value="16777220" />
using System;
namespace ConsoleApp4
{
class Program
{
private static TimeZoneInfo.TransitionTime CreateFixedDateRule(DateTime dateTime)
{
var time = new DateTime(dateTime.Ticks - dateTime.Date.Ticks);
return TimeZoneInfo.TransitionTime.CreateFixedDateRule(time, dateTime.Month, dateTime.Day);
Microsoft Visual Studio Community 2017 Preview
Version 15.4.0 Preview 3.0
VisualStudio.15.Preview/15.4.0-pre.3.0+26923.0
Microsoft .NET Framework
Version 4.7.02046
Installed Version: Community
Visual Basic 2017 00369-60000-00001-AA971
Microsoft Visual Basic 2017
This file has been truncated, but you can view the full file.
1>Starting deploy VisualStudio_android-23_x86_phone ...
1>Starting emulator VisualStudio_android-23_x86_phone ...
1>C:\PROGRA~2\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd VisualStudio_android-23_x86_phone -prop monodroid.avdname=VisualStudio_android-23_x86_phone
1>Hax is enabled
1>Hax ram_size 0x40000000
1>HAX is working and emulator runs in fast virt mode.
1>audio: Failed to create voice `goldfish_audio_in'
1>qemu-system-i386.exe: warning: opening audio input failed
1>emulator: Listening for console connections on port: 5554
1>emulator: Serial number of this emulator (for ADB): emulator-5554
DEBUG RunShellCommand emulator-5554 getprop
1>TASK: GetProperties getprop completed?:[dalvik.vm.dex2oat-Xms]: [64m]
1>[dalvik.vm.dex2oat-Xmx]: [512m]
1>[dalvik.vm.heapsize]: [256m]
1>[dalv...
1> Emulator name lookup failed for emulator emulator-5554'
1>System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
1> at Mono.AndroidTools.AndroidEmulatorConsole.<>c__DisplayClass7_0.<RunCommand>b__0() in C:\d\lanes\5156\1631433e\source\xamarinvs\External\md-addins\MonoDevelop.MonoDroid\external\androidtools\Mono.AndroidTools\AndroidEmulatorConsole.cs:line 85
1> at System.Threading.Tasks.Task`1.InnerInvoke()
1> at System.Threading.Tasks.Task.Execute()
using System;
using System.Threading;
namespace Foo
{
public class Pr
{
public static void Main(string[] args)
{
var tsc = new TestSynchronizationContext();
using System;
using Xunit;
namespace ConsoleApp7
{
public class FinalizerTest
{
static void AllocAndLeaveScope()
{
new TestClass();
level 5 - 0.480 s - 134144 b
level 6 - 0.502 s - 786944 b
level 7 - 0.745 s - 4706304 b
level 8 - 2.053 s - 28220928 b
level 9 - 10.134 s - 169308672 b
level 10 - 57.307 s - 1015835136 b
HW:
Core i7-4930K 3.4GHZ
16GB Ram
using System.Xml;
namespace ConsoleApp7
{
class Program
{
static void Main(string[] args)
{
new XmlDocument().Load(@"C:\prj\MyIosProject\Info.plist");
}