Skip to content

Instantly share code, notes, and snippets.

View alash3al's full-sized avatar

Mohammed Al Ashaal alash3al

View GitHub Profile
@alash3al
alash3al / main.dart
Created March 24, 2022 12:34
elnews.app ui spaghetti code
import 'package:async_builder/async_builder.dart';
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:responsive_framework/responsive_framework.dart';
import 'package:url_launcher/url_launcher.dart';
Resolution Bitrate Framerate
416 x 234 145 ≤ 30 fps
640 x 360 365 ≤ 30 fps
768 x 432 730 ≤ 30 fps
768 x 432 1100 ≤ 30 fps
960 x 540 2000 same as source
1280 x 720 3000 same as source
1280 x 720 4500 same as source
1920 x 1080 6000 same as source
1920 x 1080 7800 same as source
@alash3al
alash3al / orchid.rtl.css
Created June 25, 2020 10:14
orchid.rtl.css
.chart-container{position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.chart-container .axis,.chart-container .chart-label{fill:#555b51}.chart-container .axis line,.chart-container .chart-label line{stroke:#dadada}.chart-container .dataset-units circle{stroke:#fff;stroke-width:2}.chart-container .dataset-units path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container .dataset-path{stroke-width:2px}.chart-container .path-group path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container line.dashed{stroke-dasharray:5,3}.chart-container .axis-line .specific-value{text-anchor:start}.chart-container .axis-line .y-line{text-anchor:end}.chart-container .axis-line .x-line{text-anchor:middle}.chart-container .legend-dataset-text{fill:#6c7680;font-weight:600}.graph-svg-tip{position:absolute;z-index:1;padding:10px;font-size:12px;color:#959da5;text-align:center;background:rgba(0,0,0,.8);border-radius:3px}.graph-
@alash3al
alash3al / README.md
Created January 25, 2019 18:41
SQLer intro

What is SQLer?

SQLer is a tiny software that enables you to expose your simple SQL queries directly to the web so you can access it using any HTTP client, in another words, it helps you to expose this select * from mytable to be the backend of GET /mytabledata endpoint.

Not just RESTful APIs, but also REDIS protocol, so you can do this redis-cli -p3678 mytabledata !


Why did I create SQLer?

Sometimes I need to write APIs for MVPs quickly and what I really do is installing any envionrment i.e laravel, django, rails ... etc to just create some endpoints that will execute SQL queries. I asked myself, why there isn't a tool that accelerates that process!

@alash3al
alash3al / wsify-utime-track-disconnect.js
Created November 7, 2018 11:48
Wsify connection tracking for utime
function wsifyTrackDisconnect(opts){
url = opts.url || "wss://wsify-utime.uflare.io/subscribe"
key = opts.key || (function(){
throw new Error("You didn't specify the user key {key: ''}");
})()
ws = new WebSocket(url + "?key="+key)
ws.onclose = function(){
alert("Please note that any currently running task has been pused due to network interruption, please refresh the page when network connection resumed")
}
ws.onopen = function(){
#!/usr/bin/env php
<?php
/**
* Tix
*
* A very tiny event loop that emulates node.js main loop
*/
class Tix extends stdClass
{
@alash3al
alash3al / git-remix.sh
Created May 21, 2018 10:38
Merge Branch with Multiple branches at one command
#!/bin/bash
for branch in "$@"
do
echo -e "Checking out $branch ...\n"
git checkout $branch
echo -e "Merging from $1 into $branch ...\n"
git merge $1
@alash3al
alash3al / rexerver.md
Last active December 8, 2017 12:44
Hello!

Rexerver

===========

A DNS MAnager Built from scratch in Golang using the microservices design pattern, it consists of 6 services

  • DNS Resolver (with an optional forwarder fallback)
  • RESTful API (to make it easy to manage the entries)
  • Hosts File(s) compatible service, so you can provide hosts file to it and it will resolve host names from it.
  • Caching layer, to low the I/O usage.
@alash3al
alash3al / Magento2.md
Created October 23, 2017 12:33 — forked from JeansBolong/Magento2.md
Magento2 CheatSheet

Magento 2 tutorial

http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/bk-frontend-dev-guide.html
https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-1
https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-2
http://alanstorm.com/category/magento-2/

I have installed Magento 2 successfully, but icons are not displaying and not able to click anywhere in backend.

Please try running following command.

@alash3al
alash3al / gist:4671c476823f97b4d1f664d5a236236e
Created October 18, 2017 08:40 — forked from piotrekkaminski/gist:9bc45ec84028611d621e
How to automatically download patches and release of Magento
1) First you need to generate download token. Login to your account on magento.com and generate it in Account Settings->Downloads Access Token
2) You will need your MAGEID as well. It is shown at the top-left in your account page.
3) curl -k https://MAGEID:TOKEN@www.magentocommerce.com/products/downloads/info/help
4) Profit!