Skip to content

Instantly share code, notes, and snippets.

View shravan-shandilya's full-sized avatar

Shravan Shandilya shravan-shandilya

View GitHub Profile
Early video scrolling function:
Link: http://lingrok.org/xref/linux-linus/arch/x86/boot/compressed/misc.c#150
How: copy the latest line to previous line's video memory array,write " " to latest line
GameOfThrones,4238680
Tyrion Lannister,488308
Cersei Lannister,95663
Daenerys Targaryen,442872
Jon Snow,1507862
Sansa Stark,86925
Arya Stark,113349
Jorah Mormont,7175
Jaime Lannister,47086
Samwell Tarly,53436
GameOfThrones
Tyrion Lannister
Cersei Lannister
Daenerys Targaryen
Jon Snow
Sansa Stark
Arya Stark
Jorah Mormont
Jaime Lannister
Samwell Tarly
#!/usr/bin/python
from bs4 import BeautifulSoup
import requests
characters = open("temp.txt","r")
twitter_data = open("twitter_data.txt","w+")
url = "https://twitter.com/search?f=users&q="
account_url="https://twitter.com"
for char in characters:
print "Getting data for ",char
soup = BeautifulSoup(requests.get(url+char.replace(" ","%20")).content,"html.parser")
Verifying that +shravan is my blockchain ID. https://onename.com/shravan
curl "https://www.unocoin.com/trade?all" > tee >(echo "Buy:" $(jq '.buy') "https://www.unocoin.com/buy") >(echo "Sell:" $(jq '.sell') "https://www.unocoin.com/sell") | cut -d} -f2"
from twisted.web import server, resource
from twisted.internet import reactor
from pygeocoder import Geocoder
class Simple(resource.Resource):
isLeaf = True
def render_GET(self, request):
print "Got a GET Request"
def render_POST(self, request):
__author__ = 'Shravan'
from pygeocoder import Geocoder #import Geocoder
results = Geocoder.reverse_geocode(12.2853, 76.6423) #Pass the required lat and long combo here
print results #The reverse geocoding result is stored and printed