r.dbCreate('mydb')
This file contains hidden or 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 the validator | |
class Login extends StatefulWidget { | |
@override | |
_LoginState createState() => _LoginState(); | |
} | |
class _LoginState extends State<Login> { |
This file contains hidden or 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'; | |
import 'package:flutter/cupertino.dart'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: HomeScreen(), | |
), | |
); | |
} |
This file contains hidden or 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:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart'; | |
import 'package:malindi_sub_county_app/models/input_fields.dart'; | |
import 'package:malindi_sub_county_app/ui/widgets/custom_shape.dart'; | |
import 'package:malindi_sub_county_app/ui/widgets/customappbar.dart'; | |
import 'package:malindi_sub_county_app/ui/widgets/responsive_ui.dart'; | |
import 'package:malindi_sub_county_app/ui/widgets/textformfield.dart'; |
This file contains hidden or 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:google_sign_in/google_sign_in.dart'; | |
class UserRepository { | |
final FirebaseAuth _firebaseAuth; | |
final GoogleSignIn _googleSignIn; | |
UserRepository({FirebaseAuth firebaseAuth, GoogleSignIn googleSignin}) | |
: _firebaseAuth = firebaseAuth ?? FirebaseAuth.instance, |
This file contains hidden or 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
void main(){ | |
String res = "LatLng(-1.4752891, 36.39483943)"; | |
String latitude = res.substring(res.indexOf("(")+1,res.indexOf(",")); | |
String longtitude = res.substring(res.indexOf(",")+1,res.indexOf(")")); | |
print("Longitude $longtitude and latitude $latitude"); | |
} |
This file contains hidden or 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 FirstPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Material( | |
child: Center(child: Text("First Page")), | |
); | |
} | |
} |
This file contains hidden or 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
<script> | |
// window.calculateAvailableDates takes in an array of options as a | |
// parameter then traverse the list for each it will run the calculateAvailableDatesInternal | |
// that returns a list of available dates | |
window.calculateAvailableDates = function(optionsArray) { | |
if (optionsArray.length == null) { | |
console.error("We cannot traverse an empty list"); | |
} | |
optionsArray.array.forEach(oneOption => { | |
window.calculateAvailableDatesInternal(oneOption); |
This file contains hidden or 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
package main | |
func main() { | |
s := time.Now() | |
args := os.Args[1:] | |
if len(args) != 6 { // for format LogExtractor.exe -f "From Time" -t "To Time" -i "Log file directory location" | |
fmt.Println("Please give proper command line arguments") | |
return | |
} |
This file contains hidden or 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
sudo yum update httpd | |
sudo yum install httpd | |
sudo yum install firewalld | |
sudo systemctl enable firewalld | |
sudo systemctl start firewalld | |
sudo firewall-cmd --permanent --add-service=http | |
sudo firewall-cmd --permanent --add-service=https | |
sudo firewall-cmd --reload | |
sudo systemctl start httpd | |
sudo systemctl status httpd |
OlderNewer