Last active
October 16, 2018 10:37
-
-
Save iamralch/9071800 to your computer and use it in GitHub Desktop.
Funny C# code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
HOME: | |
do | |
{ | |
Play("World of Warcraft"); | |
} | |
while (!asleep); | |
Thread.Sleep(12 * 60 * 60 * 1000); | |
WakeUp(coffee); | |
if (you_still_give_a_shit()) | |
goto WORK; | |
else | |
goto OUT; | |
WORK: | |
do | |
{ | |
if (got_something_to_do()) | |
{ | |
LookAtTheMonitor(); | |
Press_Some_Keys(new string[] { "Ctrl+C", "Ctrl+V" }); | |
} | |
Browse("vbox7.com"); | |
Browse("topsport.bg"); | |
Browse("youtube.com"); | |
Have_a_Break(); | |
Have_a_Kitkat(); | |
} | |
while (DateTime.Now.Hour < 5); | |
if (DateTime.Now.Day == 1) | |
{ | |
// at least | |
GetSomeCash(3000); | |
} | |
OUT: | |
switch (mood) | |
{ | |
case Mood.Horny: | |
ChaseChicks("hot!"); | |
break; | |
case Mood.Dull: | |
SmokeSomeStuff(new Stuff[] { "Grass", "Serious Stuff" }); | |
break; | |
default: | |
DrinkBeer(5); | |
break; | |
} | |
goto HOME; | |
} | |
catch (HealthException x) | |
{ | |
SeeTheDoctor(x); | |
} | |
catch (NoMoneyException) | |
{ | |
ShitHappens(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(16,21): error CS0103: The name 'asleep' does not exist in the current context
(14,17): error CS0103: The name 'Play' does not exist in the current context
(18,13): error CS0103: The name 'Thread' does not exist in the current context
(20,13): error CS0103: The name 'WakeUp' does not exist in the current context
(20,20): error CS0103: The name 'coffee' does not exist in the current context
(22,17): error CS0103: The name 'you_still_give_a_shit' does not exist in the current context
(32,21): error CS0103: The name 'got_something_to_do' does not exist in the current context
(34,21): error CS0103: The name 'LookAtTheMonitor' does not exist in the current context
(35,21): error CS0103: The name 'Press_Some_Keys' does not exist in the current context
(40,17): error CS0103: The name 'Browse' does not exist in the current context
(41,17): error CS0103: The name 'Browse' does not exist in the current context
(42,17): error CS0103: The name 'Browse' does not exist in the current context
(44,17): error CS0103: The name 'Have_a_Break' does not exist in the current context
(45,17): error CS0103: The name 'Have_a_Kitkat' does not exist in the current context
(55,17): error CS0103: The name 'GetSomeCash' does not exist in the current context
(61,21): error CS0103: The name 'mood' does not exist in the current context
(64,22): error CS0103: The name 'Mood' does not exist in the current context
(65,21): error CS0103: The name 'ChaseChicks' does not exist in the current context
(67,22): error CS0103: The name 'Mood' does not exist in the current context
(68,21): error CS0103: The name 'SmokeSomeStuff' does not exist in the current context
(68,40): error CS0246: The type or namespace name 'Stuff' could not be found (are you missing a using directive or an assembly reference?)
(71,21): error CS0103: The name 'DrinkBeer' does not exist in the current context
(78,16): error CS0246: The type or namespace name 'HealthException' could not be found (are you missing a using directive or an assembly reference?)
(80,13): error CS0103: The name 'SeeTheDoctor' does not exist in the current context
(82,16): error CS0246: The type or namespace name 'NoMoneyException' could not be found (are you missing a using directive or an assembly reference?)
(84,13): error CS0103: The name 'ShitHappens' does not exist in the current context