Skip to content

Instantly share code, notes, and snippets.

View Ravadre's full-sized avatar

Marcin Deptuła Ravadre

  • Poland, Gdańsk
View GitHub Profile
@Ravadre
Ravadre / gist:4c42bad783271c8db19b
Created June 4, 2014 10:06
Obs vs event perf tests
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Subjects;
using System.Text;
using System.Threading.Tasks;
using System.Reactive.Linq;
using Stacks;
using System.Threading;
using System.Diagnostics;
Raw:
"StripArgsTest.exe" : /home/administrator/Projects/UnrealEngine.sbc100/Engine/Bi
naries/Linux/UE4Editor "/home/administrator/Documents/Unreal Projects/TappyChick
en/TappyChicken.uproject" -run=Cook -Map=/Game/Maps/TappyChickenMap -TargetPlat
form=LinuxNoEditor -buildmachine -Unversioned -fileopenlog -abslog="/home/admini
strator/Library/Logs/Unreal Engine/LocalBuildLogs/Cook.txt" -stdout -FORCELOGFLU
SH -CrashForUAT -unattended -AllowStd
Parsed:
Args[1]::
using System.Diagnostics;
using System;
class Program
{
public static bool IsRunningOnMono()
{
return Type.GetType("Mono.Runtime") != null;
}
var c = new MessageClient(framedClient, serializer.Object,
new Mock<BrokenTestDataWithoutMessageIdHandler>().Object,
r => r.RegisterMessage<TestDataWithoutMessageId>(2)
.RegisterMessage<InnaKlasa>(3)
.Register.....);
@Ravadre
Ravadre / gist:10427079
Created April 10, 2014 21:55
N++ quotes
const int nbQuote = 197;
Quote quotes[nbQuote] = {
{"Notepad++", "Good programmers use Notepad++ to code.\nExtreme programmers use MS Word to code, in Comic Sans, center aligned."},
{"Martin Golding", "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."},
{"L. Peter Deutsch", "To iterate is human, to recurse divine."},
{"Seymour Cray", "The trouble with programmers is that you can never tell what a programmer is doing until it's too late."},
{"Brian Kernighan", "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."},
{"Alan Kay", "Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves."},
{"Bill Gates", "Measuring programming progress by lines of code is like measuring aircraft building