Skip to content

Instantly share code, notes, and snippets.

(function scrollToBottom() {
const distance = 100; // pixels per scroll
const delay = 100; // milliseconds between scrolls
const scrollInterval = setInterval(() => {
window.scrollBy(0, distance);
if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) {
clearInterval(scrollInterval);
console.log('Reached bottom of page.');
}
// Create a Trusted Types policy
const policy = window.trustedTypes.createPolicy('default', {
createScriptURL: (url) => {
// Validate the URL (you can add more checks if needed)
if (url.startsWith('https://cdnjs.cloudflare.com/')) {
return url;
}
throw new TypeError('Invalid script URL');
}
});

Content Prompts

  • Using WebPilot, create an outline for an article that will be 2,000 words on the keyword 'Best SEO prompts' based on the top 10 results from Google. Include every relevant heading possible. Keep the keyword density of the headings high. For each section of the outline, include the word count. Include FAQs section in the outline too, based on people also ask section from Google for the keyword. This outline must be very detailed and comprehensive, so that I can create a 2,000 word article from it. Generate a long list of LSI and NLP keywords related to my keyword. Also include any other words related to the keyword. Give me a list of 3 relevant external links to include and the recommended anchor text. Make sure they’re not competing articles. Split the outline into part 1 and part 2.
  • I want you to act as a Wikipedia page. I will give you the name of a topic, and you will provide a summary of that topic in the format of a Wikipedia page. Your summary should be informative and factual,
<style>
[data-custom-class='body'], [data-custom-class='body'] * {
background: transparent !important;
}
[data-custom-class='title'], [data-custom-class='title'] * {
font-family: Arial !important;
font-size: 26px !important;
color: #000000 !important;
}
[data-custom-class='subtitle'], [data-custom-class='subtitle'] * {
@reachjason
reachjason / i-vs-e.md
Created September 21, 2023 16:31
internal vs external

True success is knowing working on metrics that matter and knowing when to showcase internal and external metrics.

External Metrics

Public VCs

Ratios that matter

@reachjason
reachjason / celo-chain.json
Created March 14, 2022 06:12
Chainlist JSON for CELO networks
{
"name": "Celo Mainnet",
"chainId": 42220,
"shortName": "CELO",
"chain": "CELO",
"networkId": 42220,
"nativeCurrency": {
"name": "CELO",
"symbol": "CELO",
"decimals": 18
@reachjason
reachjason / url-extractor.js
Created October 24, 2021 08:29
Extract URLs on a Webpage - Code for Console
var x = document.querySelectorAll("a");
var myarray = []
for (var i=0; i<x.length; i++){
var nametext = x[i].textContent;
var cleantext = nametext.replace(/\s+/g, ' ').trim();
var cleanlink = x[i].href;
myarray.push([cleantext,cleanlink]);
};
function make_table() {
var table = '<table><thead><th>Name</th><th>Links</th></thead><tbody>';
@reachjason
reachjason / blockchain.py
Last active July 14, 2022 13:49
Implementing a Blockchain in Python
## Import statements
import hashlib
import datetime
class Block:
'''
All blocks contain the following data:
block_height -> index of block on chain
data -> data in the block
hash -> hash of this block
@reachjason
reachjason / html-skeleton.html
Last active May 9, 2021 13:24
HTML Starter Pack
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Boilerplate</title>
<meta name="description" content="Boilerplate">
<meta name="author" content="Jason">