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> | |
<head> | |
<title>Firebase Chat Example</title> | |
<script type="text/javascript" src="https://cdn.firebase.com/v0/firebase.js"></script> | |
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> | |
</head> | |
<body> | |
<input type='text' id='nameInput' placeholder="Your Url"> |
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> | |
<head> | |
<title>Image Grab</title> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'> | |
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$("#toggle").click(function() { $("img").slidetoggle("slow"); }; | |
</script> |
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 webapp2 | |
form = """ | |
<form title="Google Something" align = "center" action = "http://www.google.com/search" target="_blank"> | |
<input name = "q"> <input type = "submit" value="Google search"> | |
</form> | |
<br> | |
<form title="Search something on Duck Duck go" align = "center" action = "http://www.duckduckgo.com/search" target="_blank"> | |
<input name = "q"> <input type = "submit" value="DuckDuckGo search"> | |
</form> |
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
@echo off | |
title Ok so get ready to be annoyed, | |
:annoy | |
msg * Hello %username%, I am Saurav | |
msg * How are you %username%? | |
msg * I am fine. | |
msg * ....... | |
msg * this is a whale , '____________________________' | |
msg * I hope this annoying string of messages finds you in the best of your health. | |
msg * Since this is one way conversation, almost all of the talking will be done by me only. |
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 do_it(x,y,z): | |
# To Do : for x in z: replace x by y,again and again | |
# 1st step: if x appears in z | |
# 2nd step: then replce x by y | |
for i in range(len(z)-3): | |
if z[i:i+3]==x: # I cannot understand why this is not working , I set | |
z=z[:i]+y+z[i+3:] # the condition that if x is in z then modify z as follows | |
i=0 # and then I set i as 0 , and go over the loop again, |
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 remove_tags(s): | |
li=[] | |
for i in range(len(s)): | |
b=s.find('>',i) | |
e=s.find('<',b+1) | |
p=s[b+1:e] | |
if len(p)!=0 : | |
li.append(p) | |
for e in range(0,len(li)-1,1): |
NewerOlder