๐™๐™ฃ๐™ง๐™š๐™–๐™ก ๐˜พ๐™ค๐™™๐™š๐™ง
1.52K subscribers
6 photos
7 files
34 links
A place for coders ;)
Download Telegram
#ci4
How to make REST API using Ci 4

create a controller:

// Check CSRF validation
if (!$this->request->isAJAX() || !$this->request->isValidCSRF()) {
return $this->response->setStatusCode(403)->setJSON(['message' => 'Forbidden', 'code' => 403]);
}

// Set the content type to JSON
$this->response->setContentType('application/json');

// set api resonse

// Example response
return $this->response->setJSON(['message' => 'Success']);
๐Ÿ‘Ž1
Protect your site from bots using FingerPrintJs

https://fingerprintjs.github.io/BotD/main/

Example usage:

const botdPromise = import('https://openfpcdn.io/botd/v1').then((Botd) => Botd.load()) // Get detection results when you need them. botdPromise .then((botd) => botd.detect()) .then((result) => console.log(result)) .catch((error) => console.error(error))

Bonus tips: Put the code in head tag
Use Load event
addEvenListener("load"... Bot detection will trigger when document loaded
๐Ÿ‘2โค1
How to merge 2 or many json dict into One in (Python, PHP, JS)

#js
var b = { success:true }
var c = { message: "something", ...b }
console.log(c)


Usage: Use "var" keyword to re assign the variable and use spread method to merge "...json object "

#php
$b = [ "success"=> true ];
$c = ["biswa":"string"];
array_merge($b, $c)

Usage: array_merge used to merge arrays into one array and we need use json_decode and json_encode to make a json obj

#py

Best way to merge in python is using unpacking operator **dict_name here is example:

b = { "success":True }
c = { "hell":None}
print({**b, **c})
๐Ÿ˜ฑ7๐Ÿ˜ข5๐Ÿคฎ4๐Ÿ’ฉ4๐Ÿ˜3๐Ÿคฌ3๐Ÿ‘Ž2๐Ÿค”2๐Ÿ‘1๐Ÿ”ฅ1๐Ÿคฏ1
Good Looking Toast UI

Usage:
import { toast } from 'https://cdn.skypack.dev/wc-toast';

// Error message
toast.error('Authentication failed');
// Success message
toast.success('Authentication success');

Download Source:
https://github.com/abdmmar/wc-toast/archive/refs/heads/main.zip

Demo:
https://www.cssscript.com/demo/notification-wc-toast
๐Ÿ”ฅ4โค1
Forwarded from Off
spotify.py
5.3 KB
Spotify Account Generator

Response Improved
Android API

~ Coded By Biswa xD
#python
Basic Threading Example - Run your code in parallel

import threading
def sum(x, y):
result = x + y
print(f"The sum of {x} and {y} is {result}")

# Number of iterations num_iterations = 50

# Loop to create and start threads

for i in range(num_iterations):

thread = threading.Thread(target=sum, args=(3, 5))

# Start the thread

thread.start()

# Wait for all threads to finish

thread.join()

print("Program completed.")


Usage:
target= which function do u want to run on thread

args= the required params of targeted function
๐Ÿ‘7โค1
Free SMM Bot coming with rate-limit :D

...wait and see views of this post
โค11๐Ÿ”ฅ2
Make Your Own AI GPT with LLAMA 2 Model

Features:

- Open source
- Unlimited use
- Works offline
- No need api key
- 7 Billion Chat

Requirement:
Python 3.10 +
wget

Source: https://github.com/h2oai/h2ogpt
๐Ÿ‘5
ChatGPT 4 + IMAGE GENERATOR API

-> Unlimited Usage
-> Unlimited Image Generation
-> Rest API
-> FREE OFCOURSE

WILL DROP HERE

10+ โค๏ธ reaction required :D
โค67๐Ÿ‘Ž3๐Ÿ‘2๐Ÿ”ฅ2
๐™๐™ฃ๐™ง๐™š๐™–๐™ก ๐˜พ๐™ค๐™™๐™š๐™ง
ChatGPT 4 + IMAGE GENERATOR API -> Unlimited Usage -> Unlimited Image Generation -> Rest API -> FREE OFCOURSE WILL DROP HERE 10+ โค๏ธ reaction required :D
ALL IN ONE AI BUNDLE โœ…

ChatGPT โœ…
LLAMA โœ…
Bard (Under Process...)
Image Generator โœ…

There is no usage limit :D

How to use:

hyper = HyperGPT()
hyper.base_api = "https://api.biswax.dev/{}"

prompt = "what is your name?"

# chatgpt response
print("ChatGPT Response: ")
chatgpt = hyper.chatbot(prompt, model="gpt")
print(chatgpt.response)

# facebook's llama response
print("\nLLAMA Response: ")
llama = hyper.chatbot(prompt, model="llama")
print(llama.response)

# Generate Image
print("\nGenerate Image: ")
imageai = hyper.generate_image("elon musk", model="3d")
print("Image is ready: ", imageai.result)

Source Code:
https://github.com/TechGPT/HyperGPT/blob/main/hypergpt.py

Coded by @BiswaX
Please open Telegram to view this post
VIEW IN TELEGRAM
โค13๐Ÿ‘Ž4๐Ÿ”ฅ4๐Ÿ‘3
ChatGPT Premium dropped on our giveaway channel ๐Ÿ“Œ
check it out: here

DO 300 subs here :D
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘1
๐™๐™ฃ๐™ง๐™š๐™–๐™ก ๐˜พ๐™ค๐™™๐™š๐™ง pinned ยซChatGPT 4 + IMAGE GENERATOR API -> Unlimited Usage -> Unlimited Image Generation -> Rest API -> FREE OFCOURSE WILL DROP HERE 10+ โค๏ธ reaction required :Dยป
Midjourney API coming

React with love โค๏ธ for source code
10+ reaction required:)

Why should I use:

- Unlimited api calls
- Unlimited Image generation
- No need API key
โค67๐Ÿ‘6๐Ÿ”ฅ1
midjourney.py
4.4 KB
Image Generator with 3 Models

Models available for use:
openjourney

midjourney-diffusion

stable-diffusion


How To use:
image = Midjourney("cute cat image", model="openjourney")
print(image)

Coded By @BiswaX

Give a heart reaction if this was helpful to you! ๐Ÿ’™
โค21๐Ÿ‘4๐Ÿ”ฅ2
chatgpt4.py
1.3 KB
ChatGPT 3/4 API

API crawled from chatgpt.ai
enjoy unlimited queries there is no limit :D

You can INBOX me at @BiswaX
If you want to make API of any kind of website :D
โค9๐Ÿ‘3๐Ÿ”ฅ2๐Ÿ‘Ž1
bardapi.py
4.9 KB
Google Bard Crawled Version

Important before start:
* visit โ€”> bard.google.com
* Install 'cookies editor' to get cookies
here (If you already have installed then skip)
* Get the values of __Secure-1PSID and__Secure-1PSIDTS named cookies. Replace cookies in bardapi.py
* There is no step enjoy!

Run after replacing cookies:
python bardapi.py

You can drop a feedback at @BiswaX
Also drop a heart reaction โค๏ธ on this post
โค13๐Ÿ‘1๐Ÿ‘Ž1
ChatGPT Premium dropped on our giveaway channel ๐Ÿ“Œ
check it out: here

DO 500 subs here :D
~ By David
๐Ÿ‘13โค2๐Ÿ‘Ž1๐Ÿ”ฅ1
React for Claude AI API
(claude.ai)

- custom modes
- can remember chat history
- unlimited use
- crawled version

Task:
Do 10+ reaction for source code
โค41๐Ÿ‘5๐Ÿ‘Ž1
claude.py
5.2 KB
Claude AI
~ An AI Chat Bot used by Discord

> Install requests Package:
pip install curl-cffi

Run:
python claude.py

How-To use:
All the steps mentioned in file

If the sessionkey gets expired, you can get it from claude.ai from cookies

>.< Drop your site for reverse engineering at @BiswaX
โค12๐Ÿ‘Ž2๐Ÿ‘1