This file contains hidden or 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
CLS | |
SCREEN 13 | |
PRINT "CALCULATOR-" | |
PRINT "ENTER YOUR EXPRESSION" | |
PRINT "EXAMPLE-58 * 20" | |
PRINT "THE TERMS SHOULD BE SEPARATED BY SPACE OR ERROR WILL OCCUR" | |
INPUT "ENTER YOUR EXPRESSION-"; EXP$ | |
EXP$ = EXP$ + " " |
This file contains hidden or 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
<html> | |
<body> | |
<ul> | |
<li>link 1</li> | |
<li>link 1</li> | |
<li>link 1</li> | |
<li>link 1</li> | |
</ul> | |
</body> | |
</html> |
This file contains hidden or 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
import requests | |
import json | |
def main(): | |
handle = raw_input('Twitter handle(without @)-') | |
r = requests.get('https://api.twitter.com/1/statuses/user_timeline/'+handle+'.json?callback=?&count=5') | |
obj = json.loads(r.content) | |
for i in range(0,5): | |
print "-"*24 | |
print obj[i]['user']['name'] + " tweeted -" |
This file contains hidden or 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
<div id="container"> | |
<div class="slider" style="background:#B5E61D;"> | |
<button>lala</button> | |
</div> | |
<div class="slider" style="background:#00A2E8;"></div> | |
<div class="slider" style="background:#4AD977;"></div> | |
<div class="slider" style="background:#FFC90E;"></div> | |
<div class="slider" style="background:#3F48CC;"></div> | |
</div> |
This file contains hidden or 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
import requests | |
uri = "http://www.sofworld.org/imo-second-level-result/JH02800800" | |
for i in range(1,10): | |
print i | |
r = requests.get( uri+str(i) ) | |
if "KINSHUK" in r.content: | |
print "Found it! I'm opening it in the browser now" | |
import webbrowser |
This file contains hidden or 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
import requests | |
import BeautifulSoup | |
def main(): | |
print "Hey! Let's start Doing things" | |
done=False; i = 0 ; acc = "<html><body>" | |
while (i<=50): | |
i = i + 2 | |
print "Getting {0}".format(i) | |
r = requests.get( |
This file contains hidden or 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 main(): | |
print "Calculating pi. Calm down,bro!" | |
acc = 0.0 | |
for i in range(1,1000001,4): | |
acc += 4/float(i) | |
acc -= 4/float(i+2) | |
print i | |
This file contains hidden or 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
# This is a program trying to implement Verbal Expressions | |
# See this for more info - http://verbalexpressions.github.io/ | |
def VerEx | |
return VerExClass.new | |
end | |
class VerExClass | |
@regex = "" # The main regex variable |
This file contains hidden or 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
#!/usr/bin/python | |
X = "X" | |
O = "O" | |
T = "T" | |
cases = ["", | |
"X won", | |
"Draw", | |
"Game has not completed", | |
"O won"] |
This file contains hidden or 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
#!/usr/bin/env python | |
adj = {} | |
m = """012 | |
345 | |
678 | |
""" | |
# Contruct adj list |
OlderNewer