Snippets Collections
<style>
/* Text Animation Styles */
[text-split] {opacity: 0;}
html.w-editor [text-split] {opacity: 1;}

.word {
	overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  transform-origin: bottom;
}

/* Lenis Scroll Styles */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
</style>
# Python 3: List comprehensions
>>> fruits = ['Banana', 'Apple', 'Lime']
>>> loud_fruits = [fruit.upper() for fruit in fruits]
>>> print(loud_fruits)
['BANANA', 'APPLE', 'LIME']

# List and the enumerate function
>>> list(enumerate(fruits))
[(0, 'Banana'), (1, 'Apple'), (2, 'Lime')]
The NFT Minting Platform presents a viable chance to secure a long-term profitable position in the ever-evolving NFT world. NFTs are unreplicable, perpetual ownership records in the form of tokens. Thus, creating an NFT mining platform of your own with strong features and security is sure to be successful. To create your own NFT Minting platform and ensure your success, visit NFT minting platform development company Coinclone to learn more.
orderby(select(AGENCY[UID], in([UID], Database[Agency Name])), [Agency])
#To define a function that take two integers 
# and return the sum of those two numbers
def add(a,b):
  return a+b

#initializing the variables
num1 = 10
num2 = 5

#function calling and store the result into sum_of_twonumbers
sum_of_twonumbers = add(num1,num2)

#To print the result
print("Sum of {0} and {1} is {2};" .format(num1,
                           num2, sum_of_twonumbers))
# Python3 program to add two numbers

number1 = input("First number: ")
number2 = input("\nSecond number: ")

# Adding two numbers
# User might also enter float numbers
sum = float(number1) + float(number2)

# Display the sum
# will print value in float
print("The sum of {0} and {1} is {2}" .format(number1, 
                                            number2, sum))
418s-242128@cberi.go.kr
<?php 
// ADD SHORTCODE [latest_products category='banner' type='' taxonomy='product_cat' posts_per_page="1"];
add_shortcode('latest_products', 'codex_latest_products');
function codex_latest_products($atts)
{

  ob_start();
  extract(shortcode_atts(
    array(
      'category' => '',
      'taxonomy' => '',
      'type' => 'product',
      'posts_per_page' => '12',
  ), $atts));
  ?>
<section id="home">
   <div class="container-fluid">
      <div class="row ser-content product-slider">
         <?php
           // WP_Query arguments;
           $category = explode(',', $category);  
           $args = array(
             'post_type'             => $type,
             'post_status'           => 'publish',
             'order'                 => 'DESC',
             'posts_per_page'        =>  $posts_per_page,
             'tax_query' => array(
               array(
                 'taxonomy'      => $taxonomy,
                 'field'         => 'slug',
                 'terms'         => $category,
               )
             )
           );

           // echo "<pre>";
           // print_r($args);

         $po = new WP_Query($args);
         ?>
         <?php if ($po->have_posts()) : ?>
             <?php while ($po->have_posts()) : ?>
                 <?php $po->the_post(); ?>
         <div class="col-md-3">
            <div class="product_col">
               <div class="product_inner">
                  <div class="product_img">
                     <?php the_post_thumbnail('full'); ?>
                  </div>
                  <div class="product_title">
                     <h4><?php echo esc_html(get_the_title()); ?></h4>
                  </div>
                  <div class="product_bottom">
                     <div class="detail-btn"><a class="prCart" href="<?php echo esc_url( get_site_url() . '/cart/?add-to-cart=' . $product->get_id() ); ?>">See Detail<span class="list-icon wd-icon far fa-eye"></span></a></div>
                     <div class="price_product">
                        <?php 
                           if ($product->is_type( 'simple' )) { ?>
                        <?php echo $product->get_price_html(); ?>
                        <?php } ?>
                        <?php 
                           if($product->get_type()=='variable') {
                               $available_variations = $product->get_available_variations();
                               $variation_id=$available_variations[0]['variation_id'];
                               $variable_product1= new WC_Product_Variation( $variation_id );
                               $regular_price = $variable_product1 ->regular_price;
                               $sales_price = $variable_product1 -> sale_price;
                               if (empty($sales_price)) {
                               $sales_price = 0;
                                 }
                               }
                           ?>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <?php
            endwhile;
            endif;
            ?>
      </div>
   </div>
</section>
<?php
wp_reset_postdata();
return ob_get_clean();
}
#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    
    int n;
    cin >> n;
    
    vector<vector<int>> S(n);
    for(int i = 0; i < n; i++){
        for(int j = 0; j <= i; j++){
            int a;
            cin >> a;
            S[i].push_back(a);
        }
    }

    vector<vector<int>> dp(n);
    for(int i = 0; i < n; i++){
        dp[i] = vector<int>(i + 1, 1);
    }
    
    dp[0][0] = S[0][0];

    for(int i = 1; i < n; i++){
        for(int j = 0; j <= i; j++){
            if (j == 0) {
                dp[i][j] = dp[i-1][j] * S[i][j];
            } else if (j == i) {
                dp[i][j] = dp[i-1][j-1] * S[i][j];
            } else {
                if(S[i][j] > 0){
                    dp[i][j] = max(dp[i-1][j], dp[i-1][j-1]) * S[i][j];
                } else {
                    dp[i][j] = min(dp[i-1][j], dp[i-1][j-1]) * S[i][j];
                }
            }
        }
    }
    
    cout << *max_element(dp[n-1].begin(), dp[n-1].end());

    return 0;
}
<link rel="shortcut icon" href=“<FAVICON_LINK>”/>
<link rel="shortcut icon" href=“<FAVICON_LINK>”/>
fetch('/my-api-endpoint')
  .then(response => {
    if (response.headers.get('cf-mitigated') === 'challenge') {
      // Handle challenged response
    } else {
      // Process response as usual
    }
  });
fetch('/my-api-endpoint')
  .then(response => {
    if (response.headers.get('cf-mitigated') === 'challenge') {
      // Handle challenged response
    } else {
      // Process response as usual
    }
  });
//index.html

/// this is for open sans
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet" />


//css stylesheet
 
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

$font-family-base: 'Open Sans', sans-serif;
import { useEffect, useState } from "react";
import "./App.css";

function App() {
  const [continents, setContinents] = useState([]);
  const [inputValue, setInputValue] = useState("");
  const [countries, setCountries] = useState([]);
  const [isVisible, setIsVisible] = useState(false);

  return (
    <div className="App">
      <h1>Select Continent</h1>
      <select className="custom-select" onChange={(e) => setInputValue(e.target.value)}>
        <option selected hidden>Select a Continent</option>
      </select>
    </div>
  );
}

export default App;
<script src="https://cdn.jsdelivr.net/gh/studio-freight/lenis@1.0.23/bundled/lenis.min.js"></script> 
<script>
// LENIS SMOOTH SCROLL
let lenis;
if (Webflow.env("editor") === undefined) {
  lenis = new Lenis({
    lerp: 0.1,
    wheelMultiplier: 0.7,
    gestureOrientation: "vertical",
    normalizeWheel: false,
    smoothTouch: false
  });
  function raf(time) {
    lenis.raf(time);
    requestAnimationFrame(raf);
  }
  requestAnimationFrame(raf);
}
$("[data-lenis-start]").on("click", function () {
  lenis.start();
});
$("[data-lenis-stop]").on("click", function () {
  lenis.stop();
});
$("[data-lenis-toggle]").on("click", function () {
  $(this).toggleClass("stop-scroll");
  if ($(this).hasClass("stop-scroll")) {
    lenis.stop();
  } else {
    lenis.start();
  }
});
</script>
<style>
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
</style>
from math import*
  
x = [1,2,3]
Understanding Solana Meme Coin Development

In the fast-paced world of cryptocurrencies, meme coins have become a unique trend, combining fun with digital innovation. Solana meme coins highlight this trend through their use of the Solana blockchain. Known for its high speed and low transaction costs, Solana offers an ideal platform for these meme coins. Solana meme coins blend the playful spirit of meme culture with the advanced technology of Solana, making them stand out in the crypto market. This introduction will explore what makes Solana meme coins special, their benefits, and how they are shaping the future of digital assets.

Innovative Technology
The advanced technology of the Solana blockchain, renowned for its quick transaction times and inexpensive fees, is utilized by Solana meme currencies. Because meme currencies frequently involve large volume, low-value exchanges, Solana's distinct Proof of History (PoH) agreement process in conjunction with Proof of Stake (PoS) guarantees quick and safe transactions, which makes it the perfect platform for meme currencies that seek to garner community involvement as well as commercial attention.

The Rise of Solana Meme Coins
Solana meme coins are gaining popularity because they blend internet culture with advanced blockchain tech. Thanks to Solana’s fast and affordable network, these tokens attract both crypto fans and the general public. Solana’s ability to process many transactions quickly makes it perfect for meme coins, which often see rapid trading and high price swings. This trend shows how playful, community-focused projects can thrive with strong technology, capturing the spirit of the crypto world and engaging a wide range of online communities.

Community Engagement
Community involvement is key to the success of Solana meme coins. These coins thrive on the enthusiasm and support of their online communities, which help drive their popularity and value. Active communities engage in discussions, share memes, and promote the coin across social media platforms, creating a buzz around the project. Events, giveaways, and collaborative activities further strengthen community bonds and encourage more people to get involved. By fostering a strong, engaged community, Solana meme coins can build a loyal user base and sustain interest, making community support a key factor in their growth and success.

Future Prospects for Solana Meme Coins:
The future looks bright for Solana meme coins as they continue to grow in popularity. With Solana’s fast and low-cost transactions, these meme coins are well-positioned to handle increasing activity and trading volume. As more people join the Solana ecosystem, meme coins could see greater adoption and integration into various applications. The community’s enthusiasm and creativity will likely drive new projects and innovations. Additionally, as the crypto market evolves, Solana meme coins may benefit from increased visibility and support, potentially leading to new opportunities and expanded use cases. Overall, their future appears promising with ongoing development and engagement.

Solana Updates and Upgrades
Solana consistently updates and upgrades its blockchain to boost performance and enhance security. Recent advancements include optimizations for transaction speed and scalability, ensuring the network handles growing demand efficiently. Upgrades also focus on reducing fees and enhancing developer tools, which support the growth of decentralized applications and tokens. These ongoing improvements strengthen Solana’s position as a leading platform, benefiting projects like meme coins by providing a robust and reliable infrastructure.

 Conclusion
Beleaf Technologies has demonstrated remarkable growth and innovation in Solana meme coin development. By consistently leveraging cutting-edge technology and fostering a culture of creativity and excellence, the company has established itself as a leader. Their commitment to delivering high-quality solutions and adapting to the ever-evolving technological landscape positions them well for continued success.

Visit — https://www.beleaftechnologies.com/solana-meme-coin
Contact Details:
Phone +91 8148147362
Email business@beleaftechnologies.com

MainActivity.kt

package com.example.intent

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import androidx.activity.enableEdgeToEdge

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val b1:Button = findViewById(R.id.bt1)

        b1.setOnClickListener {
            val intent = Intent(this, DetailsActivity::class.java)

            Toast.makeText(this, "Hello Details Activity", Toast.LENGTH_SHORT).show()
            startActivity(intent)
        }
    }
}

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/bt1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="click here"
        android:textSize="25dp"
        android:textColor="@color/teal_200"
        />


</LinearLayout>

DetailsActivity.kt

package com.example.intent

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

class DetailsActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_details)
    }
}

activity_deatils.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DetailsActivity">

    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Welcome to second activity"
        android:textSize="35dp"
        android:textColor="@color/purple_700"
        />

</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools = "http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context=".MainActivity"
    >

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="300dp"
        android:layout_height="300dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@+id/changeImageButton"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintStart_toEndOf="parent"
        android:src="@drawable/java"
        tools:ignore="UnknownId"
        />

    <Button
        android:id="@+id/changeImageButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Change Image"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:layout_marginBottom="25dp"
        />

    <TextView
        android:id="@+id/imageDescription"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="I am Java"
        app:layout_constraintTop_toBottomOf="@id/imageView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:layout_marginTop="8dp"
        android:textSize="18sp" />

</androidx.constraintlayout.widget.ConstraintLayout>






package com.example.imageshuffler

import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.example.imageshuffler.ui.theme.ImageShufflerTheme

class MainActivity : ComponentActivity() {
    private lateinit var imv : ImageView
    private lateinit var chngbt: Button
    private lateinit var imgdes: TextView
    val imlist = listOf(
        R.drawable.java,
        R.drawable.kotlin,
        R.drawable.python
    )
    var currentimgindx = 0
    private val imgdescription = listOf(
        "Hi I am Java",
        "Hi I am Kotlin",
        "Hi I am Python"
    )
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        imv = findViewById(R.id.imageView)
        chngbt = findViewById(R.id.changeImageButton)
        imgdes = findViewById(R.id.imageDescription)

        chngbt.setOnClickListener {

            changeImage()
        }
        imgdes.text=imgdescription[currentimgindx]
    }
    fun changeImage(){
        currentimgindx = (currentimgindx + 1 ) % imlist.size
        imv.setImageResource(imlist[currentimgindx])
        imgdes.text = imgdescription[currentimgindx]
    }
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/purple_200"
    >

    <TextView
        android:id="@+id/title"
        style="bold"
        android:layout_width="match_parent"
        android:layout_height="73dp"
        android:text="Addition of Two Numbers"
        android:textColor="#ED0E5A"
        android:textSize="30dp"
        android:textStyle="bold" />

    <EditText
        android:id="@+id/num1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Enter the First Number" />

    <EditText
        android:id="@+id/num2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Enter the Second Number" />



    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:background="@color/purple_200"
        >
    <Button
        android:id="@+id/btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#0B89ED"
        android:layout_marginLeft="80dp"
        android:layout_marginRight="40dp"
        android:text="SUM" />

    <Button
        android:id="@+id/clear"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#0B89ED"
        android:layout_marginLeft="40dp"
        android:layout_marginRight="40dp"
        android:text="Clear"/>
    </LinearLayout>

    <TextView
        android:id="@+id/result"
        style="bold"
        android:layout_width="wrap_content"
        android:layout_height="79dp"
        android:text="Result will be displayed here"
        android:textColor="#F3DE2F"
        android:textSize="29dp"
        android:textStyle="bold" />

</LinearLayout>





package com.example.sum

import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.example.sum.ui.theme.SumTheme
import java.util.jar.Pack200

class MainActivity : ComponentActivity() {
    private lateinit var t1 : TextView
    private lateinit var et1: EditText
    private lateinit var et2: EditText
    private lateinit var bt1 : Button
    private lateinit var bt2: Button
    private lateinit var t2: TextView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


        t1 = findViewById(R.id.title)
        et1 = findViewById(R.id.num1)
        et2 = findViewById(R.id.num2)
        bt1 = findViewById(R.id.btn)
        bt2 = findViewById(R.id.clear)
        t2 = findViewById(R.id.result)

        bt1.setOnClickListener{
            var n1 = et1.text.toString()
            var n2 = et2.text.toString()

            if (n1.isNotEmpty() && n2.isNotEmpty()){
                val total = n1.toInt() + n2.toInt()

                t2.text = "Sum is $total"
            }else{
                t2.text = "Please enter both the values"
            }
        }

        bt2.setOnClickListener {
            et1.text.clear()
            et2.text.clear()
            t2.text = "Result will be displayed here"
            et1.hint = "Enter the First Number"
            et2.hint = "Enter the Second Number"
        }


    }
}
activity_main
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/Bt1"
        android:layout_width="match_parent"
        android:layout_height="98dp"
        android:text="Go to Second Activity"
        android:textColor="@color/black"
        android:textSize="25dp" />


</LinearLayout>
mainActivity
package com.srikanth.explicitintent

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
        val b1:Button=findViewById(R.id.Bt1)
        b1.setOnClickListener {
            val intent=Intent(this,DetailsActivity::class.java)
            DetailsActivity::class.java
            Toast.makeText(this,"Hello-Konichiwa",Toast.LENGTH_LONG).show()
            startActivity(intent)


        }

    }
}

details.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DetailsActivity">
    <TextView
        android:id="@+id/tile"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Display message ahere"
        android:textSize="35dp"/>


</LinearLayout>
details.main

package com.srikanth.explicitintent

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class DetailsActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_details)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
}
package com.example.explicit_intent

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {

        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
        val b1:Button = findViewById(R.id.bt1)
        b1.setOnClickListener {
            val intent = Intent(this,DetailsActivity::class.java)
            Toast.makeText(this,"Hello Details Activity",Toast.LENGTH_LONG).show()
            startActivity(intent)
        }
    }
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/bt1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="go to second activity"
        android:textColor="@color/material_dynamic_primary70"
        android:textSize="25dp"
        />
</LinearLayout>
package com.example.expicit_intentdemor7

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class DetailsActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_details)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
}
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DetailsActivity">
    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Display Message Here"
        android:textColor="@color/design_default_color_on_primary"/>

</androidx.constraintlayout.widget.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/bt1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="@color/design_default_color_on_primary"
        android:textSize="25dp"
        android:text="Go to Second Layout" />


</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DetailsActivity">
    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello Guys"
        android:textSize="35dp"
        android:textColor="@android:color/holo_blue_dark"
        />

</androidx.constraintlayout.widget.ConstraintLayout>
package com.example.expicit_intentdemor7

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
        val b1: Button = findViewById(R.id.bt1)


        b1.setOnClickListener{
            val intent= Intent(this,DetailsActivity::class.java)
            Toast.makeText(this,"Hello DetailsActivity",Toast.LENGTH_LONG).show()
            startActivity(intent)
        }
    }
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/bt1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Go to Second Activity"
        android:textSize="25dp"
        android:textColor="@color/design_default_color_on_primary"/>


</LinearLay
package com.example.intentdemo

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.intetnt.R

class details_activity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_details)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
}
package com.example.explicit_intentdemo

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class DetailsActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_details)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
}
package com.example.intentdemo

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class details_activity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_details)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DetailsActivity">
    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Display Message"
        android:textSize="35dp"
        android:textColor="@color/design_default_color_on_secondary"/>

</LinearLayout>
package com.example.explicit_intentdemo

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
        val b1:Button = findViewById(R.id.bt1)
        b1.setOnClickListener {
            val intent = Intent(this,DetailsActivity::class.java)
            Toast.makeText(this,"Hello Details Activity",Toast.LENGTH_SHORT).show()
        }


    }
}
[513895.227132] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[513895.370986] usb 1-1.3: New USB device found, idVendor=2341, idProduct=0042, bcdDevice= 0.01
[513895.371000] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[513895.371011] usb 1-1.3: Manufacturer: Arduino (www.arduino.cc)
[513895.371021] usb 1-1.3: SerialNumber: 55330313635351815101
[513895.423706] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
[513895.425080] usbcore: registered new interface driver cdc_acm
[513895.425093] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
https://github.com/OctoPrint/OctoPrint-FirmwareUpdater/archive/master.zip
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: deny-all-except-trusted
  namespace: default
spec:
  podSelector:
    matchLabels:
      app: my-app
  policyTypes:
  - Ingress
  ingress:
  - from:
    - podSelector:
        matchLabels:
          app: trusted-app
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  namespace: default
  name: secret-reader
rules:
- apiGroups: [""]
  resources: ["secrets"]
  verbs: ["get", "list"]
apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration
resources:
  - resources:
    - secrets
    providers:
    - aescbc:
        keys:
          - name: key1
            secret: <base64-encoded key>
    - identity: {}
star

Thu Aug 22 2024 13:33:52 GMT+0000 (Coordinated Universal Time)

@zily

star

Thu Aug 22 2024 13:17:09 GMT+0000 (Coordinated Universal Time) define( 'ALLOW_UNFILTERED_UPLOADS', true );

@odesign

star

Thu Aug 22 2024 12:56:42 GMT+0000 (Coordinated Universal Time) https://www.python.org/

@Black_Shadow

star

Thu Aug 22 2024 11:30:23 GMT+0000 (Coordinated Universal Time) https://veriftools.net/en/australia_dl

@wafflexyzz

star

Thu Aug 22 2024 04:04:48 GMT+0000 (Coordinated Universal Time) https://www.appsheet.com/template/AppDef?appName

@Wittinunt

star

Thu Aug 22 2024 03:55:58 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/python-program-to-add-two-numbers/

@chunder

star

Thu Aug 22 2024 03:55:11 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/python-program-to-add-two-numbers/

@chunder

star

Thu Aug 22 2024 02:36:45 GMT+0000 (Coordinated Universal Time)

@wheedo

star

Thu Aug 22 2024 00:09:28 GMT+0000 (Coordinated Universal Time)

@wasim_mm1

star

Wed Aug 21 2024 23:34:09 GMT+0000 (Coordinated Universal Time) https://www.programiz.com/cpp-programming/online-compiler/

@LizzyTheCatto #c++

star

Wed Aug 21 2024 23:33:51 GMT+0000 (Coordinated Universal Time) https://www.programiz.com/cpp-programming/online-compiler/

@LizzyTheCatto #c++

star

Wed Aug 21 2024 23:16:28 GMT+0000 (Coordinated Universal Time) https://developers.cloudflare.com/waf/reference/cloudflare-challenges/#browser-support

@LjjDev

star

Wed Aug 21 2024 23:15:54 GMT+0000 (Coordinated Universal Time) https://developers.cloudflare.com/waf/reference/cloudflare-challenges/#browser-support

@LjjDev

star

Wed Aug 21 2024 23:15:44 GMT+0000 (Coordinated Universal Time) https://developers.cloudflare.com/waf/reference/cloudflare-challenges/#browser-support

@LjjDev

star

Wed Aug 21 2024 23:15:41 GMT+0000 (Coordinated Universal Time) https://developers.cloudflare.com/waf/reference/cloudflare-challenges/#browser-support

@LjjDev

star

Wed Aug 21 2024 22:37:30 GMT+0000 (Coordinated Universal Time)

@davidmchale #preconnect #fonts #google

star

Wed Aug 21 2024 21:08:13 GMT+0000 (Coordinated Universal Time)

@negner

star

Wed Aug 21 2024 16:12:27 GMT+0000 (Coordinated Universal Time) https://community.octoprint.org/t/octoprint-cant-connect-to-my-printer/223#no_connection

@amccall23

star

Wed Aug 21 2024 15:32:36 GMT+0000 (Coordinated Universal Time)

@zily

star

Wed Aug 21 2024 15:32:08 GMT+0000 (Coordinated Universal Time)

@zily

star

Wed Aug 21 2024 14:56:59 GMT+0000 (Coordinated Universal Time) https://skbased.autonomousvoid.com/me?loginSuccess

@gunnu_xd

star

Wed Aug 21 2024 14:38:02 GMT+0000 (Coordinated Universal Time) https://skbased.autonomousvoid.com/me?loginSuccess

@gunnu_xd

star

Wed Aug 21 2024 14:37:43 GMT+0000 (Coordinated Universal Time) https://skbased.autonomousvoid.com/me?loginSuccess

@gunnu_xd

star

Wed Aug 21 2024 14:02:33 GMT+0000 (Coordinated Universal Time)

@renatolinn #python

star

Wed Aug 21 2024 11:27:11 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/solana-meme-coin

@sivaprasadm203 #blockchain #cryptocurrency #defi #web3

star

Wed Aug 21 2024 10:04:37 GMT+0000 (Coordinated Universal Time)

@chatgpt #kotlin

star

Wed Aug 21 2024 10:02:57 GMT+0000 (Coordinated Universal Time)

@chatgpt #kotlin

star

Wed Aug 21 2024 10:02:24 GMT+0000 (Coordinated Universal Time)

@chatgpt #kotlin

star

Wed Aug 21 2024 09:40:13 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 09:17:45 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 09:08:43 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 09:02:44 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 09:02:05 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 09:00:59 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 09:00:36 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:59:43 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:56:38 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:56:30 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:49:22 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:47:01 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:45:05 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 08:42:03 GMT+0000 (Coordinated Universal Time)

@signup

star

Wed Aug 21 2024 07:06:12 GMT+0000 (Coordinated Universal Time) https://community.octoprint.org/t/octoprint-cant-connect-to-my-printer/223#no_port

@amccall23

star

Wed Aug 21 2024 05:37:11 GMT+0000 (Coordinated Universal Time) https://plugins.octoprint.org/plugins/firmwareupdater/

@amccall23

star

Wed Aug 21 2024 03:06:55 GMT+0000 (Coordinated Universal Time)

@Sassy

star

Wed Aug 21 2024 03:03:08 GMT+0000 (Coordinated Universal Time)

@Sassy

star

Wed Aug 21 2024 03:01:43 GMT+0000 (Coordinated Universal Time)

@Sassy

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension