Skip to content

Instantly share code, notes, and snippets.

View Senix's full-sized avatar

Connor C Kim Senix

View GitHub Profile
#!/usr/bin/python
#Download all sluggy freelance images
import urllib
while True:
mage = int(raw_input('image to download: '))
mage += 1
lett = 'a'
imagetype = '.gif'
filename = "%s%s.gif" % (mage, lett)
#!/usr/bin/python
#Download all sluggy freelance images
import urllib
mage = int(raw_input('image to download: '))
mage += 1
lett = 'a'
imagetype = '.gif'
filename = "%s%s.gif" % (mage, lett)
Traceback (most recent call last):
File "/home/look/workspace/slug_lancer/src/down.py", line 11, in <module>
os.system('wget http://www.sluggy.com/images/comics/'+mage+lett+imagetype)
TypeError: cannot concatenate 'str' and 'int' objects
#!/usr/bin/python
#Download all sluggy freelance images
import sys, os
while True:
#mage = raw_input('image to download: ')
mage = 110620
mage += 1
lett = 'a'
imagetype = '.gif'
#mage = raw_input('image to download: ')
#lett = raw_input('image letter usually a: ')
#for mage in range(110621, 970825):
# print str(mage)+"a"
#imagetype = '.gif'
#os.system('wget http://www.sluggy.com/images/comics/'+mage+imagetype)
#!/usr/bin/python
a, b = 0, 1
#a, b = b, a + b
fibno = raw_input("ready to calculate: ")
for i in range(int(fibno)):
a, b = b, a + b
print b
print
#!/usr/bin/python
a, b = 0, 1
for i in (int(a, b)):
a, b = b, a + b
print i
your wordsdip:dip
dip
dip
ook@look-T3646:~/workspace/star-chan/src$ ^C
look@look-T3646:~/workspace/star-chan/src$ python sysargv.py
usage: -r -c
look@look-T3646:~/workspace/star-chan/src$ python sysargv.py -c
thats the letter c bro
look@look-T3646:~/workspace/star-chan/src$ python sysargv.py -r
ready
look@look-T3646:~/workspace/star-chan/src$ ^C
look@look-T3646:~/workspace/star-chan/src$
0 0 0 0 0 0 0
0 1 2 3 4 5 6
0 2 4 6 8 10 12
0 3 6 9 12 15 18
0 4 8 12 16 20 24
0 5 10 15 20 25 30
0 6 12 18 24 30 36
0 7 14 21 28 35 42
0 8 16 24 32 40 48