Skip to content

Instantly share code, notes, and snippets.

View AhmedAbouelkher's full-sized avatar
🎯
Focusing

Ahmed Mahmoud AhmedAbouelkher

🎯
Focusing
View GitHub Profile
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 / 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 {

E-Commerce

Deadline: 17/09/2022 - 8PM

Features

Auth

  • user can login, register, get his data, and logout.
  • use JWT as and authorization token.
package main
import (
"context"
"log"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/s3"
)
D/SurfaceView(31194): UPDATE Surface(name=SurfaceView - com.ahmed.zoom_sdk_issue/com.ahmed.zoom_sdk_issue.MainActivity)/@0xa84b9d9, mIsProjectionMode = false
V/MiuiFrameworkFactory(31194): get AllImpl object = android.common.MiuiFrameworkFactoryImpl@1f96f9e
W/MirrorManager(31194): this model don't Support
D/SurfaceView(31194): UPDATE Surface(name=SurfaceView - com.ahmed.zoom_sdk_issue/com.ahmed.zoom_sdk_issue.MainActivity)/@0xa7e1a95, mIsProjectionMode = false
I/AudioManager(31194): In isBluetoothScoAvailableOffCall(), calling appilication: com.ahmed.zoom_sdk_issue, return value: true
I/AudioManager(31194): In isBluetoothScoOn(), calling application: com.ahmed.zoom_sdk_issue
D/BluetoothHeadset(31194): Binding service...
I/ZoomSDK (31194): setDomain, set Zoom domain as zoom.us
I/flutter (31194): listen on event channel
I/MeetingServiceImpl(31194): joinMeetingWithParams: sUri=zoomus://zoom.us/join?confno=76510999443&uname=ahmed&pwd=730JCx&show_water_mark=1&no_driving_mode=1&no_invite=1&no_dial_in_via_phone=1&no

A Wave clipper for nav bars or any other usecase.

class _WaveClipper extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    const depth = 0.4; // depth of the wave
    const _s = .2; // slope of the wave
    const _loc = 0.8 / 2; // location of the wave
    final path = Path()
@AhmedAbouelkher
AhmedAbouelkher / main.go
Last active February 6, 2023 13:45
A demo code to test [Handling CORS in Nginx as a reverse proxy]
package main
import (
"net/http"
"github.com/rs/cors"
)
func main() {
mux := http.NewServeMux()
@AhmedAbouelkher
AhmedAbouelkher / README.md
Last active October 29, 2023 08:38
Golang Script to extract file direct download link for Google Drive files with any size.

Golang Script to extract file direct download link for Google Drive files with any size without encountering the dump Google Drive can't scan this file for viruses webpage.

_0x173302 =
(!(function (p, s) {
var e, x;
"object" == typeof exports && "undefined" != typeof module
? (module.exports = s())
: "function" == typeof define && define.amd
? define(s)
: ((p = p || self),
(e = p.Cookies),
((x = p.Cookies = s()).noConflict = function () {
@AhmedAbouelkher
AhmedAbouelkher / run.sh
Last active April 4, 2024 23:33
Create an `env.dart` files passed on the Environment Values passed and prefixed with `flutter_`
#!/bin/sh
# list all system env variables starting with flutter_ and put them in an array variable
values=$(env | grep ^flutter_)
# check if values is empty
if [ -z "$values" ]; then
echo "No environment variables found starting with flutter_"
exit 0
fi