From Terminal
# install dependencies
brew install autoconf # required by pecl
brew install libzip
# install zip extenion in your selected MAMP PHP version
ls /Applications/MAMP/bin/php/
From Terminal
# install dependencies
brew install autoconf # required by pecl
brew install libzip
# install zip extenion in your selected MAMP PHP version
ls /Applications/MAMP/bin/php/
| import * as Canvas from 'canvas'; | |
| import { Image } from 'canvas'; | |
| import axios from 'axios'; | |
| export class MediaOperations { | |
| // Defaults | |
| public defaultOptions: any = { | |
| format: 'image/png', | |
| quality: 0.92, | |
| width: 100, |
| // In a Firestore standard example, we quickly create a 'xmas tree' of nested stuff | |
| // We use Promises directly: get().then(callback) and use snapshot.forEach() to iterate | |
| let campaignsRef = db.collection('campaigns'); | |
| let activeCampaigns = campaignsRef.where('active', '==', true).select().get() | |
| .then(snapshot => { | |
| snapshot.forEach(campaign => { | |
| console.log(campaign.id); | |
| let allTasks = campaignsRef.doc(campaign.id).collection('tasks').get().then( | |
| snapshot => { | |
| snapshot.forEach(task => { |
| /** | |
| * JavaScript code to detect available availability of a | |
| * particular font in a browser using JavaScript and CSS. | |
| * | |
| * Author : Lalit Patel | |
| * Website: http://www.lalit.org/lab/javascript-css-font-detect/ | |
| * License: Apache Software License 2.0 | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * Version: 0.15 (21 Sep 2009) | |
| * Changed comparision font to default from sans-default-default, |
| package com.example.anothersignintest; | |
| import com.google.android.gms.auth.api.Auth; | |
| import com.google.android.gms.auth.api.signin.GoogleSignInAccount; | |
| import com.google.android.gms.auth.api.signin.GoogleSignInOptions; | |
| import com.google.android.gms.auth.api.signin.GoogleSignInResult; | |
| import com.google.android.gms.common.ConnectionResult; | |
| import com.google.android.gms.common.api.GoogleApiClient; | |
| import com.google.android.gms.common.api.OptionalPendingResult; | |
| import com.google.android.gms.common.api.ResultCallback; |