Skip to content

Instantly share code, notes, and snippets.

@alexberkowitz
alexberkowitz / Cache.js
Created November 3, 2023 21:12
Scriptable Cache script
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: magic;
// Hosting the Cache script myself to make it easier to find for those using my scripts :)
// NOTE: This script was written by evandcoleman: https://github.com/evandcoleman/scriptable
class Cache {
constructor(name) {
this.fm = FileManager.iCloud();
this.cachePath = this.fm.joinPath(this.fm.documentsDirectory(), name);
@alexberkowitz
alexberkowitz / Tomorrow.io 1.js
Last active April 20, 2024 01:12
Tomorrow.io Widget for Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: sun;
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: sun;
/******************************************************************************
* Info
*****************************************************************************/
@alexberkowitz
alexberkowitz / Ender3S1ProPauseAtHeight.py
Last active February 15, 2023 21:46
Ender 3 S1 Pro Pause at Height Script
# Pause at Height script modified for use on an Ender 3 S1 Pro
# Original script by Ultimaker
# Updates by Alex Berkowitz
# PLEASE NOTE
# When the print pauses, you may notice the only available options are PAUSE and STOP
# To get around this, simply tap on one of the quick options (nozzle temp, bed temp, etc)
# and then press the back button. You should now see the PLAY option available.
from ..Script import Script
@alexberkowitz
alexberkowitz / scriptable_api_widget_example.js
Last active February 15, 2023 21:31
Scriptable widget example with API call
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: database;
// A basic widget to demonstrate how to display the result of an API
// Initialize the widget
const widget = new ListWidget();
// We can use a variable to control multiple properties, in this case the widget padding
@alexberkowitz
alexberkowitz / Todoist Widget 1.js
Last active April 8, 2024 16:43
Todoist Widget for Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: clipboard-check;
/******************************************************************************
* Info
*****************************************************************************/
@alexberkowitz
alexberkowitz / Keybase.md
Created December 16, 2020 17:43
Keybase Proof

Keybase proof

I hereby claim:

  • I am alexberkowitz on github.
  • I am alexberkowitz (https://keybase.io/alexberkowitz) on keybase.
  • I have a public key ASDoV4iEXIa6Np1B2cBXwowuQHhUmzb6elqYxTdxNhBmxwo

To claim this, I am signing this object: