name: cli-supervisor description: > Fable-5 supervisor subagent that delegates implementation work to the external codex and grok CLIs and verifies the result before reporting back. Use for any substantive, delegable coding task (porting, multi-file features, tests to a pattern, routine debugging, refactors, code review) so the main session spends Fable tokens on judgment, not labor. Give it a complete brief: exact repo path, files/scope, constraints not in the repo docs, concrete acceptance criteria, and the verification commands (lint/test/build). It cannot ask questions
Zoomable/rotatable world globe that uses orthographic projection. Drag behavior is enhanced as described here: https://www.jasondavies.com/maps/rotate/
Performance is not good due to redrawing whole world upon zoom/drag.
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
| if (!window.tweets) window.tweets = {}; | |
| /** | |
| * @param tweetElem {HTMLElement} | |
| */ | |
| window.parseTweetElement = (tweetElem) => { | |
| const isQuote = !!Array.from(tweetElem.querySelectorAll("span")).find( | |
| (p) => p.textContent === "Quote" | |
| ); |
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
| const vision = require("@google-cloud/vision"); | |
| const puppeteer = require("puppeteer"); | |
| const fs = require("fs-extra"); | |
| const URL = "https://YOUR_EMBASSY_URL_AND_THE_PAGE"; | |
| const browser = await puppeteer.connect({ | |
| browserWSEndpoint: `ws://browserless:3000?token=TOKEN_HERE`, | |
| args: [`--window-size=1024,860`], | |
| defaultViewport: { |
We have a list of valid words, and a long string of text without whitespace. All characters are UTF8, a-z.
Please write a function that finds if the string can be composed of valid words, and if so, adds whitespace between them. Not all words have to be used, but words can be used multiple times. If it's not possible, return empty string and a descriptive error.
The words on validWords do not overlap.
func addWhitespace(input string, validWords []string) (string, error)
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
| /** | |
| Imagine some photo file names with lowercase letters and/or digits. We want to sort them as a human would consider natural with a function with the following signature. | |
| // return 0 if a = b, <0 if a < b, >0 if a > b | |
| function compareNaturally(a: string, b: string): number { | |
| //TODO implement | |
| } |
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
| const _ = require('lodash'); | |
| /** | |
| Write a function checking that the given string is valid. We consider a string to be valid if all the characters of the string have exactly the same frequency. | |
| Examples: | |
| "aabbcc" is a valid string | |
| "aabbccc" is an invalid string | |
| */ |
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
| sudo rm /var/lib/snapd/cache/* | |
| sudo journalctl --vacuum-size=10M | |
| sudo npm cache clean --force | |
| sudo yarn cache clean |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
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
| echo ' | |
| FROM ubuntu | |
| RUN apt update | |
| RUN apt install autossh -y | |
| RUN ssh-agent bash | |
| ENTRYPOINT ["/usr/bin/autossh", "-M", "0", "-T", "-N", "-oStrictHostKeyChecking=no", "-oServerAliveInterval=180", "-oUserKnownHostsFile=/dev/null", "-D","0.0.0.0:8888"] | |
| ' > Dockerfile ; \ | |
| project="ssh-tunnel" ; \ | |
| sudo docker rmi ${project} --force ; \ | |
| sudo docker build -t ${project} . ; \ |
NewerOlder