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
<!DOCTYPE HTML > | |
<head> | |
<title> | |
Commentary and Fact Check of Dr. Will Powers’s Transgender Care Presentation | |
</title> | |
</head> | |
<body> | |
<h1 id="commentary-and-fact-check-of-dr-will-powerss-transgender-care-presentation"> |
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 requests | |
from bs4 import BeautifulSoup | |
urlbase = "https://www.powercut105.com/FindOperator?Postcode=" | |
def getalpha(postcode): | |
postcodeList = postcode.split(" ") | |
url = urlbase + "+".join(postcodeList) | |
r = requests.get(url) | |
return BeautifulSoup(r.content,"html.parser").find("span",class_="highlight_blockletter").text |
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
########### GUIDANCE | |
# tweet deleter that deletes all of the tweets in an archive(twitter often leaves a few of your most recent ones out of the archive- use an api based deleter to do these) from the first ones you tweeted to the latest. | |
# no fancy options(like checking for highly favd tweets/etc) | |
# common errors: twitter won't let you unretweet tweets from accounts you don't have access to- expect a few "Sorry, you are not authorized to see this status" errors at the bottom/as you go through | |
# tweets that aren't deleted are shown twice: once as an error message as you progress through, and once at the bottom in a summary of all errors. | |
# takes about 1h/10k tweets | |
# hacky and ugly don't judge me | |
############ USAGE GUIDE | |
# download your twitter archive and unzip it. | |
# set the archive_folder variable in the "edit this" section to the path you unzipped it to |
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
function(d, s, a, i, j, r, l, m, t) { | |
try { | |
l = d.getElementsByTagName('a'); | |
t = d.createElement('textarea'); | |
for (i = 0; l.length - i; i++) { | |
try { | |
a = l[i].href; | |
s = a.indexOf('/cdn-cgi/l/email-protection'); | |
m = a.length; | |
if (a && s > -1 && m > 28) { |
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 processing.pdf.*; | |
//set up some constants | |
Boolean pdfOut = true;//are we outputting to pdf or to screen? | |
float averageDistance = 72*2 ;//how far between points, in inches/72 or pixels depending on output | |
void setup() { | |
background(255, 255, 255); | |
if (pdfOut) { | |
size(1684, 2383, PDF, "output.pdf"); | |
} | |
else { |
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
@-moz-document domain("twitter.com") { | |
.global-nav .container{ | |
max-width:890px; | |
} | |
#global-actions>li{ | |
width:96.6666667px; | |
} | |
#global-actions > li > a{ | |
padding:0; | |
display:block; |
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
void drawStep(int xStepIn){ | |
drawGrid(8,xStepIn); | |
}; | |
//helpers | |
void drawGrid(int xnum, int xOffset){ | |
//draws xnum by ynum modules on the canvas, sperated by xgutter and ygutter | |
int yOffset = (height % ( width / xnum ))/2 ; | |
int ynum = (height/( width / xnum )); | |
for (int w = -1; w < xnum; w++) { | |
for (int d = -1; d < ynum; d++){ |
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
.global-nav .container{ | |
max-width:890px; | |
} | |
#global-actions>li{ | |
width:96.6666667px; | |
} | |
#global-actions > li > a{ | |
padding:0; | |
display:block; | |
margin:0 auto; |