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
RICK_ASTLEY = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" | |
url(r'^wp-login\.php$', RedirectView.as_view(url=RICK_ASTLEY)), |
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
It was a bright cold day in April, and the clocks were striking thirteen. | |
Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors of Victory Mansions, though not quickly enough to prevent a swirl of gritty dust from entering along with him. | |
The hallway smelt of boiled cabbage and old rag mats. | |
At one end of it a coloured poster, too large for indoor display, had been tacked to the wall. | |
It depicted simply an enormous face, more than a metre wide: the face of a man of about forty-five, with a heavy black moustache and ruggedly handsome features. | |
Winston made for the stairs. | |
It was no use trying the lift. | |
Even at the best of times it was seldom working, and at present the electric current was cut off during daylight hours. | |
It was part of the economy drive in preparation for Hate Week. | |
The flat was seven flights up, and Winston, who was thirty-nine and had a varicose ulcer above his right ankle, went slowly, resting several times on the way. |
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, re | |
# PUT YOUR SITEMAP URL RIGHT HERE PLEASE | |
SITEMAP_URL = "https://www.example.com/sitemap.xml" | |
# REPORT BACK EVERY X URLS DOWNLOADED | |
REPORT_EVERY = 100 | |
headers = { | |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0", | |
} |
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
addEventListener('fetch', event => { | |
event.respondWith(purgeCache(event.request)) | |
}) | |
async function purgeCache(request) { | |
const url = new URL(request.url) | |
urls = new URLSearchParams(url.search).getAll("url") | |
urls.forEach(function (url, index) { |
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 changetab(section) { | |
document.querySelectorAll(".tabs li").forEach(item => { | |
item.classList.remove("is-active") | |
}) | |
document.querySelector("." + section).parentNode.classList.add("is-active") | |
document.querySelectorAll(".sections .column").forEach(item => { | |
item.classList.add("is-hidden") | |
}) | |
document.querySelectorAll("." + section).forEach(item => { | |
item.classList.remove("is-hidden") |
OlderNewer