Skip to content

Instantly share code, notes, and snippets.

View AhmedAbouelkher's full-sized avatar
🎯
Focusing

Ahmed Mahmoud AhmedAbouelkher

🎯
Focusing
View GitHub Profile

E-Commerce

Deadline: 17/09/2022 - 8PM

Features

Auth

  • user can login, register, get his data, and logout.
  • use JWT as and authorization token.
@AhmedAbouelkher
AhmedAbouelkher / main.dart
Created September 6, 2022 10:13
Video Moving Water Mark
import 'dart:async';
import 'dart:developer';
import 'dart:math' hide log;
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
var mediaJSON = {
"categories": [{
"name": "Movies",
"videos": [{
"description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources": ["http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"],
"subtitle": "By Blender Foundation",
"thumb": "images/BigBuckBunny.jpg",
"title": "Big Buck Bunny"
},
@AhmedAbouelkher
AhmedAbouelkher / http_version.sh
Created August 9, 2022 08:13 — forked from ihordiachenko/http_version.sh
Check HTTP version of an endpoint
curl -sI https://curl.haxx.se -o/dev/null -w '%{http_version}\n'
@AhmedAbouelkher
AhmedAbouelkher / solution.py
Created July 7, 2022 12:35
Toptal Quiz 3 Solution
def solution(S: float, B: list[float]) -> list[float]:
total = 0
for i, v in enumerate(B):
total += v
B = sorted(B, reverse=True)
R = list(len(B) * [0])
for i, num in enumerate(B):

Google map styling

[
    {
      "elementType": "geometry",
      "stylers": [
        {"color": "#242f3e"}
      ]
    },

Update 20-11-2021

Manual Subscription

  • create manual subscription: POST /manual/subscriptions

Body

{
    "kid": "user_kid",
    "metadata": {
 "daily_classic_coffee_count": 1,
@AhmedAbouelkher
AhmedAbouelkher / app.js
Created September 14, 2021 17:44
js app templete
const express = require('express');
const p = require('path');
const expressLayouts = require('express-ejs-layouts');
const app = express()
app.set('view engine', 'ejs')
app.set('views', p.join(__dirname, 'views'))
app.set('layout', 'layouts/layout')
@AhmedAbouelkher
AhmedAbouelkher / cloudSettings
Created March 26, 2021 12:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-03-26T12:44:34.616Z","extensionVersion":"v3.4.3"}
[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.4 19E287 darwin-x64, locale en)
• Flutter version 2.0.1 at /Users/ahmed/fvm/versions/2.0.1
• Framework revision c5a4b4029c (3 weeks ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/ahmed/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java