How to use:
./wordle.sh
Or try the unlimit mode:
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
const findTheMostNegativeComment = () => { | |
const voteVals = []; | |
const votes = document.querySelectorAll('.gig-comment-vote-total'); | |
[].forEach.call(votes, (v) => { | |
const val = v.innerHTML; | |
if (val.charAt(0) === '-') { | |
voteVals.push({ | |
text: val, | |
total: parseInt(val.slice(1)), | |
el: v |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndCheckPassword(event.request)) | |
}) | |
async function fetchAndCheckPassword(req) { | |
if (req.method == "POST") { | |
try { | |
const post = await req.formData(); | |
const pwd = post.get('password') | |
const enc = new TextEncoder("utf-8").encode(pwd) |
set theSearchPath to "/Users/<username>" | |
set theResults to do shell script "find " & quoted form of theSearchPath & " -name .git 2>&1 | grep -v 'Permission denied'" | |
repeat with i from 1 to (count paragraphs of theResults) | |
set theResult to paragraph i of theResults | |
set theParentPath to text 1 through ((length of theResult) - 5) of theResult | |
set theParentAlias to POSIX file (theParentPath) as alias | |
tell application "Finder" | |
set label index of theParentAlias to 6 | |
-- Set the last value of the previous line corresponding to label color desired |
This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.
Give me feedback on Twitter (@nicoleslaw) or by email ([email protected]).
-- pastebin.workflow.applescript | |
-- | |
-- An automator workflow to copy selected text to pastebin.com | |
-- | |
-- Created by Marc Abramowitz | |
-- December 5, 2010 | |
-- version 1.0 | |
on run {input} | |