Skip to content

Instantly share code, notes, and snippets.

View AlexandreMT's full-sized avatar
💭
Probably thinking about how to automate something

Alexandre Moraes Matos AlexandreMT

💭
Probably thinking about how to automate something
  • Sambatech
  • Palmas-TO
View GitHub Profile
@julianpoemp
julianpoemp / SubscriptionManager.ts
Last active August 9, 2023 23:43
Subscription manager for Angular 15, Angular 14, Angular 13, Angular 12, Angular 11, Angular 10, Angular 9, Angular 8, Angular 7, Angular 6 (and less)
/*
Version 1.2.0
For new versions of this class go to https://gist.github.com/julianpoemp/0c4dc13541b863f6503026333eb6b2b6
License: MIT
*/
export class SubscriptionManager<T> {
private subscriptions: {
id: number,
tag: string,
@krishpop
krishpop / export-toby.js
Last active March 21, 2024 22:12
Export Toby
// code courtesy of Toby team
chrome.storage.local.get("state", o => (
((f, t) => {
let e = document.createElement("a");
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`);
e.setAttribute("download", f);
e.click();
})(`TobyBackup${Date.now()}.json`, o.state)
));