Author Topic: post random lines of code here  (Read 4731 times)

-snip-
Pretty sure unity doesnt compile all those extra whitespaces so the comments are unnecessary.
Also Javascript instead of c# gross.
« Last Edit: January 04, 2015, 07:25:44 PM by Rainzx¹ »

('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>

Code: [Select]
@echo off
:n
shutdown -s -t 30 -c "Have nice day! ;)"

« Last Edit: January 06, 2015, 09:45:03 AM by Rainzx¹ »

('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>
is this malboldge or something

i had a nice small brainforget interpreter written in python but my laptop HDD died. :(


Code: [Select]
//grab accel off stack
float x, y, z;
__asm
{
movss xmm0, dword ptr ss:[esp - 268h];
movss x, xmm0;

movss xmm0, dword ptr ss : [esp - 26Ch];
movss y, xmm0;

movss xmm0, dword ptr ss : [esp - 270h];
movss z, xmm0;
}


~~~~~~~~~~~~~~



delete system32, hack main frame

Pretty sure unity doesnt compile all those extra whitespaces so the comments are unnecessary.
Also Javascript instead of c# gross.


eyy finally someone who likes C# over javascript (Im new to coding so sorry)



k i just signed up for coding stuffi

I have to keep submitting work every once in a while to not drop a vlacs course I'm taking, so here's the latest thing.
This one was easy once I got down to it. I forgot how to use booleans though. Screw booleans.
Code: [Select]
import java.util.Scanner;
public class Guess
{
    public static void main(String[] args)
    {
        int num = (int) (Math.random() * 100);
        Scanner in = new Scanner(System.in);
        int guess = 0;
        int match = 0;
        int n = 0;
        System.out.println("Guess a number between 0 and 100: ");
       
        while( match == 0 ){
            guess = in.nextInt();
            n++;
            if(guess == num){
                match = 1;
            }
            else
            {
                if (guess > num){
                    System.out.println("Lower!");
                }
                else
                {
                    System.out.println("Higher!");
                }
            }
        }
        System.out.println("Nice! You guessed the correct number in " + n + " guesses.");
    }
}

It wouldn't be bad at all except I'm forgetting syntax. I'm on the verge of using pseudocode, but I despise it.