Skip to content

Instantly share code, notes, and snippets.

View kururu-abdo's full-sized avatar
😍
Learning

kururu kururu-abdo

😍
Learning
View GitHub Profile
@kururu-abdo
kururu-abdo / AutoFill.kt
Created January 26, 2019 21:37
how to auto fill combobox in tornadofx
package com.example.demo.view
import org.junit.Assert
import org.junit.Test
import org.testfx.api.FxToolkit
import org.junit.Assert.*
import javafx.beans.property.SimpleStringProperty
import javafx.scene.Node
import javafx.scene.control.*
import javafx.scene.layout.Background
import javafx.scene.layout.BackgroundFill
@kururu-abdo
kururu-abdo / main.dart
Last active March 16, 2020 02:07
simple flutter state management with setState and dum class that hold logic
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
@kururu-abdo
kururu-abdo / main.dart
Created June 8, 2021 13:01 — forked from KiwiArch/main.dart
Flutter Custom Google Map Markers
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
void main() {
runApp(MyApp());
}
@kururu-abdo
kururu-abdo / MainScreen.dart
Created June 14, 2021 06:27 — forked from ambrizals/MainScreen.dart
Flutter firebase_messaging + flutter_local_notification
import 'package:flutter/material.dart';
import 'package:app_name/routes.dart';
class MainView extends StatefulWidget {
final GlobalKey<NavigatorState> navigatorKey;
MainView(this.navigatorKey);
@override
_MainViewState createState() => _MainViewState();
@kururu-abdo
kururu-abdo / rabbitmq_with_nodejs.md
Created July 11, 2021 08:00 — forked from petrkohut/rabbitmq_with_nodejs.md
Example of reading from RabbitMQ in Node.js

RabbitMQ with Node.js

Install and run RabbitMQ server

Download image

docker pull rabbitmq:management

Run server with web management

@kururu-abdo
kururu-abdo / custom_info_window.dart
Created August 10, 2021 23:03 — forked from abhishekduhoon/custom_info_window.dart
Widget based Custom Info Window for Google Maps in Flutter
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:provider/provider.dart';
import 'package:clippy_flutter/clippy_flutter.dart';
void main() {
runApp(
ChangeNotifierProvider(
@kururu-abdo
kururu-abdo / location.provider.dart
Created August 29, 2021 19:33 — forked from mskasal/location.provider.dart
Location provider for flutter projects, Riverpod, Location
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:location/location.dart';
class PersonLocationProvider extends ChangeNotifier {
Location _location = new Location();
PermissionStatus _permissionGranted;
StreamController<LocationData> currentLocation = StreamController.broadcast();
import 'dart:async';
import 'dart:math';
import 'package:dartz/dartz.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
import 'package:flutter_translator/flutter_translator.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:location/location.dart';
import 'package:permission_handler/permission_handler.dart' as handler;
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(EmailApp());
}
class EmailApp extends StatelessWidget {
@override
void main() {
var state = AppState.instance;
print(state.appName);
}
class AppState {
String appName;
AppState._internal(){
appName="FaceBook";