Solution with Angular 8
Console errors and warnings, be gone:
- cannot display FACEBOOK-BLA in hidden frame
- FB.login does not exist ...
- HTTP is not supported, use HTTPS ...
Steps:
import 'dart:math'; | |
/// This is a port to Dart of "My algorithm" by Adam Milazzo. | |
/// | |
/// It calculates visibility / field of view / line of sight for tile | |
/// based maps as often found in roguelike games. | |
/// | |
/// The advantages of this algorithm are discussed here: | |
/// | |
/// http://www.adammil.net/blog/v125_Roguelike_Vision_Algorithms.html#code |
; German Umlaut for English keyboard | |
; | |
; ä = ALT + a | |
; Ä = SHIFT + ALT + a | |
; | |
; etc. | |
; | |
; Converted to Autohotkey V2 2023 | |
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
class Controller extends GetxController { | |
var items = <String>['a'].obs; | |
var itemCurrent = 'a'.obs; | |
addItem(String item) => items.add(item); | |
} | |
void main() => runApp(GetMaterialApp(home: Home())); |
EXP LEVEL DIFF | |
0 1 0 | |
10 2 10 | |
30 3 20 | |
60 4 30 | |
100 5 40 | |
150 6 50 | |
210 7 60 | |
280 8 70 | |
360 9 80 |
... | |
getCourses(): Observable<Course[]> { | |
return this.db | |
.collection<Course>(this.path) | |
.valueChanges({ idField: 'id' }); // id field is nice to have, only | |
} | |
... |
@Component({ | |
selector: 'my-comp', | |
template: ` | |
<div [formGroup]="group"> | |
<input [formControlName]="'bar'" /> | |
</div> | |
` | |
}) | |
export class MyComponent { | |
@Input() group: FormGroup; |
Solution with Angular 8
Console errors and warnings, be gone:
Steps:
// --- CALL FROM ANGULAR | |
import { Component, OnInit } from '@angular/core'; | |
import { AngularFireFunctions } from '@angular/fire/functions'; | |
@Component({ | |
selector: 'app-functiontest' | |
}) | |
export class FunctiontestComponent implements OnInit { | |
constructor(private func: AngularFireFunctions) { } |
import functions = require('firebase-functions'); | |
import fs = require('fs'); | |
import os = require('os'); | |
import path = require('path'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
const bucket = admin.storage().bucket(); | |
export const textToSpeechRequest = functions.https.onCall((data: any, context: any) => { | |
const destName = 'test.txt'; |