Skip to content

Instantly share code, notes, and snippets.

View Ademking's full-sized avatar
🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
View GitHub Profile
@Ademking
Ademking / table.tex
Created May 22, 2023 01:25
Vertical alignment in longtable with figure in table
\documentclass{article}
\usepackage{array, longtable}
\usepackage[export]{adjustbox}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\begin{longtable}{|p{1in}| >{\raggedright}p{4.5in}|}\hline
p column & p column \tabularnewline \hline
@Ademking
Ademking / app.py
Created March 21, 2023 14:34
Get list of technologies and materials
import requests
def getTechnologies():
url = "https://smartquote-server.fathommfg.com/api/technologies/"
payload={}
headers = {
'authority': 'smartquote-server.fathommfg.com',
'accept': 'application/json, text/plain, */*',
'accept-language': 'en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7',
'cache-control': 'no-cache',
@Ademking
Ademking / README.md
Created February 2, 2023 09:17
Projet
Caractéristique Amazon Alibaba Shopify
Type de plateforme Plateforme de commerce électronique Plateforme de commerce électronique B2B et B2C Plateforme de commerce électronique
Focus Ventes au détail, tant en nom propre qu'en tiers Ventes en gros et au détail Petites et moyennes entreprises
Produits Large gamme de produits, notamment électroniques, livres, mode, etc. Large gamme de produits, notamment électroniques, mode, etc. Principalement axé sur la vente de produits physiques
Portée géographique Mondiale Mondiale avec un accent sur le marché asiatique Mondiale
Frais Frais d'abonnement mensuels, frais de recommandation pour les ventes en tiers Frais de transaction, frais d'adhésion pour les vendeurs Frais d'abonnement mensuels, frais de transaction
Options de paiement Cartes de crédit, Amazon Pay Alipay, virement bancaire, cartes de crédit Cartes de crédit, PayPal, Stripe
@Ademking
Ademking / README.md
Created January 27, 2023 15:05
Auto Like facebook stories
  1. Open https://m.facebook.com/ and select any story

  2. Open DevTools and run this script

const main = async n => {
  const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
  console.log('Starting script...')

 for (let i = 0; i < n; i++) {
@Ademking
Ademking / README.md
Last active March 3, 2025 23:32
Regex - Tailwind - Get all CSS classes with "dark" mode

dark:\w+([-:\w]*\w)

[^'"\s]*dark:[^'"\s]*

Thanks to @angus-mcritchie

@Ademking
Ademking / README.md
Created August 19, 2022 12:49
Angular + Node 18 error: ERR_OSSL_EVP_UNSUPPORTED - How to fix

Run:

Windows

set NODE_OPTIONS=--openssl-legacy-provider

Mac & Linux

export NODE_OPTIONS=--openssl-legacy-provider
@Ademking
Ademking / README.md
Last active December 23, 2024 16:44
Lean Javascript for FREE
@Ademking
Ademking / README.md
Last active October 13, 2021 07:52
SQL
internal
(66, 68, 69, 70, 71, 72, 73, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 102, 1099, 1101, 1106, 1111, 1112, 1114, 1115, 1119, 1121, 1122, 1123, 1124, 1125)

internal_ext_control
(1109, 1127, 1128, 1129, 1135, 1136, 1137)

inopinee
(77, 91, 92, 94, 95, 96, 1100, 1102, 1103, 1104, 1105, 1107, 1110, 1113, 1116, 1117, 1118, 1120, 1126)
@Ademking
Ademking / get_fb_id.js
Created September 5, 2021 18:15
Get facebook user id from url
let url = "https://www.facebook.com/AdemKouki.Officiel/"
fetch(`https://whopostedwhat.com/resolve.php?request=resolve&username=${url}`)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Site meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>SmartPhone Store</title>
<!-- CSS -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">