Skip to content

Instantly share code, notes, and snippets.

View cankush625's full-sized avatar
👨‍💻
TechKiddie

Ankush Chavan cankush625

👨‍💻
TechKiddie
View GitHub Profile
@cankush625
cankush625 / dart_async.dart
Created August 11, 2020 09:54
Asynchronous programming in dart
void main() => myTasks();
myTasks() {
printMessage();
acknowledgeFileUpload();
thankyouMessage();
}
void printMessage() {
print("Task Started");
---
# tasks file for haproxy
- name: install haproxy
package:
name: haproxy
state: present
register: haproxystate
- name: haproxy config
template:
---
# handlers file for haproxy
- name: restart haproxy service
service:
name: haproxy
state: restarted
---
# vars file for haproxy
loadbalancer_port: 8080
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
- hosts: localhost
vars_files:
- secret.yml
roles:
- role: ec2_instance
count: 3
tag_name: "Auto_webserver"
accesskey: "{{ aws_access }}"
secretkey: "{{ aws_secret }}"
import 'package:flutter/material.dart';
class Auth extends StatefulWidget {
@override
_AuthState createState() => _AuthState();
}
class _AuthState extends State<Auth> {
@override
Widget build(BuildContext context) {
import 'package:chat_app/screens/chat.dart';
import 'package:chat_app/auth/auth.dart';
import 'package:chat_app/auth/reg.dart';
import 'package:chat_app/auth/login.dart';
import 'package:chat_app/screens/home.dart';
import 'package:chat_app/screens/profile.dart';
import 'package:chat_app/screens/location.dart';
import 'package:flutter/material.dart';
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
import 'package:chat_app/screens/chat.dart';
import 'package:chat_app/auth/auth.dart';
import 'package:chat_app/auth/reg.dart';
import 'package:chat_app/auth/login.dart';
import 'package:chat_app/screens/home.dart';
import 'package:chat_app/screens/profile.dart';
import 'package:chat_app/screens/location.dart';
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
class AccountRegistration extends StatefulWidget {
@override
_AccountRegistrationState createState() => _AccountRegistrationState();
}