Skip to content

Instantly share code, notes, and snippets.

View a7me63azzab's full-sized avatar
🎯
Focusing

Ahmed A. ElmenEm a7me63azzab

🎯
Focusing
View GitHub Profile
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:rest_water_23/gen/assets.gen.dart';
import 'package:rest_water_23/presentation/core/navigation_services.dart';
enum MessageType { success, fail, warning }
import 'dart:math' show pi;
import 'dart:ui' as ui show window;
import 'package:easy_localization/easy_localization.dart' as lang;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
class ZoomDrawerController {
/// callback function to open the drawer
Function open;
@a7me63azzab
a7me63azzab / Reverse Integer
Created June 8, 2020 04:07
Problem Solving in Golang
func reverse(x int) int {
rev:= 0
for x != 0 {
pop := x % 10
x = x / 10
if rev > math.MaxInt32/10 || (rev == math.MaxInt32 /10 && pop > 7) {
return 0
}
if rev < math.MinInt32/10 || (rev == math.MinInt32/10 && pop < -8) {
return 0
@a7me63azzab
a7me63azzab / 1. Two Sum [goLang]
Created June 7, 2020 04:16
Play With LeetCode [GoLang] [Problem Solving]
func twoSum(nums []int, target int) []int {
result := []int{}
for i:= 0; i< len(nums); i++{
if i < len(nums){
for j:= i+1 ; j < len(nums) ; j++{
if j < len(nums){
if nums[i] + nums[j] == target {
result = append(result, i,j)
}
@a7me63azzab
a7me63azzab / 1. Two Sum
Last active June 7, 2020 03:53
Play with LeetCode [Dart] [ problem solving ]
void main() {
List<int> result = twoSum([2, 7, 11, 15],9);
print(result);
}
List<int> twoSum(List<int> nums,int target){
List<int> indices = [];
for(int i = 0; i< nums.length; i++){
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
void main() {
runApp(_SwitchingThemeApp());
}
/// Properties that help me keep track of the example being run.
bool _useMaterial = false;
class _SwitchingThemeApp extends StatefulWidget {
@override
_SwitchingThemeAppState createState() => _SwitchingThemeAppState();
void main() {
runApp(_SwitchingThemeApp());
}
/// Properties that help me keep track of the example being run.
bool _useMaterial = false;
class _SwitchingThemeApp extends StatefulWidget {
@override
_SwitchingThemeAppState createState() => _SwitchingThemeAppState();
{
"message": true,
"data": {
"info": [
{
"about": "<p dir=\"rtl\"><span style=\"color:#999999\"><strong><span style=\"font-family:Trebuchet MS,Helvetica,sans-serif\"><span style=\"font-size:18px\">&nbsp;</span><span style=\"font-size:24px\">من نحن</span></span></strong></span></p>\r\n\r\n<p dir=\"rtl\" style=\"text-align:justify\"><span style=\"font-size:14px\"><strong><span style=\"color:#8e44ad\"><span style=\"font-family:Trebuchet MS,Helvetica,sans-serif\">موقع تسوق فاز الإلكتروني&nbsp;تم تأسيس هذا الموقع في عام ٢٠١٩م تحت أيدي خبراء في مجال التقنية وتم تصميمه بدقة احترافية تواكب عصر التطور التكنولوجي في مجال التسوق والتسويق</span></span></strong></span></p>",
"conditions": "<p style=\"text-align:right\">&nbsp; arabicالشروط والاحكام&nbsp;</p>",
"logo": "3144.png",
"email": "info@tswqfaz.com",
"phone": "00966542595948",
@a7me63azzab
a7me63azzab / page_turn.dart
Created September 24, 2019 07:51 — forked from slightfoot/page_turn.dart
Page Turn Effect - By Simon Lightfoot. Replicating this behaviour. https://www.youtube.com/watch?v=JqvtZwIJMLo
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: