π² Invert a binary tree! π²
Except with 3 catches:
- It must invert the keys ("bit-reversal permutation")
- It must be a dependency-free, pure recursive function
- It must have type
Bit -> Tree -> Tree(i.e., a direct recursion with max 1 bit state)
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
| <types> | |
| <members>*</members> | |
| <name>ActionLinkGroupTemplate</name> | |
| </types> | |
| <types> | |
| <members>*</members> | |
| <name>AnalyticSnapshot</name> | |
| </types> |
| // Get the email templates | |
| Set<String> folderNames = new Set<String>(); | |
| List<EmailTemplate> emailTemplates = [SELECT Id, DeveloperName, FolderName FROM EmailTemplate ORDER BY FolderName, DeveloperName]; | |
| for (EmailTemplate emailTemplate : emailTemplates) { | |
| folderNames.add(emailTemplate.FolderName); | |
| } | |
| // Get the folder dev names - this assumes the Folder.Name (display name) is unique in the org | |
| Map<String, String> folderDisplayNameToDevName = new Map<String, String>(); | |
| for (Folder folder : [SELECT Id, DeveloperName, Name FROM Folder WHERE Name IN :folderNames and Name != 'Unfiled Public Classic Email Templates']) { |
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
A 15-node workflow for automated receipt processing: Email β OCR β AI classification β client matching β Google Drive routing β Sheet journaling. Uses Claude Haiku 4.5 (~$0.001 per receipt).
Use-case: Clients email PDF receipts to your accounting firm. The workflow extracts the PDF text, classifies it with Claude (invoice / payroll / receipt / etc.), automatically matches the right client, files the PDF into the correct Drive folder, and logs the result in a journal Sheet. Low-confidence cases land in a _Unzugeordnet ("unassigned") folder for human review.
Public template β initial release 2026-05-11 by Swiss Shift (Basel, Switzerland).
Note: the workflow's internal node names are in German because it was built for Swiss accounting firms. The structure and logic are language-agnostic. Setup instructions below are in English.