She sells sea 🐚 by the sea 🏝️

Tipene
Tipene mod
edited May 8 in General
const getCodeBlock = async () ⇒ {
  console.log("codeBlock");
}

Tagged:

Comments

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis turpis vitae nisi fermentum ornare. Curabitur blandit orci orci, quis luctus eros fringilla sit amet.

    window.addEventListener("beforeprint", () => {
    	zE('messenger', 'hide');
    });
    

    😀😀

  • <head>
    		<meta charset="UTF-8" />
    		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    		<link rel="stylesheet" href="style.css" />
    		<title>Document</title>
    	</head>
    

    No auto formatting

  • <!DOCTYPE html>
    <html lang="en">
    	<head>
    		<meta charset="UTF-8" />
    		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    		<link rel="stylesheet" href="style.css" />
    		<title>Document</title>
    	</head>
    	<body class="body">
    		<div class="container">
    			<div>
    				<h1>Hello</h1>
    			</div>
    		</div>
    
    		<!-- Start of z3ntipeneh Zendesk Widget script -->
    		<!-- <script
    			nonce
    			id="ze-snippet"
    			src="https://static.zdassets.com/ekr/snippet.js?key=2041707a-050f-48df-a6f7-36b803a7999b"
    		></script> -->
    		<!-- End of z3ntipeneh Zendesk Widget script -->
    		<!-- Start of pokemonsupplyco Zendesk Widget script -->
    		<script
    			id="ze-snippet"
    			src="https://static.zdassets.com/ekr/snippet.js?key=c62c18ac-d3a3-4fb9-89ef-2226be5fd97e"
    		></script>
    		<!-- End of pokemonsupplyco Zendesk Widget script -->
    		<button id="button">Click me</button>
    		<script src="main.js"></script>
    	</body>
    </html>
    

  • Python

    def is_prime(num):
    """Check if a number is prime."""
    if num < 2:
    return False
    for i in range(2, int(num ** 0.5) + 1):
    if num % i == 0:
    return False
    return True Generate a list of even numbers using a list comprehension evens = [num for num in range(1, 21) if num % 2 == 0] Generate a list of prime numbers using a list comprehension and the is_prime function primes = [num for num in range(1, 21) if is_prime(num)] Print the results print("Even numbers from 1 to 20:", evens)
    print("Prime numbers from 1 to 20:", primes)

  • Tipene
    Tipene mod
    edited May 8

    I don't love the way it quotes quoted comments

    Edit: since you lose the context of the previous quote within this reply

  • I like the resolve button

  • /* Base style for images */img { width: 100%; /* Full width by default */ height: auto; /* Keep aspect ratio */}
    /* Style when the viewport width is 768px or more */@media (min-width: 768px) { .container { width: 750px; /* Fixed width for larger screens */ margin: 0 auto; /* Center the container */ }}
    /* Container with flex layout */.flex-container { display: flex; /* Use flexbox layout */ justify-content: space-around; /* Space children evenly */ align-items: center; /* Align children vertically in the center */}
    /* Children of the flex container */.flex-item { flex: 1; /* Flex grow factor */ padding: 10px; /* Padding around the item */}

  • I wish it auto applied code blocks

    /* Base style for images */
    img {
        width: 100%;            /* Full width by default */
        height: auto;           /* Keep aspect ratio */
    }
    
    /* Style when the viewport width is 768px or more */
    @media (min-width: 768px) {
        .container {
            width: 750px;       /* Fixed width for larger screens */
            margin: 0 auto;     /* Center the container */
        }
    }
    
    /* Container with flex layout */
    .flex-container {
        display: flex;          /* Use flexbox layout */
        justify-content: space-around; /* Space children evenly */
        align-items: center;    /* Align children vertically in the center */
    }
    
    /* Children of the flex container */
    .flex-item {
        flex: 1;                /* Flex grow factor */
        padding: 10px;          /* Padding around the item */
    }
    

  • I like that it recognizes languages and applies correct styling