Skip to content

Instantly share code, notes, and snippets.

@liyasthomas
liyasthomas / GitHub stats count Scriptable widget script.md
Last active January 18, 2024 06:36
GitHub stats count Scriptable widget script

To use this script, simply replace the USERNAME, REPOSITORY, GITHUB_STARS_REPO and GITHUB_DOWNLOADS_REPO placeholders with the appropriate values for the GitHub repository you want to fetch the star and release download count for. Then, copy the complete script into a new Scriptable App script and run it. The star and release download count for the specified repository will be displayed in a Scriptable widget.

// Constants for widget configuration
const WIDGET_TITLE = "GitHub";
const USERNAME = "hoppscotch"
const REPOSITORY = "hoppscotch"
const GITHUB_STARS_REPO = "hoppscotch/hoppscotch";
const GITHUB_DOWNLOADS_REPO = "hoppscotch/releases";
const CACHED_DATA_HOURS = 0.5;
@macserv
macserv / FruitCorners.txt
Created May 8, 2019 16:16
A brief history of the Fruit Corners brand (1980–1987) from General Mills
Thank you for contacting General Mills with your inquiry. We have enclosed all information we have available regarding the Fruit Corners line of products.
We hope you find this information helpful. Please let us know if we can help you again
Sincerely,
Katie Gafler
Consumer Services
tell application "Simulator"
activate
end tell
tell application "System Events"
tell process "Simulator"
tell menu bar 1
tell menu bar item "Simulator"
tell menu "Simulator"
click menu item "Reset Content and Settings…"
@patrickhammond
patrickhammond / android_instructions.md
Last active March 29, 2024 20:14
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"