Skip to content

A daily scratchpad for the small jobs of a coding day

Colours, JSON, diffs and regexes in one place, with the useful ones kept in a note.

Half of a developer's day is not the feature. It is the small things around it: a designer sends a colour as a screenshot and you need the ARGB value for the Android theme, an API returns one unreadable line of JSON, two config files should be the same and you want to see how they are not, a regular expression works on one example and fails on the next. Each takes two minutes. Each is a tab you open, use and forget, and each time you go looking for the same site again.

This template is a job you keep open. It has one task per kind of small thing and one note where you paste what is worth keeping: the regex that finally worked, the colour you converted, the one-line JSON path you will need tomorrow. It is not a notebook app. It is a place where the tools and the note are next to each other, so that what you tested and what you kept stay together.

Make a new job from the template each day, or keep one running for a week and tick the tasks again by adding new ones. The tasks are only a starting list; delete what you do not use.

Use it now

5 tasks, in the order you do them. Tasks with a tool open it with the job's files and tick themselves when you save the result.

  1. 1Pick a colour (HEX / ARGB)Color Picker
  2. 2Format some JSONJSON Formatter
  3. 3Compare two textsCompare Text
  4. 4Test a regular expressionRegex Tester
  5. 5Keep the snippets worth keeping in the note
Makes this job on your desk, on this device. No account.

Step by step, and why the defaults are what they are

1. Pick a colour

Open Color Picker and load the screenshot or image, then click the pixel you want. It shows HEX, RGB, RGBA and ARGB, so you can copy the form your platform needs. Use "Add to a job" to save the value in this job's note.

Why this default. Android and Flutter code use ARGB, a colour written as alpha, red, green and blue in that order, while the web uses HEX or RGBA. These are the forms people search for most in this tool, so they are all shown at once rather than hidden behind a dropdown. Open Color Picker.

2. Format some JSON

Paste the response into JSON Formatter and press Format. Choose 2 spaces, 4 spaces, 8 spaces or tabs. Turn on Sort keys when you want to compare two responses, and use Minify when you need to paste the result into a one-line field.

Why this default. Two spaces is the common choice in web code and four in many other languages, so match your project. Sorted keys give the same order every time, which turns a diff of two responses into a diff of the data and not of the order the server happened to use. Open JSON Formatter.

3. Compare two texts

Paste the old version on the left and the new on the right in Compare Text. Choose side by side or unified, and switch on Ignore whitespace when the change might be only indentation.

Why this default. The tool compares line by line with the same kind of algorithm git uses, so what it shows will match what you would see in a code review. Ignoring whitespace is a toggle and not the default, because sometimes the whitespace is exactly the bug. Open Compare Text.

4. Test a regular expression

Type the expression in Regex Tester and paste several real samples, not just the happy one. Check the matches and the groups update as you edit.

Why this default. A regex that matches one example proves little. Pasting the cases that should fail, an empty string, a line with extra spaces, the one with a trailing slash, is what finds the mistake before production does. Open Regex Tester.

5. Keep the snippets worth keeping

Write the useful result in the job's note under a short heading: what it was for, the value, the date. Anything you did not keep is gone when you close the tab, which is the point.

Why this default. A scratchpad stays useful only if you do not let it grow into a dump. One line of context next to a snippet is the difference between finding it in a month and not knowing what it was for.

Variants

A team scratchpad

A job and its files can be exported with a backup file and imported on another computer, so you can pass your snippets to a colleague. There is no shared cloud copy; nothing is synced.

Decode or encode something

Add tasks for Base64 Encoder and Decoder, URL Encoder and Decoder or Timestamp Converter when they are part of your day.

Hash a password for a test account

Add a task for Password Hash Generator, and use it only for test data. Never paste a real password into any web page.

Common problems

The JSON formatter says the JSON is invalid.

The usual causes are a trailing comma, single quotes instead of double quotes, an unquoted key, or a comment. The error message points at the position; fix that and try again.

The diff shows every line as changed.

Line endings or indentation differ between the two texts. Switch on Ignore whitespace and compare again.

The regex works here but not in my code.

Engines differ. This tester uses JavaScript's regular expressions, so features of other languages, like lookbehind in older engines, may behave differently.

The colour looks different from the design file.

A screenshot has gone through your screen's colour profile. Take the colour from the design file's own colour panel when you can, and use the picker for what you only have as an image.

Questions

Is my data sent anywhere?

No. JSON, text and regex tools run in your browser. Even so, avoid pasting secrets such as live API keys into any web page out of habit.

How is this different from a notes app?

The tools are in the same place as the note, and the job keeps files too. It does not sync across devices.

Does the scratchpad survive closing the browser?

Yes, it is stored in this browser's storage. Clearing site data deletes it, so export a backup of anything you cannot lose.

More in the Developer kit

  • Bug report – Steps, log, config diff and a small screenshot, ready to paste into the tracker.
  • Release check – A short checklist plus a diff of the config that changes between environments.
  • JSON to CSV for a sheet – Turn an API response into rows someone can open in a spreadsheet.

About the Developer kit · How TabShed works