This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as functions from 'firebase-functions'; | |
| import * as admin from 'firebase-admin'; | |
| import MailchimpApi = require('mailchimp-api-v3'); | |
| import md5 = require('crypto-js/md5'); | |
| const CRON_SCHEDULE = '* * * * *'; | |
| const API_KEY = 'YOUR_API_KEY'; | |
| const AUDIENCE_ID = 'YOUR_AUDIENCE_ID'; | |
| export const cronMailchimp = functions.region('europe-west1').pubsub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as functions from 'firebase-functions'; | |
| const CRON_SCHEDULE = '* * * * *'; | |
| export const cronMailchimp = functions.region('europe-west1').pubsub | |
| .schedule(CRON_SCHEDULE).onRun(async context => { | |
| console.log(`I will write this every minute`) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| runtime: python27 | |
| api_version: 1 | |
| threadsafe: true | |
| handlers: | |
| - url: / | |
| static_files: storybook-static/index.html | |
| upload: storybook-static/index.html | |
| - url: /(.*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| articles: | |
| - https://medium.com/@aleixsuau/error-handling-angular-859d529fa53a | |
| libraries: | |
| - https://www.stacktracejs.com/ | |
| services: | |
| - https://sentry.io/welcome/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jest configuration: | |
| - use jest with angular with jest preset angular (follow readme): https://www.npmjs.com/package/jest-preset-angular | |
| - remove Jasmine types, because it duplicates the declaration from @types/jest: npm uninstall @types/jasmine | |
| Visual studio extensions: | |
| - jest | |
| - snapshot-tools | |
| Other useful libraries (from youtube video): | |
| - jasmine marbles to test observables: https://www.npmjs.com/package/jasmine-marbles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mac Settings | |
| { | |
| "window.zoomLevel": 0, | |
| "extensions.ignoreRecommendations": false, | |
| "git.enableSmartCommit": true, | |
| "git.autofetch": true, | |
| "tslint.enable": true, | |
| "tslint.jsEnable": true, | |
| "tslint.autoFixOnSave": true, | |
| "tslint.packageManager": "npm", |
NewerOlder