This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From : http://country.io/names.json, http://country.io/prefix.json | |
// Make sure to update it once in a while | |
const countries = [ | |
{ name: 'Afghanistan', code: 'AF', prefix: '93' }, | |
{ name: 'Aland Islands', code: 'AX', prefix: '35818' }, | |
{ name: 'Albania', code: 'AL', prefix: '355' }, | |
{ name: 'Algeria', code: 'DZ', prefix: '213' }, | |
{ name: 'American Samoa', code: 'AS', prefix: '1684' }, | |
{ name: 'Andorra', code: 'AD', prefix: '376' }, | |
{ name: 'Angola', code: 'AO', prefix: '244' }, |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"nodes":[{"id":1,"callFrame":{"functionName":"(root)","scriptId":"0","url":"","lineNumber":-1,"columnNumber":-1},"hitCount":0,"children":[2,43,380,381,388,666,678,682,691,2493,2496,2505,2507,2509,2513,2514,2552,2554,2568,2711,2720,2722,2799,2805,2881,2899,2918,2919,2923,2925,2946,2948,2976,2996,4836,4908,5999,6387,6418,6423,6437,6468,6490,6794,6849,6854,6855,6888,6898,6900,6901,7321,7416,7420,7426,7444,7455]},{"id":2,"callFrame":{"functionName":"processTicksAndRejections","scriptId":"39","url":"node:internal/process/task_queues","lineNumber":66,"columnNumber":34},"hitCount":6,"children":[3,408,415,2797,2894,2898,2908,2979,2982,3004,3005,4830,6672,6723,7360,8083],"positionTicks":[{"line":69,"ticks":1},{"line":98,"ticks":1},{"line":81,"ticks":1},{"line":82,"ticks":2},{"line":77,"ticks":1}]},{"id":3,"callFrame":{"functionName":"emit","scriptId":"455","url":"node:internal/child_process","lineNumber":934,"columnNumber":15},"hitCount":1,"children":[4,393],"positionTicks":[{"line":936,"ticks":1}]},{"id":4,"callFram |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the type for upload parts | |
type UploadParts = { | |
ETag: string; | |
PartNumber: number; | |
}; | |
// Function to create multipart upload | |
async function createMultipartUpload(file: File): Promise<{ uploadId: string; key: string }> { | |
const fileKey = `${crypto.randomUUID()}-${file.name}`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create dashboard using this exact prompt: | |
{ | |
"prompt": "Build a modern dashboard UI named 'Angle' using React, Tailwind CSS, shadcn/ui components, @tabler/icons-react for icons, and recharts for charts, based on the provided visual reference.", | |
"details": { | |
"layout": { | |
"sidebar": { | |
"orientation": "vertical", | |
"brand": { | |
"icon": "IconHexagonLetterM", // Placeholder for the Mere logo, or a specific Tabler icon | |
"name": "Mere" |
OlderNewer