Skip to content

Instantly share code, notes, and snippets.

@DannyAkintunde
DannyAkintunde / countries.json
Last active June 7, 2025 17:47
phone number input
[
{"name":"Afghanistan","code":"AF","phone":"+93","masks":[{"mask":"000 000 000"}]},
{"name":"Aland Islands","code":"AX","phone":"+358","masks":[{"mask":"0000 0000000","leadingZero":true},{"mask":"000 0000000"}]},
{"name":"Albania","code":"AL","phone":"+355","masks":[{"mask":"0000 000 0000","leadingZero":true},{"mask":"000 000 0000"}]},
{"name":"Algeria","code":"DZ","phone":"+213","masks":[{"mask":"00000 00 00 00","leadingZero":true},{"mask":"0000 00 00 00"}]},
{"name":"American Samoa","code":"AS","phone":"+1 684","masks":[{"mask":"(000) 000-0000"}]},
{"name":"Andorra","code":"AD","phone":"+376","masks":[{"mask":"000 000"}]},
{"name":"Angola","code":"AO","phone":"+244","masks":[{"mask":"0000 000 000","leadingZero":true},{"mask":"000 000 000"}]},
{"name":"Anguilla","code":"AI","phone":"+1 264","masks":[{"mask":"(000) 000-0000"}]},
{"name":"Antarctica","code":"AQ","phone":"+672","masks":[{"mask":"000 000"}]},
@DannyAkintunde
DannyAkintunde / photooxy.json
Last active February 2, 2025 13:21
effects json for whatsapp bot
{
"text": [
{
"meta": {
"pattern": "neondark"
},
"url": "https://photooxy.com/elegant-3d-neon-dark-metal-text-effect-online-free-416.html"
}
]
}
@DannyAkintunde
DannyAkintunde / socialPreview.js
Created December 16, 2024 08:08
A simple scraper to fetch social previews from sites
const cheerio = require('cheerio')
/*
* Checks if the provided string is a valid URL.
* @param {string} url - The URL to validate.
* @returns {boolean} - True if valid, false otherwise.
*/
function isUrl(url) {
const pattern = new RegExp(
"^((https|http)?:\\/\\/)?" + // protocol
@DannyAkintunde
DannyAkintunde / attp.js
Last active December 6, 2024 19:32
Text to gif scrape from bloggif.com
const axios = require("axios");
const cheerio = require("cheerio");
const FormData = require('form-data');
const UserAgent = require('user-agents');
const fonts = {
1: "porky_s"
// check site and input other fonts here :v I'm to lazy to do it
}