This file contains 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", |
This file contains 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 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 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 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 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 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 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 = '* * * * *'; | |
export const cronMailchimp = functions.region('europe-west1').pubsub | |
.schedule(CRON_SCHEDULE).onRun(async context => { | |
const { audience, apikey } = functions.config().mailchimp; |
This file contains 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
// add this code to your server.ts | |
// implementation credits: https://gist.github.com/paulirish/1579671 | |
global['requestAnimationFrame'] = function(callback, element) { | |
let lastTime = 0; | |
const currTime = new Date().getTime(); | |
const timeToCall = Math.max(0, 16 - (currTime - lastTime)); | |
const id = setTimeout(function() { callback(currTime + timeToCall); }, | |
timeToCall); | |
lastTime = currTime + timeToCall; |
This file contains 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
const axios = require('axios') | |
const qs = require('querystring') | |
... | |
const requestBody = { | |
name: 'Akexorcist', | |
age: '28', | |
position: 'Android Developer', | |
description: 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/', |
OlderNewer