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
function downloadDocWithImagesInZip() { | |
const doc = DocumentApp.getActiveDocument(); | |
const docName = doc.getName(); | |
const docBody = doc.getBody(); | |
const zip = Utilities.newBlob('', 'application/zip', `${docName}.zip`).getAs('application/zip'); | |
let content = ''; | |
let imageCount = 0; | |
const totalElements = docBody.getNumChildren(); | |
for (let i = 0; i < totalElements; i++) { |
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
<prompt> | |
<html-content> | |
<!-- Paste the HTML content of the webpage here --> | |
</html-content> | |
Now that the HTML content of the webpage is provided above, please analyze the webpage and evaluate the following features to determine if the content is likely to be helpful based on Google's guidelines. For each feature, indicate "Yes" if the feature is present and "No" if it is not. Use the following chain of thought process for each feature: | |
1. Identify the specific HTML elements and attributes related to the feature within the provided HTML content. | |
2. Determine if the feature is present on the page based on the identified elements and attributes. |
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
<prompt> | |
Please analyze the following 10 examples of web spam content and 10 examples of good web content: | |
Web Spam Examples: | |
<spam_example1> | |
[URL, title, meta description, h1, h2, h3, h4 for web spam example 1] | |
</spam_example1> | |
<spam_example2> | |
[URL, title, meta description, h1, h2, h3, h4 for web spam example 2] | |
</spam_example2> | |
... |
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
curl -s https://gist.githubusercontent.com/martinbowling/5ad8213d17bfddc4dfb21579c92a4c05/raw/b6c7abacaec8be8e2b720ceceb0e745b6dbed5e0/fix-homebrew-perms.sh | bash |
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
import * as cheerio from "cheerio"; | |
import puppeteerExtra from "puppeteer-extra"; | |
import stealthPlugin from "puppeteer-extra-plugin-stealth"; | |
import chromium from "@sparticuz/chromium"; | |
async function searchGoogleMaps() { | |
try { | |
const start = Date.now(); | |
puppeteerExtra.use(stealthPlugin()); |
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
function clickAccessEmailIfAvailable() { | |
const tbodys = document.querySelectorAll( | |
".finder-results-list-panel-content table tbody" | |
); | |
for (let i = 0; i < tbodys.length; i++) { | |
const tbody = tbodys[i]; | |
const buttons = tbody.querySelectorAll("button"); | |
// Create an array to store buttons with text including "Access Email" | |
const filteredButtons = []; |
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
import * as cheerio from "cheerio"; | |
import fs from "graceful-fs"; | |
import puppeteerExtra from "puppeteer-extra"; | |
import stealthPlugin from "puppeteer-extra-plugin-stealth"; | |
import chromium from "@sparticuz/chromium"; | |
(async function () { | |
console.log("starting"); | |
let term = "marketing"; |
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
import fetch from "node-fetch"; | |
import fs from "graceful-fs"; | |
import * as cheerio from "cheerio"; | |
async function getJob(id) { | |
try { | |
const response = await fetch( | |
`https://www.linkedin.com/jobs-guest/jobs/api/jobPosting/${id}`, | |
{ | |
// agent: getProxyAgent(), put proxy here |
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
import openai | |
import os | |
# Set up the API key | |
openai.api_key = "your_openai_api_key" | |
# Function to call GPT-3.5 Turbo API with chat completion | |
def generate_text(messages): | |
response = openai.ChatCompletion.create( | |
model="gpt-3.5-turbo", |
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
import os | |
import multiprocessing | |
from pathlib import Path | |
import subprocess | |
# Specify the folder containing the .avi files | |
input_folder = Path("/path/to/avi/files") | |
# Create the subfolder for the converted files if it doesn't exist | |
converted_folder = input_folder / "converted" |
NewerOlder