Skip to content

Instantly share code, notes, and snippets.

import urllib.request
wp = urllib.request.urlopen("http://google.com")
pw = wp.read()
print(pw)
@anandsunku
anandsunku / dom modifier
Created July 6, 2016 06:45
functional dom manipulation
var lbl1 = document.querySelectorAll("label");
lbl1.forEach(function(ol){
if(ol.textContent == "Username:") {
ol.style.backgroundColor = "#f00";
}
});
@anandsunku
anandsunku / summa.txt
Created May 10, 2016 11:42
somuch: html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>this is a test document </title>
<h1>this is first heading always</h1>
</head>
<body>
<ul>
@anandsunku
anandsunku / test:html
Created May 10, 2016 11:40
testthatthing: html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>this is a test document </title>
<h1>this is first heading always</h1>
</head>
<body>
<ul>
@anandsunku
anandsunku / gist.txt
Last active May 10, 2016 00:27
teset
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>this is a test document </title>
<h1>this is first heading always</h1>
</head>
<body>
</body>