Code Monkey home page Code Monkey logo

Hi šŸ‘‹, I'm Zakaria Kasmi

#include <about_me>

using namespace std

int main() {
    std::cout << "Launching New HTTP Connection!!!" << std::endl;

    int serverSocket = socket(AF_INET, SOCK_STREAM, 0);
    if (serverSocket < 0)
        _error(errno);

    int optval = 1;
    if (setsockopt(serverSocket, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)) < 0)
        _error(errno);

    sockaddr_in serverAddress;
    serverAddress.sin_family = AF_INET;
    serverAddress.sin_addr.s_addr = inet_addr("127.0.0.1");
    serverAddress.sin_port = htons(3000);
    memset(&(serverAddress.sin_zero), '\0', 8);

    if (bind(serverSocket, reinterpret_cast<sockaddr*>(&serverAddress), sizeof(serverAddress)) < 0)
        _error(errno);

    if (listen(serverSocket, SOMAXCONN) < 0)
        _error(errno);

    std::cout << "Waiting For Connection!!!" << std::endl;

    sockaddr_in clientAddress;
    socklen_t clientAddressSize = sizeof(clientAddress);
    int clientSocket = accept(serverSocket, reinterpret_cast<sockaddr*>(&clientAddress), &clientAddressSize);
    if (clientSocket < 0)
        _error(errno);

    send(clientSocket, "Welcome To My Profile <3", 26, 0);

    std::cout << "Thanks For Visiting My Profile" << std::endl;

    close(clientSocket);
    close(serverSocket);

    return 0;
}

zakie_kasmi

Blogs posts

Connect with me:

sfinoe zakie_kasmi sfinoe sfinoe zakisblue

Languages and Tools:

Android C C++ JavaScript React React Native NodeJS Express.js

Anurag's GitHub stats

Anurag's GitHub stats

GitHub Streak

Zakaria Kasmi's Projects

audiocraft icon audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.

bark icon bark

šŸ”Š Text-Prompted Generative Audio Model

diffusers icon diffusers

šŸ¤— Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch

dragdiffusion icon dragdiffusion

Implementation of DragDiffusion: Harnessing Diffusion Models for Interactive Point-based Image Editing

dreamedit icon dreamedit

Code for "DreamEdit: Subject-driven Image Editing"

editanything icon editanything

Edit anything in images powered by segment-anything, ControlNet, StableDiffusion, etc.

filerobot-image-editor icon filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues

kohya-colab icon kohya-colab

Accessible Google Colab notebooks for Stable Diffusion Lora training, based on the work of kohya-ss and Linaqruf

lama-cleaner icon lama-cleaner

Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.

llama-efficient-tuning icon llama-efficient-tuning

Easy-to-use fine-tuning framework using PEFT (PT+SFT+RLHF with QLoRA) (LLaMA-2, BLOOM, Falcon, Baichuan)

profusion icon profusion

Code for Enhancing Detail Preservation for Customized Text-to-Image Generation: A Regularization-Free Approach

reversion icon reversion

ReVersion: Diffusion-Based Relation Inversion from Images

segment-anything icon segment-anything

The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.