Skip to content

Instantly share code, notes, and snippets.

using System;
using System.IO;
string result;
using (MemoryStream ms = new MemoryStream())
{
TextWriter tmp = Console.Out;
using (StreamWriter sw = new StreamWriter(ms))
{
@xplicit
xplicit / TestClass.cs
Last active May 19, 2016 14:52
ServiceStack.Text sample
public class TestClass
{
public int A { get; set; }
public string B { get; set; }
public TestClass2 TC2 { get; set; }
}
public class TestClass
{
public int A { get; set; }
public string B { get; set; }
}
public class TestClass()
{
public int x { get; set; }
}
@xplicit
xplicit / TestClass.cs
Last active April 21, 2016 12:47
GistlynTest
public class TestClass
{
public int X { get; set; }
}
using System;
for (int i=0;i<10;i++)
y--;
int x=5;
int y=10;
int z=x+y;
for (int i=0;i<10;i++)
x++;
@xplicit
xplicit / gist:6b12f992f2c0485b6ffe
Created February 3, 2015 23:08
Build CoreCLR on Ubuntu 14.04 x64
#Installing Prerequisites
sudo apt-get install git cmake clang-3.5 make llvm-3.5 gcc
#build.sh is working only on 64 bit Linux!
git clone https://github.com/dotnet/coreclr
cd coreclr
./build.sh
@xplicit
xplicit / configure.ac.diff
Created June 13, 2014 15:19
configure.ac diff
diff --git a/configure.ac b/configure.ac
index 6d06c92..42648e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -368,7 +368,8 @@ AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
-AC_CHECK_TOOL(CXX, g++, g++)
+#AC_CHECK_TOOL(CXX, g++, g++)
@xplicit
xplicit / mono-tizen.sh
Last active August 29, 2015 14:02
compile mono on tizen
su
zypper install which git autoconf libtool gettext-tools gcc-c++ make
exit
git clone https://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=/usr
make get-monolite-latest
make
su
make install