Skip to content

Instantly share code, notes, and snippets.

View svineet's full-sized avatar

Sai Vineet svineet

View GitHub Profile
@svineet
svineet / index.html
Created February 18, 2013 15:55
A CodePen by Sai Vineet. Dropdown Menu! - A simple dropdown menu in CSS3 using transitions.
<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>
@svineet
svineet / tweets.py
Created January 17, 2013 10:55
A python program to fetch and print out the last 5 tweets made by a user(taken as input) using the twitter REST api.
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 -"
@svineet
svineet / zenexample.htm
Created October 19, 2012 09:25
Example of complex html structure
<html>
<body>
<ul>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
</ul>
</body>
</html>
@svineet
svineet / Calc.bas
Created September 30, 2012 07:19
QBASIC Code for a simple calculator program
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$ + " "