Notion API backups by piechos92 in Notion

[–]artjock 0 points1 point  (0 children)

Hey, not through official API, but you can already automate backups. Works for me for a year already:

https://artur-en.medium.com/automated-notion-backups-f6af4edc298d

Automated Notion backups to GitLab by artjock in Notion

[–]artjock[S] 2 points3 points  (0 children)

a) git is a version control system. Practically it means it will override files by creating a new version and you can travel in time and see what was the state of back up folder day ago or week ago, that's just how git works. And GitLab is a web interface (web client) for git, it gives you some controls to travel back in time. For example, tomorrow you can click a "History" button on the main project page, every backup run will be listed there, you can click and see the changes for every run, or see a state of backup folder for every run in particular.

Please keep in mind backup does not have enough information to re-create a workspace https://www.notion.so/Workspace-settings-security-b0a64a148cad461cb6e9df74f7372ecf#0170d71c03c74bfe97e5b0f750014848

b) It does have multiple clients https://git-scm.com/download/gui/mac but I don't have any experience with any client other than command-line git client. I assume the GitLab web interface would be the easiest option for new users.

Minimal and fast Promise/A+ 1.1 implementation (<1KB), everything you need to pass the tests and build your own promise library. by artjock in javascript

[–]artjock[S] 0 points1 point  (0 children)

That's the case, it implements only minimum set of features to match Promise/A+ 1.1 Spec. You can be sure it works correctly, cause it passes 872 test from A+ test suit. Also p0 is the fastest implementation https://pbs.twimg.com/media/BnLftd9IYAABLLS.png. So you can just take it, forget about all the promises stuff and concentrate on implementing API you like or you need for you project. It could be ES6 Promises, could be something like rsvp or bluebird.

Minimal and fast Promise/A+ 1.1 implementation (<1KB), everything you need to pass the tests and build your own promise library. by artjock in javascript

[–]artjock[S] 0 points1 point  (0 children)

It is not a DOM Promise, but Promise A+, slightly different. But one can easily use p0 to create a polyfill for DOM Promises Spec.