Skip to content

Instantly share code, notes, and snippets.

@boozook
boozook / README.md
Last active May 18, 2025 02:02
Install PIP for Pythonista 3.x

Usage

  1. run install pip.py, follow instructions
  • edit pip config that placed in the local root
  • edit your pythonista_startup.py, add PIP_CONFIG_FILE env
  1. reboot Pythonista
  2. run run.py, then type show pip or freeze

That's all. Now you can (un)install packages, upgrade pip, whatever.

@maxlath
maxlath / handlebars2svelte.js
Last active September 12, 2024 07:54
Convert a Handlebars template to Svelte
#!/usr/bin/env node
// Handlebars and Svelte templates are quite similar (that is, looking a lot like plain HTML),
// so converting from Handlebars to Svelte is mostly a matter of converting handlebars helpers argument syntax
// into Svelte JS-based syntax, and importing the helper functions.
// WARNING: if you have been using named arguments in Handlebars (a.k.a. 'hash' arguments),
// the helper function interface will need to be updated (or the arguments passed as `{ hash: argsObject }`)
// STATUS: WIP.