Skip to content

Instantly share code, notes, and snippets.

View AhmedAbouelkher's full-sized avatar
🎯
Focusing

Ahmed Mahmoud AhmedAbouelkher

🎯
Focusing
View GitHub Profile
@AhmedAbouelkher
AhmedAbouelkher / DartLog.txt
Last active January 31, 2021 10:06
This the Dart capture logs when reproducing the issue
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!
Dart Code extension: 3.18.1
Flutter extension: 3.18.1 (activated)
App: Visual Studio Code
Version: 1.52.1
Platform: mac
Workspace type: Flutter

Client

getSetting:

  • latitude, longitude is a double to 6 floating point digits (ex: 31.219211)
  • rename latitude, longitude to lat, lan
  • return from_hour, to_hour in DateTime
  • description isn't a plain text (ex: return "About us" instead of <p>About us</p> or "privacy-policy")
  • what is slug?
[✓] 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
@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"}
@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')

Update 20-11-2021

Manual Subscription

  • create manual subscription: POST /manual/subscriptions

Body

{
    "kid": "user_kid",
    "metadata": {
 "daily_classic_coffee_count": 1,
@AhmedAbouelkher
AhmedAbouelkher / xcode-console-logs.txt
Created March 4, 2021 09:07
This a crash log for my app when using `image picker` on iOS [iPhone 6s]
2021-03-04 00:28:50.965445+0200 Runner[12765:1387776] Metal API Validation Enabled
2021-03-04 00:28:51.320883+0200 Runner[12765:1388031] 6.26.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001011] App Delegate Proxy is disabled.
2021-03-04 00:28:51.382509+0200 Runner[12765:1388062] flutter: Observatory listening on http://127.0.0.1:54693/HgVwgJyl5AA=/
2021-03-04 00:28:57.072419+0200 Runner[12765:1388053] fopen failed for data file: errno = 2 (No such file or directory)
2021-03-04 00:28:57.072528+0200 Runner[12765:1388053] Errors found! Invalidating cache...
2021-03-04 00:28:57.853121+0200 Runner[12765:1388053] fopen failed for data file: errno = 2 (No such file or directory)
2021-03-04 00:28:57.853262+0200 Runner[12765:1388053] Errors found! Invalidating cache...
2021-03-04 00:29:21.559735+0200 Runner[12765:1387776] [Assert] View <(null):0x0> does not conform to UITextInput protocol
2021-03-04 00:29:21.778253+0200 Runner[12765:1387776] [Assert] View <(null):0x0> does not conform to UITextInput protocol
2021-0

Google map styling

[
    {
      "elementType": "geometry",
      "stylers": [
        {"color": "#242f3e"}
      ]
    },
@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):
@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'