This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Khaschuluu | |
# Contact: http://twitter.com/khaschuluu | |
tmp=/tmp/tmp$$ | |
curl http://vimcasts.org/episodes/archive/ | grep -E '\/episodes' | grep '\"archive\"' | sed -r 's#(^.*"\/)(episodes.*)(" class="archive)(".*)#http:\/\/vimcasts\.org/\2#g' > $tmp-pages | |
cat $tmp-pages |\ | |
while read page_uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def maxint(a, b): | |
"""Calculate maximum in a & b""" | |
return ((a+b)+(abs(a-b)))/2 | |
a=int(raw_input('a = ')) | |
b=int(raw_input('b = ')) | |
print maxint(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#random сан нь санамсаргүй сонголт хийхэд ашиглагдана. random.choise | |
#os сан нь terminal дээр тушаал өгөхөд ашиглана. os.system('clear') | |
import random | |
import os | |
#hiden нь доорх үгнүүдээс санамсаргүй утга авна | |
hided = random.choice([ | |
'bmw', | |
'kia', | |
'lamborgini', |
NewerOlder