Author Topic: [Python] Dubstep Generator  (Read 1293 times)

0 Members and 1 Guest are viewing this topic.

Offline taters

  • E-Librarian
  • Peasant
  • *
  • Posts: 108
  • Cookies: 41
    • View Profile
    • Hacking Localhost
[Python] Dubstep Generator
« on: July 30, 2014, 06:58:32 pm »
Pretty much speaks for itself.

Code: (python) [Select]
import random
import time
import datetime
count = 1
while count:
seconds = datetime.datetime.now()
wait = random.uniform(0.1,2)
if seconds.second % 5 > 0:
print "wub"
else:
print "GRAWWOOOLLLRRRAAANGANG"
time.sleep(wait)
« Last Edit: July 30, 2014, 07:14:35 pm by taters »
<johnyburger> yay, now internet doesnt have any pic from me | <johnyburger> deleted last from my facebook

<Daemon> hahaha i might be willing to sacrifice my asshole for an internship

<connection> because at evilzone, we aren't evil | <Tunnetaan> we're just a little bi curious

<Factionwars> nigger

<scimitar> i thought, the more professionals you put at work at one assignment the more potential

Offline daxda

  • Peasant
  • *
  • Posts: 114
  • Cookies: 112
  • Not the guy you're looking for
    • View Profile
    • Daxda on Github
Re: [Python] Dubstep Generator
« Reply #1 on: July 30, 2014, 07:23:36 pm »
He's my idol!

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: [Python] Dubstep Generator
« Reply #2 on: July 30, 2014, 09:55:15 pm »
I love it. But much too slow. That's how my grandma would create dubstep with her walking frame.

Offline taters

  • E-Librarian
  • Peasant
  • *
  • Posts: 108
  • Cookies: 41
    • View Profile
    • Hacking Localhost
Re: [Python] Dubstep Generator
« Reply #3 on: July 30, 2014, 11:16:39 pm »
Just wait for version 2.0
<johnyburger> yay, now internet doesnt have any pic from me | <johnyburger> deleted last from my facebook

<Daemon> hahaha i might be willing to sacrifice my asshole for an internship

<connection> because at evilzone, we aren't evil | <Tunnetaan> we're just a little bi curious

<Factionwars> nigger

<scimitar> i thought, the more professionals you put at work at one assignment the more potential

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: [Python] Dubstep Generator
« Reply #4 on: July 30, 2014, 11:22:22 pm »
Why define "count" to be one, and not simply do:

Code: [Select]
while 1:
?

Anyway, lulz at the script.
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline taters

  • E-Librarian
  • Peasant
  • *
  • Posts: 108
  • Cookies: 41
    • View Profile
    • Hacking Localhost
Re: [Python] Dubstep Generator
« Reply #5 on: July 31, 2014, 09:20:11 pm »
Why define "count" to be one, and not simply do:

Code: [Select]
while 1:
?

Anyway, lulz at the script.

Because I originally had it set to 100 and had the loop subtract 1 every cycle, but it appeared to be funnier with it being an endless loop. I went with the first thing that popped into my head.
<johnyburger> yay, now internet doesnt have any pic from me | <johnyburger> deleted last from my facebook

<Daemon> hahaha i might be willing to sacrifice my asshole for an internship

<connection> because at evilzone, we aren't evil | <Tunnetaan> we're just a little bi curious

<Factionwars> nigger

<scimitar> i thought, the more professionals you put at work at one assignment the more potential

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: [Python] Dubstep Generator
« Reply #6 on: August 01, 2014, 10:22:40 am »
Wait, since when does taters code? i swear this is my first code shit i have ever seen from taters. I should get out of this shit hole of Africa; i am way too behind.
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline taters

  • E-Librarian
  • Peasant
  • *
  • Posts: 108
  • Cookies: 41
    • View Profile
    • Hacking Localhost
Re: [Python] Dubstep Generator
« Reply #7 on: August 01, 2014, 03:25:08 pm »
Wait, since when does taters code? i swear this is my first code shit i have ever seen from taters. I should get out of this shit hole of Africa; i am way too behind.

I was a professional programmer for 3 years before moving into systems administration and then security. I just don't often show off.

Also, I decided to learn a bit of python a few days ago and was bored. So that helps too.
<johnyburger> yay, now internet doesnt have any pic from me | <johnyburger> deleted last from my facebook

<Daemon> hahaha i might be willing to sacrifice my asshole for an internship

<connection> because at evilzone, we aren't evil | <Tunnetaan> we're just a little bi curious

<Factionwars> nigger

<scimitar> i thought, the more professionals you put at work at one assignment the more potential