Skip to content

Instantly share code, notes, and snippets.

View mostafa6765's full-sized avatar
👨‍💻
code

Mostafa Kamal mostafa6765

👨‍💻
code
View GitHub Profile
@mostafa6765
mostafa6765 / editorjs.vue
Last active February 21, 2024 03:14
setup editorjs in vue. demo: https://eosbi.codesandbox.io/
<template>
<div >
<div >
<h1 style="text-align:center">This is vue editor.js <a href="https://twitter.com/@code4mk" target="_blank">@code4mk</a></h1>
</div>
<div class="editorx_body">
<!--editorjs id-->
<div class id="codex-editor"/>
</div>
@mostafa6765
mostafa6765 / dummy.json
Created November 23, 2023 09:57
dummy.json
const jsonData = [
{
"name": "my_first_dbt_model",
"resource_type": "model",
"unique_id": "model.dbt_demo.my_first_dbt_model",
"depends_on": {
"nodes": []
}
},
{
@mostafa6765
mostafa6765 / handler.py
Created November 1, 2023 15:31
lamda-image-resize
import os
import boto3
from io import BytesIO
from PIL import Image
# Initialize the S3 and Lambda clients
s3 = boto3.client('s3')
lambda_client = boto3.client('lambda')
def lambda_handler(event, context):
2023-08-25 18:58:10 [scrapy.utils.log] INFO: Scrapy 2.9.0 started (bot: palscraper)
2023-08-25 18:58:10 [scrapy.utils.log] INFO: Versions: lxml 4.9.2.0, libxml2 2.9.13, cssselect 1.2.0, parsel 1.8.1, w3lib 2.1.1, Twisted 22.10.0, Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)], pyOpenSSL 23.2.0 (OpenSSL 3.1.1 30 May 2023), cryptography 41.0.1, Platform macOS-13.4-arm64-arm-64bit
2023-08-25 18:58:10 [scrapy.crawler] INFO: Overridden settings:
{'BOT_NAME': 'palscraper',
'CONCURRENT_REQUESTS': 32,
'CONCURRENT_REQUESTS_PER_DOMAIN': 32,
'DOWNLOAD_TIMEOUT': 600,
'FEED_EXPORT_ENCODING': 'utf-8',
'LOG_FILE': 'united.text',
'NEWSPIDER_MODULE': 'palscraper.spiders',
2023-08-25 19:06:55 [scrapy.utils.log] INFO: Scrapy 2.9.0 started (bot: palscraper)
2023-08-25 19:06:55 [scrapy.utils.log] INFO: Versions: lxml 4.9.2.0, libxml2 2.9.13, cssselect 1.2.0, parsel 1.8.1, w3lib 2.1.1, Twisted 22.10.0, Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)], pyOpenSSL 23.2.0 (OpenSSL 3.1.1 30 May 2023), cryptography 41.0.1, Platform macOS-13.4-arm64-arm-64bit
2023-08-25 19:06:55 [scrapy.crawler] INFO: Overridden settings:
{'BOT_NAME': 'palscraper',
'CONCURRENT_REQUESTS': 32,
'CONCURRENT_REQUESTS_PER_DOMAIN': 32,
'DOWNLOAD_TIMEOUT': 600,
'FEED_EXPORT_ENCODING': 'utf-8',
'LOG_FILE': 'quotes.text',
'NEWSPIDER_MODULE': 'palscraper.spiders',
attrs==23.1.0
Automat==22.10.0
certifi==2023.5.7
cffi==1.15.1
charset-normalizer==3.1.0
click==8.1.6
constantly==15.1.0
cryptography==41.0.1
cssselect==1.2.0
docker==6.1.3
@mostafa6765
mostafa6765 / vscode_shortcuts.md
Created April 10, 2023 12:03 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@mostafa6765
mostafa6765 / fetch-api-examples.md
Created June 22, 2021 12:28 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@mostafa6765
mostafa6765 / docker-install-on-aws-ec2.md
Last active April 21, 2021 12:48
docker install on aws ec2

Docker install aws ec2:

  1. The first step is to add the GPG key for the official Docker repository:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64]"

@mostafa6765
mostafa6765 / queue.cpp
Last active April 17, 2021 23:27
Enqueue,Dequeue,Display c++ cpp
/******************************************************
QUEUE C++
AUTHOR URI:https://mostafa.itnishi.com
******************************************************/
#include<iostream>
#include<conio.h>
#include<stdlib.h>
#define SIZE 5
using namespace std;
int q[SIZE],front=0,rear=0;