Skip to content

Instantly share code, notes, and snippets.

//https://twitter.com/mormegil_cz/status/321991296019484672
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mormegill_test
@renestein
renestein / rodina.dlg
Last active December 15, 2015 10:19 — forked from josefslerka/rodina.dlg
rodic(josef, tana).
rodic(josef, sona).
rodic(josef, petr).
rodic(michaela, tana).
rodic(michaela, sona).
rodic(eva, michaela).
rodic(pavel,michaela).
rodic(miluska,josef).
rodic(josefstarsi,josef).
rodic(pavel, jitka).
//Pavel Machek - high level overview
void WcfGpsPositionService::GetPositionData(const RilSimpleInfo& info, const wstring& networkCode, GSMPosition& position)
{
try
{
wstring toHashValue = m_appKey + info.CellId;
string tempResult = MD5Hash::CalculateMD5Hash(toHashValue);
%TODO:
:- op( 400, xfy, [equ]).
:- op( 300, xfy, [and, or, impl, nand, nor, xor]).
:- op( 200, fx, [not]).
and(A, B) :- A, B.
or(A, B) :- A.
or(A, B) :- B.
@renestein
renestein / Program.cs
Created November 12, 2012 19:27
Alesroubicek3
namespace AlesRX
{
class Program
{
static void Main(string[] args)
{
ServicePointManager.DefaultConnectionLimit = Int32.MaxValue;
var specialHandler = new SpecialAvailable();
specialHandler.Process();
Console.ReadLine();
@renestein
renestein / gist:4061159
Created November 12, 2012 18:56
AlesR2
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reactive;
using System.Text;
using System.Reactive.Linq;
namespace AlesRX
@renestein
renestein / RXAles.cs
Created November 12, 2012 18:04
RX web request
//Ales Roubicek - https://gist.github.com/4059724
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reactive;
using System.Text;
using System.Reactive.Linq;
@renestein
renestein / FooBar.cs
Created September 4, 2012 09:19
John Skeet quiz
http://www.dotnetcurry.com/magazine/jon-skeet-quiz.aspx
using System;
using System.Collections.Generic;
namespace Skeetquiz
{
public delegate void MyReferenceDelegate<TR>(TR arg) where TR : class;
public delegate void MyStructDelegate<TS>(TS arg) where TS : struct;
@renestein
renestein / FizzBuzz.cs
Created August 26, 2012 16:56
FizzBuzz KATA
using System.Linq;
namespace KATA_NASA
{
using System;
public class FizzBuzzKata : IFizzBuzzKata
{
public string Answer(int i)
@renestein
renestein / FormatTest.cs
Created August 20, 2012 10:25
Augi Extension method
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FormatTest
{
class Program
{