Skip to content

Instantly share code, notes, and snippets.

View alexandergottlieb's full-sized avatar

Xander Gottlieb alexandergottlieb

View GitHub Profile
@alexandergottlieb
alexandergottlieb / export-apple-notes-by-folder.scpt
Last active March 11, 2022 16:30
Export Apple Notes to HTML, one folder at a time. Uses Bear's export script but with the ability to retain your folder structure rather than dumping all notes into one folder - https://bear.app/faq/Import%20&%20export/Migrate%20from%20Apple%20Notes/
set requestedFolder to text returned of (display dialog "Which folder of Notes would you like to export? (the name must match exactly)" default answer "" with icon note buttons {"Export"} default button "Export")
display dialog "Choose where the exported notes should be saved:" with icon note buttons {"Choose Folder"} default button "Choose Folder"
set exportFolder to (choose folder) as string
on replaceText(find, replace, subject)
set prevTIDs to text item delimiters of AppleScript
set text item delimiters of AppleScript to find
set subject to text items of subject
$ flutter run --verbose
[ +25 ms] executing: [/Users/xander/Development/flutter/] git log -n 1
--pretty=format:%H
[ +44 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] cc949a8e8b9cf394b9290a8e80f87af3e207dce5
[ ] executing: [/Users/xander/Development/flutter/] git describe --match
v*.*.* --first-parent --long --tags
[ +17 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long
--tags
[ +3 ms] v1.9.1+hotfix.4-0-gcc949a8e8
<!DOCTYPE HTML>
<html>
<head>
<!-- Visit alexandergottlieb.com for more tutorials -->
<title>Balls Matter</title>
</head>
<body>
<canvas id="world"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.10.0/matter.min.js"></script>
<script src="scripts.js"></script>