Author Topic: Making up code for you habits  (Read 9159 times)

0 Members and 1 Guest are viewing this topic.

Offline TheBassetHound

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +7/-3
  • GLaDOS is a potato
    • View Profile
Making up code for you habits
« on: May 23, 2013, 09:38:20 pm »
When I'm outside wearing a jacket, I always put my hands in my pockets. I walked out of school today, and tried to put my hands in my pockets. Then I thought, 'Wait...
:If temp<45 and coat=1
:prgmHANDSINPOCKET
:Else
:prgmHANDSDOWN
Coat=0 and temp is over 50... So no hands.'
A: I need a life, and
B: Have you ever had times like this? Can you come up with a makeshift program for your habits? Please let me know I'm not the only one who does this...
TheBassetHound


Aperture Science Handheld Portal Device
 /––––\    (¯\       /¯—/¯¯–______––
/   /\/˜¯¯¯\  \____/     \
   /          \___________\
 –(           |____________\
   \   /¯¯--•¦=––––––––––––\
    \/           ¯\==========\
\     ¯¯——__–¯\—————––\
 \––––___–¯–¦__                   \ √=_
                   \____——¯¯¯¯¯¯¯¯

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Making up code for you habits
« Reply #1 on: May 23, 2013, 10:09:01 pm »
Temp and coat would have to be T and C, respectively, unless you're running 68k Basic, in which case the program calls would be hipocket() and hdsdown(), respectively. Even with the 83+ variant, you'll need to shorten the programs to prgmHIPOCKET and prgmHDSDOWN.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Making up code for you habits
« Reply #2 on: May 24, 2013, 01:10:16 am »
When I'm outside wearing a jacket, I always put my hands in my pockets. I walked out of school today, and tried to put my hands in my pockets. Then I thought, 'Wait...
:If temp<45 and coat=1
:prgmHANDSINPOCKET
:Else
:prgmHANDSDOWN
Coat=0 and temp is over 50... So no hands.'
A: I need a life, and
B: Have you ever had times like this? Can you come up with a makeshift program for your habits? Please let me know I'm not the only one who does this...
You forgot to End your If.
* Hayleia runs
:P
« Last Edit: May 24, 2013, 01:10:34 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Making up code for you habits
« Reply #3 on: May 24, 2013, 01:27:04 am »
def main():
   while(onComp):
      while(steamOpened):
         useSteam()

def useSteam():
   checkStore()
   game = chooseGame()
   play(game)

def checkStore():
   for game in catalogue:
      if game.onSale and game.getCost() <= $10:
         buy(game)
main()

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Making up code for you habits
« Reply #4 on: May 24, 2013, 01:30:38 am »
When I get home...

door.unlock();
door.open();
if(!hairdressingsalon.open) door.lock();
schoolbag.get(laptop, plug);
plug.on(wall, laptop);
laptop.start();
laptop.exec("/usr/bin/google-chrome http://www.omnimaga.org/");

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Making up code for you habits
« Reply #5 on: May 24, 2013, 02:16:16 am »
def getHome():
    if !omnimaga:
        laptop.exec("firefox http://www.omnimaga.org")
    if feelingClever:
        laptop.exec("notepad++")
    else:
        laptop.exec("KSP")
getHome()

Some people need a high five in the face... with a chair.
~EC

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Making up code for you habits
« Reply #6 on: May 24, 2013, 06:57:03 am »
.COMPY
#Axiom(RUNPRGM)

If FEELCLEVER
CODE()
ElseIf FEELADV
TWEAKLINUX()
Else
OMNI()
End

Return

Lbl CODE
RunPrgm(gedit TheGAME.z80)
While 1
!If rand^5
OMNI()
End
End
Return

Lbl TWEAKLINUX
RunPrgm(linux)
MessStuffUp
Return

Lbl OMNI
RunPrgm(chrome http://www.omnimaga.org)
While 1
End

:P
« Last Edit: May 24, 2013, 06:57:42 am by Streetwalker »

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Making up code for you habits
« Reply #7 on: May 24, 2013, 04:10:25 pm »
gethome.c
Code: [Select]
int main(void) {
  if (doorIsLocked()) {
    if (haveKey())
      unlockDoor();
    else {
      if (havePhone())
        callParents();
      else exit(1);
      }
    }
  }
  openDoor();
  if (!parentsPresent()) {
    SESSION* s = turnOnComputer();
    if (!isOpen(s, "chrome"))
      openPrgm(s, "chrome");
    check(s, "chrome", "http://www.omnimaga.org);
    }
  else {
    greetParents();
  }
}
}
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Making up code for you habits
« Reply #8 on: May 24, 2013, 04:55:56 pm »
while(true)
     sleep();

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Making up code for you habits
« Reply #9 on: May 24, 2013, 05:05:41 pm »
:"Bed"->Str1
:"Insomnia"->Str2
:"Me"->Str3
:DelVar Str2
:Str1+Str3

Just something I wish I could do :P

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Making up code for you habits
« Reply #10 on: May 24, 2013, 05:19:42 pm »
Code: [Select]
while(teenager) {
    if(athome){
        if(withcompany){
            beLazy();
            getOnComputer();
        } else {
            beLazy();
            getOnComputer();
        }
    } else if(atschool) {
        school();
    } else if(atstore && withmom) {
        askForCandy();
    } else {
        doNothing();
    }
}
I like milk.

Offline TheBassetHound

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +7/-3
  • GLaDOS is a potato
    • View Profile
Re: Making up code for you habits
« Reply #11 on: May 24, 2013, 09:42:26 pm »
while(true)
     sleep();
My sentiments exactly.

Oh and another one:
:If inRoom=1and iPod=1
:iPod->dock
:End
:Else
:prgmWALKBACK
:End
:If Dock=1 and Sister=0
:putOn Pandora
:End
:If Sister=1
:prgmGTFO
:End
:Else
:End
:If Pandora=BrunoMars-Treasure
:prgmSING

And these aren't meant to be perfect, just FYI.
« Last Edit: May 24, 2013, 09:48:01 pm by TheBassetHound »
TheBassetHound


Aperture Science Handheld Portal Device
 /––––\    (¯\       /¯—/¯¯–______––
/   /\/˜¯¯¯\  \____/     \
   /          \___________\
 –(           |____________\
   \   /¯¯--•¦=––––––––––––\
    \/           ¯\==========\
\     ¯¯——__–¯\—————––\
 \––––___–¯–¦__                   \ √=_
                   \____——¯¯¯¯¯¯¯¯

Offline Joshuasm32

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 142
  • Rating: +19/-7
    • View Profile
    • Network
Re: Making up code for you habits
« Reply #12 on: May 25, 2013, 10:30:20 am »
lol, i was about to optimize and fix...
My name is Josh and I a developer at Moonzean. I enjoy Radiohead, web development, Java, and cryptograms.
Spoiler For No Surprises, by Radiohead:
A heart that's full up like a landfill
A job that slowly kills you
Bruises that won't heal

You look so tired unhappy
Bring down the government
They don't, they don't speak for us

I'll take a quiet life
A handshake of carbon monoxide

And no alarms and no surprises
No alarms and no surprises
No alarms and no surprises
Silent, silent

This is my final fit
My final bellyache

With no alarms and no surprises
No alarms and no surprises
No alarms and no surprises please

Such a pretty house
And such a pretty garden

No alarms and no surprises
No alarms and no surprises
No alarms and no surprises please

Offline TheBassetHound

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +7/-3
  • GLaDOS is a potato
    • View Profile
Re: Making up code for you habits
« Reply #13 on: June 05, 2013, 10:13:36 pm »
I am pretty bad at programming, but I'm taking a class this summer to fix that. I like people on Omni (and Ponies too [There, sorunome {and Streetwalker}]), you're all nice.

:If BOBSAYZHAI
:GetVocal- : "Hello"
:If BOBSAYZPIE
:GetVocal-?: "What flavor"
:If BOBSAYZPIEFLAVOR
:Happy->Mood

Yay I like random :D ("I baked you a pie." "Oh boy! What flavor?" "Pie flavor.")
So... yeah
« Last Edit: June 06, 2013, 09:01:13 pm by TheBassetHound »
TheBassetHound


Aperture Science Handheld Portal Device
 /––––\    (¯\       /¯—/¯¯–______––
/   /\/˜¯¯¯\  \____/     \
   /          \___________\
 –(           |____________\
   \   /¯¯--•¦=––––––––––––\
    \/           ¯\==========\
\     ¯¯——__–¯\—————––\
 \––––___–¯–¦__                   \ √=_
                   \____——¯¯¯¯¯¯¯¯

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Making up code for you habits
« Reply #14 on: June 05, 2013, 10:33:54 pm »
(and Ponies too [There, sorunome])
You forgot me. D: