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
| //app/api/auth/[...nextauth]/route.ts | |
| import { authOptions } from '@/lib/auth'; | |
| import NextAuth from 'next-auth'; | |
| const handler = NextAuth(authOptions); | |
| export { handler as GET, handler as POST }; | |
| //lib/auth.ts |
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
| let findPermutations = (string) => { | |
| if (!string || typeof string !== "string"){ | |
| throw new TypeError('Invalid string.'); | |
| } | |
| if(string.length < 2 ) return [string] | |
| let permutationsArray = [] | |
| for (let i = 0; i < string.length; i++){ |
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
| var maxChar = (value) => { | |
| if (typeof value !== 'string') { | |
| throw new TypeError('The param should be a string') | |
| } else if (!value) { | |
| throw new Error('The param should be a valid string') | |
| } | |
| const occurrences = new Map(); | |
| const characters = value |
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
| //spam message the chats with thirugram.js | |
| //open up telegram web and go to the chat you want to spam | |
| //open console ( Ctrl + Shift + J ) | |
| //execute the code | |
| var message = ""; //spam message | |
| var interval = 1 ; // in seconds | |
| var count = 10 ; //number of times to send | |
| var notifyInterval = 5 ; //notify | |
| var i = 0 ; | |
| var timer = setInterval(function(){ |