This file contains 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
from urllib.request import urlopen | |
from xml.dom import minidom | |
import collections | |
# extract the headlines from the feed | |
def extractString(doc): | |
str = "" | |
for node in doc.getElementsByTagName('channel'): | |
for title in node.getElementsByTagName('title'): | |
str = str + title.firstChild.data + "\n" |
This file contains 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
from time import sleep #time for our program | |
import webbrowser #web design | |
import math #maths functions | |
import string | |
import random | |
import time | |
def square(x,y): #functions for a square | |
return x*y |
This file contains 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> | |
<span id="div1" style="color:black;" onmouseover="stext()" onmouseout="htext()">TEXT1</span><p /> | |
<hr color="black" /> | |
<span id="div2" style="color:red;" onmouseover="htext()" onmouseout="stext()">Text2</span> | |
function stext() { | |
var x = document.getElementById("div1"); | |
var y = document.getElementById("div2"); | |
x.style.color = 'red'; |
This file contains 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
onmouseover = "this.style.color='white';" onmouseout="this.style.color='blacḱ';" |
This file contains 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
<link rel="icon" href="https://cdn4.iconfinder.com/data/icons/32x32-free-design-icons/32/Microsoft_flag.png"> |
This file contains 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
.blink_text { | |
animation:1s blinker linear infinite; | |
-webkit-animation:1s blinker linear infinite; | |
-moz-animation:1s blinker linear infinite; | |
color: white; | |
font-family:Georgia; | |
text-align:center; | |
font-size:62px; | |
text- | |
} |
This file contains 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
https://stackoverflow.com/questions/643879/css-to-make-html-page-footer-stay-at-bottom-of-the-page-with-a-minimum-height | |
https://www.w3schools.com/bootstrap/bootstrap_navbar.asp |
This file contains 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
video#vid { | |
position: fixed; right: 0; bottom: 0; | |
min-width: 100%; min-height: 100%; | |
width: auto; height: auto; z-index: -100; | |
background-size: cover; | |
margin: 0 auto; | |
} | |
<video autoplay loop id="vid"> | |
<source src="https://www.tesla.com/ns_videos/Model3_WebsiteHero_Master_D.mp4?20170801" type="video/mp4"> |
NewerOlder