Skip to content

Instantly share code, notes, and snippets.

View admicaa's full-sized avatar
💡
Code code code

Ahmed Ali Thabet admicaa

💡
Code code code
  • Egypt, Sohag
View GitHub Profile
@admicaa
admicaa / cloudSettings
Created October 29, 2022 13:10
Visual Studio Code Settings Sync Gist
// Empty
@admicaa
admicaa / cloudSettings
Created October 29, 2022 13:02
Visual Studio Code Settings Sync Gist
// Empty
@admicaa
admicaa / cloudSettings
Created October 29, 2022 12:56
Visual Studio Code Settings Sync Gist
// Empty
@admicaa
admicaa / cloudSettings
Last active October 29, 2022 12:55
Visual Studio Code Settings Sync Gist
// Empty
@admicaa
admicaa / 0- install nodejs and redis.sh
Created January 10, 2022 01:13 — forked from moaalaa/0- install nodejs and redis.sh
How to run PM2 with laravel queue and laravel echo server
# Node Js
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -
sudo yum install nodejs
node --version
npm --version
# Redis
getAddressObject(address_components) {
var ShouldBeComponent = {
home: ["street_number"],
postal_code: ["postal_code"],
street: ["street_address", "route"],
region: [
"administrative_area_level_1",
"administrative_area_level_2",
"administrative_area_level_3",
"administrative_area_level_4",
@admicaa
admicaa / cloudSettings
Last active October 29, 2022 13:19
google maps Address components parser
{"lastUpload":"2020-08-06T23:50:21.809Z","extensionVersion":"v3.4.3"}
@admicaa
admicaa / expected-google-maps-compoenent.json
Last active January 24, 2019 00:07
the expected response
{
"home": "",
"postal_code": "",
"street": "",
"region": "",
"city": "",
"country": ""
}
@admicaa
admicaa / google-maps-request-example.js
Created January 24, 2019 00:01
google map request example
// here is the request
// https://maps.googleapis.com/maps/api/geocode/json?address=Winnetka&key=YOUR_API_KEY
// the response would be
{
"results" : [
{
"address_components" : [
{
"long_name" : "Winnetka",
"short_name" : "Winnetka",
@admicaa
admicaa / chartjs.blade.php
Created August 7, 2018 10:34
Laravel Snappy, For PDF with Charts.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.pie-chart {
width: 900px;
height: 500px;