Skip to content

Instantly share code, notes, and snippets.

View khaschuluu's full-sized avatar
🐢
You can't catch me up, even when you are Achilles.

KHASCHULUU Munkhbayar khaschuluu

🐢
You can't catch me up, even when you are Achilles.
View GitHub Profile
#!/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
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)
#random сан нь санамсаргүй сонголт хийхэд ашиглагдана. random.choise
#os сан нь terminal дээр тушаал өгөхөд ашиглана. os.system('clear')
import random
import os
#hiden нь доорх үгнүүдээс санамсаргүй утга авна
hided = random.choice([
'bmw',
'kia',
'lamborgini',