Coder Social home page Coder Social logo

Hi 👋

  function personalTouch(task: string, mood: string = 'neutral'): string {
    /**
     * A function to add a personal touch for Aldi Krasniqi.
     * 
     * Args:
     * - task (string): The task to execute.
     * - mood (string): Your current mood. Default is 'neutral'.
     * 
     * Returns:
     * - string: A personalized message with some fun elements.
     */
    
    const funEmojis: { [key: string]: string } = {
        'happy': '😄',
        'neutral': '😐',
        'frustrated': '😤'
    };

    const personalAdvice: { [key: string]: string } = {
        'happy': "Fantastic! Keep that spirit up while you code.",
        'neutral': "Maintain your balance, whether it's coding or biking downhill.",
        'frustrated': "Take a break, maybe play a game of League of Legends or go fishing."
    };

    if (!(mood in funEmojis)) {
        return "Invalid mood! Please choose between 'happy', 'neutral', or 'frustrated'.";
    }

    return `Task to complete: ${task} ${funEmojis[mood]}. Advice: ${personalAdvice[mood]}`;
}

const message: string = personalTouch("Optimize the JavaScript performance", "happy");
console.log(message);

Things I code with

TypeScript Remix Nuxt Node React ReactNative Vue Ionic TailwindCSS Docker GitHub Actions Apollo-GraphQL Nginx Kubernetes aws

Aldi Krasniqi's Projects

adobt-me icon adobt-me

"Adopt-Me" is a React and JavaScript-based web application designed to connect prospective pet owners with adoptable animals.

c-estlavue icon c-estlavue

Vue examples Fundamentals building with flexible components using directives, props, lifecycle hooks, and slots.Vue Router for routing and Pinia for state management.

fullstack.auth icon fullstack.auth

Fullstack authorisation and authentication with Vue.js Node.js and Stytch that secures web application.

job-listings icon job-listings

The goal of this project is to create a job aggregator that collects job listings from various websites and presents them in a unified format to help job seekers find relevant opportunities.

kubernetes-docker icon kubernetes-docker

This GitHub repository showcases a Node.js web application with components deployed on the Google Cloud Kubernetes Engine. The backend is built with Node.js, utilizing the EJS view engine for the frontend. MongoDB serves as the database, managing the application's data. The project is version-controlled using GitHub, facilitating collaborative deve

real-estate-web3 icon real-estate-web3

This project is a Real Estate web application built with a technology stack that includes React, TypeScript, Solidity, Tailwind CSS, and Headless UI. It leverages the power of Web3 infrastructure for enhanced capabilities.

remixconnect icon remixconnect

"RemixConnect" is a dynamic real-time chat application designed to seamlessly connect individuals and groups across various platforms. Built on top of the TypeScript, Remix framework, Supabase and Tailwind for styling.

shoping-oop icon shoping-oop

Migrating pure javascript object oriented programming to typescript

team-collaboration icon team-collaboration

Northwest Bank is a financial institution that provides various banking services to its customers.

tracking icon tracking

goal tracking app is designed to help individuals and teams stay focused, motivated, and organized as they work towards their objectives

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.