Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ruby/py fags && web devs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
teeigeryuh
Master Cheater
Reputation: 25

Joined: 13 Oct 2008
Posts: 261
Location: The netherlands

PostPosted: Wed Apr 15, 2015 9:39 pm    Post subject: ruby/py fags && web devs Reply with quote

Any of you like using templating engines?
care to name a good one? currently looking at liquid for ruby


also...
how2 improve this code? will be aiming for a crapathon of dices being rolled simultaneously
inb4removesleep

Code:
def dicer(dices)
    if dices == nil
        dices == 1
    end
  dices.to_i.times {
          print rand(1..6).to_s + " "
      }
      print "\n"
  sleep(0.2)
end

if ARGV[0] == "test" then
    15.times { dicer }
end

if ARGV[1] == nil then
    ARGV[1] = 1
end
ARGV[1].to_i.times {dicer(ARGV[0])}

_________________

ლ(╹◡╹ლ)
Back to top
View user's profile Send private message
deleted19776
I post too much
Reputation: 11

Joined: 29 Apr 2007
Posts: 3838

PostPosted: Wed Apr 15, 2015 11:15 pm    Post subject: Reply with quote

Sorry I don't know Ruby, but I can help with Python. Don't know what the hell ARGV is.
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Wed Apr 15, 2015 11:44 pm    Post subject: Reply with quote

Waxxup wrote:
Sorry I don't know Ruby, but I can help with Python. Don't know what the hell ARGV is.


Same thing it does in Python, C, and most other languages.

Code:

import sys
for arg in sys.argv:
    print arg

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
AverageAzn247
Grandmaster Cheater
Reputation: 34

Joined: 01 Oct 2007
Posts: 909
Location: Austin,TX with 72 virgins

PostPosted: Fri Apr 17, 2015 10:18 pm    Post subject: Reply with quote

Waxxup wrote:
Sorry I don't know Ruby, but I can help with Python. Don't know what the hell ARGV is.
command line arguments.
_________________


Waxxup wrote:
What are Night Elves?
A girl group?
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites