Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Harouna Diallo hadpro24

🎯
Focusing
View GitHub Profile
View gist:637824f1111cb7be302e0e00840cbf60
import os
import os.path as path
import argparse
import smtplib, ssl
import mysql.connector
import pandas as pd
import numpy as np
View app.py
from flask import Flask
from flask_restful import Api, Resource, reqparse
app = Flask(__name__)
api = Api(app)
users = [
{
"name": "Nicholas",
"age": 42,
View __replit_main__
const allStates = ["Abia", "Adamawa", "Anambra", "Akwa Ibom", "Bauchi", "Bayelsa", "Benue", "Borno", "Cross River", "Delta", "Ebonyi", "Enugu", "Edo", "Ekiti", "Gombe", "Imo", "Jigawa", "Kaduna", "Kano", "Katsina", "Kebbi", "Kogi", "Kwara", "Lagos", "Nasarawa", "Niger", "Ogun", "Ondo", "Osun", "Oyo", "Plateau", "Rivers", "Sokoto", "Taraba", "Yobe", "Zamfara"];
function compare(x, y) {
return x.length - y.length;
}
const sortByNameLength = (states) => {
states.sort(compare);
return states;
You can’t perform that action at this time.