Snippets Collections
<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: {}
apiVersion: v1
kind: Secret
metadata:
  name: my-tls-secret
type: kubernetes.io/tls
data:
  tls.crt: <base64 encoded cert>
  tls.key: <base64 encoded key>
kubectl create secret tls my-tls-secret --cert=path/to/cert/file --key=path/to/key/file
kubectl create secret docker-registry my-registry-secret \
  --docker-server=https://index.docker.io/v1/ \
  --docker-username=my-username \
  --docker-password=my-password \
  --docker-email=my-email@example.com
kubectl create secret generic my-secret --from-literal=username=admin --from-literal=password=supersecret
apiVersion: v1
kind: Secret
metadata:
  name: my-secret
type: Opaque
data:
  username: YWRtaW4=  #base64 encoded
  password: c3VwZXJzZWNyZXQ=
git clone https://github.com/jpcurti/ender3-v3-se-klipper-with-display
cd ender3-v3-se-klipper-with-display
make menuconfig
set $PSDefaultParameterValues['out-file:width'] = 2000 before using Out-File
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>European Phone Number Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>European Phone Number Form</h1>
<form id="phoneForm">
  <label for="countryCode">Country Code:</label>
  <select id="countryCode" name="countryCode">
    <option value="+44">UK (+44)</option>
    <option value="+33">France (+33)</option>
    <option value="+49">Germany (+49)</option>
    <!-- Add more European country codes here -->
  </select>
  <label for="phoneNumber">Phone Number:</label>
  <input type="text" id="phoneNumber" name="phoneNumber" placeholder="Enter your phone number">
  <button type="submit">Submit</button>
</form>
<script src="script.js"></script>
</body>
</html>
let name = "Ilya";

alert( `hello ${1}` ); // ?

alert( `hello ${"name"}` ); // ?

alert( `hello ${name}` ); // ?
{
    "clientVersion": "string",
    "event": "CashLoanDisplayAllTermsClick",
    "messageId": "3396d452-38c6-4a86-a621-15939e5c3f11",
    "properties": {},
    "context": {
        "channel": "test",
        "channelVersion": "1",
        "platform": "Desktop",
        "clientVersion": "1.0.0223",
        "language": "tr",
        "page": {
            "path": "/test"
        },
        "source": "storefront",
        "requestId": "2ff36001-d57c-4aea-abe5-3a327509e2dd",
        "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
    },
    "sentAt": "2024-05-17T00:22:44Z",
    "sessionId": "62b245d7-190f-4045-9f6a-514c4557c9b1",
    "userId": "1ff62a22-ff10-46b6-b254-72e0cd7dfef7"
}
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

star

Wed Aug 21 2024 02:58:49 GMT+0000 (Coordinated Universal Time)

@Sassy

star

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

@Sassy

star

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

@Sassy

star

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

@Sassy

star

Wed Aug 21 2024 02:49:28 GMT+0000 (Coordinated Universal Time)

@Sassy

star

Wed Aug 21 2024 02:27:35 GMT+0000 (Coordinated Universal Time) https://github.com/jpcurti/ender3-v3-se-klipper-with-display?tab

@amccall23

star

Wed Aug 21 2024 01:26:03 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-file?view

@baamn

star

Tue Aug 20 2024 17:53:10 GMT+0000 (Coordinated Universal Time)

@Faramzin

star

Tue Aug 20 2024 12:10:18 GMT+0000 (Coordinated Universal Time)

@portal_wombat #python

star

Tue Aug 20 2024 12:08:46 GMT+0000 (Coordinated Universal Time) https://learn.javascript.ru/types

@kseniya #javascript

star

Tue Aug 20 2024 11:12:58 GMT+0000 (Coordinated Universal Time)

@hkutluay

Save snippets that work with our extensions

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