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
#!/bin/bash | |
# This will install everything required to run a basic Postal installation. | |
# This should be run on a clean Ubuntu 18.04 server. | |
# | |
# Once the installation has completed you will be able to access the Postal web | |
# interface on port 443. It will have a self-signed certificate. | |
# | |
# * Change the MySQL & RabbitMQ passwords | |
# * Create your first admin user with 'postal make-user' |
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
#!/bin/bash | |
# This will install everything required to run a basic Postal installation. | |
# This should be run on a clean Ubuntu 18.04 server. | |
# | |
# Once the installation has completed you will be able to access the Postal web | |
# interface on port 443. It will have a self-signed certificate. | |
# | |
# * Change the MySQL & RabbitMQ passwords | |
# * Create your first admin user with 'postal make-user' |
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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
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
class FirstScreen extends StatefulWidget { | |
@override | |
_FirstScreenState createState() => _FirstScreenState(); | |
} | |
class _FirstScreenState extends State<FirstScreen> with TickerProviderStateMixin { | |
Animation _profSlideAnimation; | |
Animation _profRotateAnimation; | |
AnimationController _animationController; | |
Animation<Offset> _firstOffset; |
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 'dart:async'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:google_sign_in/google_sign_in.dart'; | |
class FBApi { | |
static FirebaseAuth _auth = FirebaseAuth.instance; | |
static GoogleSignIn _googleSignIn = GoogleSignIn(); |
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
var fileName = "fileName.jpeg"; | |
StorageUploadTask putFile = | |
storage.ref().child("folder/$fileName").putFile(_image); | |
putFile.future.catchError(onError); | |
UploadTaskSnapshot uploadSnapshot = await putFile.future; | |
print("image uploaded"); | |
Map<String, dynamic> pictureData = new Map<String, dynamic>(); |
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 'dart:io'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:flutter/material.dart'; | |
class Books extends StatefulWidget { | |
@override | |
_BooksState createState() => _BooksState(); | |
} | |
class _BooksState extends State<Books> { |