Author Topic: More subroutine functions  (Read 10004 times)

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #45 on: March 24, 2009, 11:07:27 AM »
*click* *snicker* Ive already started my virus. *sneer*
((0 1 1 1 0 1 0 0) (0 1 1 0 1 0 0 0) (0 1 1 0 0 1 0 1) (0 1 0 1 0 0 1 1) (0 1 1 1 0 1 1 1) (0 1 1 0 0 0 0 1) (0 1 1 0 1 1 0 1) (0 1 1 1 0 0 0 0) (0 0 1 0 1 1 1 0) (0 1 1 0 1 1 1 1) (0 1 1 1 0 0 1 0) (0 1 1 0 0 1 1 1) (0 0 1 0 0 0 0 0) (0 1 1 0 1 0 0 1) (0 1 1 1 0 0 1 1) (0 0 1 0 0 0 0 0) (0 1 1 1 0 1 0 0) (0 1 1 0 1 0 0 0) (0 1 1 0 0 1 0 1) (0 0 1 0 0 0 0 0) (0 1 1 1 0 0 0 0) (0 1 1 0 1 1 0 0) (0 1 1 0 0 0 0 1) (0 1 1 0 0 0 1 1) (0 1 1 0 0 1 0 1) (0 0 1 0 0 0 0 0) (0 1 1 1 0 1 0 0) (0 1 1 0 1 1 1 1) (0 0 1 0 0 0 0 0) (0 1 1 0 0 1 1 1) (0 1 1 0 0 1 0 1) (0 1 1 1 0 1 0 0) (0 0 1 0 0 0 0 0) (0 1 1 0 1 0 0 0) (0 1 1 0 0 1 0 1) (0 1 1 0 1 1 0 0) (0 1 1 1 0 0 0 0) (0 0 1 0 1 1 1 0))

It sure is. :)
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9719
Re: More subroutine functions
« Reply #46 on: March 24, 2009, 11:13:21 AM »
It sure is. :)
*gack* We've been compromised! Quick start the `XOR-5000'.
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #47 on: March 24, 2009, 11:20:47 AM »
*gack* We've been compromised! Quick start the `XOR-5000'.

lol

Some python ...

Code: [Select]
#!/usr/bin/env python

# Python 3.x :)

binList=[[0, 1, 1, 1, 0, 1, 0, 0],
         [0, 1, 1, 0, 1, 0, 0, 0],
         [0, 1, 1, 0, 0, 1, 0, 1],
         [0, 1, 0, 1, 0, 0, 1, 1],
         [0, 1, 1, 1, 0, 1, 1, 1],
         [0, 1, 1, 0, 0, 0, 0, 1],
         [0, 1, 1, 0, 1, 1, 0, 1],
         [0, 1, 1, 1, 0, 0, 0, 0],
         [0, 0, 1, 0, 1, 1, 1, 0],
         [0, 1, 1, 0, 1, 1, 1, 1],
         [0, 1, 1, 1, 0, 0, 1, 0],
         [0, 1, 1, 0, 0, 1, 1, 1],
         [0, 0, 1, 0, 0, 0, 0, 0],
         [0, 1, 1, 0, 1, 0, 0, 1],
         [0, 1, 1, 1, 0, 0, 1, 1],
         [0, 0, 1, 0, 0, 0, 0, 0],
         [0, 1, 1, 1, 0, 1, 0, 0],
         [0, 1, 1, 0, 1, 0, 0, 0],
         [0, 1, 1, 0, 0, 1, 0, 1],
         [0, 0, 1, 0, 0, 0, 0, 0],
         [0, 1, 1, 1, 0, 0, 0, 0],
         [0, 1, 1, 0, 1, 1, 0, 0],
         [0, 1, 1, 0, 0, 0, 0, 1],
         [0, 1, 1, 0, 0, 0, 1, 1],
         [0, 1, 1, 0, 0, 1, 0, 1],
         [0, 0, 1, 0, 0, 0, 0, 0],
         [0, 1, 1, 1, 0, 1, 0, 0],
         [0, 1, 1, 0, 1, 1, 1, 1],
         [0, 0, 1, 0, 0, 0, 0, 0],
         [0, 1, 1, 0, 0, 1, 1, 1],
         [0, 1, 1, 0, 0, 1, 0, 1],
         [0, 1, 1, 1, 0, 1, 0, 0],
         [0, 0, 1, 0, 0, 0, 0, 0],
         [0, 1, 1, 0, 1, 0, 0, 0],
         [0, 1, 1, 0, 0, 1, 0, 1],
         [0, 1, 1, 0, 1, 1, 0, 0],
         [0, 1, 1, 1, 0, 0, 0, 0],
         [0, 0, 1, 0, 1, 1, 1, 0]]
 
def binListToInt(b):
    power=result=0
    for i in range(7,-1,-1):
        result+=2**power if b[i] else 0
        power+=1
    return result

for x in [chr(x) for x in [binListToInt(x) for x in binList]]:
    print(x,end="")

>>> theSwamp.org is the place to get help.

PYFTW

:D
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9719
Re: More subroutine functions
« Reply #48 on: March 24, 2009, 11:31:52 AM »
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #49 on: March 24, 2009, 12:38:39 PM »
Where's the kaboom!!
























There's supposed to be an earth shattering kaboom!!
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

ronjonp

  • Needs a day job
  • Posts: 7327
Re: More subroutine functions
« Reply #50 on: March 24, 2009, 12:45:02 PM »
Where's the kaboom!!
























There's supposed to be an earth shattering kaboom!!

 :-D
"Capture that creature and return my illudium pu36 explosive space modulator!"

*picky picky  :-P
« Last Edit: March 24, 2009, 01:04:28 PM by ronjonp »

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #51 on: March 24, 2009, 12:54:55 PM »
"Capture that creature and return my elunium pu36 explosive space modulator!"

All these years I thought it was "illudium pu 36 explosive space modulator", am I wrong !!??

Oh the shame.
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9719
Re: More subroutine functions
« Reply #52 on: March 24, 2009, 12:58:16 PM »
I thought it was "Illudium" but i cant spell my own name so...
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

T.Willey

  • Needs a day job
  • Posts: 5247
Re: More subroutine functions
« Reply #53 on: March 24, 2009, 01:03:28 PM »
Quote
[Marvin notices that his space modulator is missing and he discovers Bugs running off with it]
Marvin the Martian: The illudium Q-36 explosive space modulator! That creature has stolen the space modulator!

[ http://www.imdb.com/title/tt0051701/quotes ]
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #54 on: March 24, 2009, 01:10:04 PM »
Tim FTW!
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

T.Willey

  • Needs a day job
  • Posts: 5247
Re: More subroutine functions
« Reply #55 on: March 24, 2009, 01:30:31 PM »
Tim FTW!

Somethings are easier to search for than others.  :wink:
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

gskelly

  • Newt
  • Posts: 185
Re: More subroutine functions
« Reply #56 on: March 24, 2009, 01:40:35 PM »
You folks are quite a hoot! Got me laughing out loud sitting in a room by myself!!!
Bricscad v12

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #57 on: March 24, 2009, 01:46:18 PM »
You folks are quite a hoot! Got me laughing out loud sitting in a padded room by myself!!!

 :loco:
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

gskelly

  • Newt
  • Posts: 185
Re: More subroutine functions
« Reply #58 on: March 24, 2009, 01:48:39 PM »
Your not the first to tell me that :-)
Bricscad v12

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: More subroutine functions
« Reply #59 on: March 24, 2009, 01:49:06 PM »
Ahhh, the voices are back?
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst