Snippets Collections
cat ~/.ssh/id_rsa.pub

Or:

cat /Users/USERNAME/.ssh/id_rsa.pub
sudo curl -Lo /usr/local/bin/copilot https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux \
   && sudo chmod +x /usr/local/bin/copilot \
   && copilot --help
$ aws dynamodb create-table \
    --table-name MusicCollection \
    --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S \
    --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \
    --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1
	<div id="room-details-<?php echo esc_attr($room->id); ?>" class="room__details room__details--listing">

				<?php
				/**
				 * hotelier_room_list_item_meta hook
				 *
				 * @hooked hotelier_template_loop_room_facilities - 10
				 * @hooked hotelier_template_loop_room_meta - 15
				 * @hooked hotelier_template_loop_room_conditions - 20
				 */
				do_action('hotelier_room_list_item_meta');
				?>

			</div>

	<?php
			/**
			 * hotelier_room_list_item_description hook
			 *
			 * @hooked hotelier_template_loop_room_short_description - 10
			 */
			//do_action('hotelier_room_list_item_description');
			?>

<table>
  <tr>
    <th colspan="2">Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>43</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>57</td>
  </tr>
</table>
Copy
template < class T, class Alloc = allocator<T> > class vector; // generic template
{
  "virtual_id":-1,
  "contentDescription":"",
  "rectangle":{
    "left_top_x":96,
    "left_top_y":0,
    "right_bottom_x":1824,
    "right_bottom_y":1026
  },
  "class_name":"android.widget.LinearLayout",
  "children":[

    {
      "virtual_id":0,
      "contentDescription":"Category Zero",
      "rectangle":{
        "left_top_x":96,
        "left_top_y":74,
        "right_bottom_x":349,
        "right_bottom_y":112
      },
      "class_name": "android.widget.TextView",
      "children":[
        {
          "contentDescription":"Movie I",
          "rectangle":{
            "left_top_x":96,
            "left_top_y":134,
            "right_bottom_x":404,
            "right_bottom_y":310
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":1
        },
        {
          "contentDescription":"Movie II",
          "rectangle":{
            "left_top_x":424,
            "left_top_y":134,
            "right_bottom_x":732,
            "right_bottom_y":310
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":2
        },
        {
          "contentDescription":"Movie III",
          "rectangle":{
            "left_top_x":752,
            "left_top_y":134,
            "right_bottom_x":1060,
            "right_bottom_y":310
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":3
        },
        {
          "contentDescription":"Movie IV",
          "rectangle":{
            "left_top_x":1080,
            "left_top_y":134,
            "right_bottom_x":1388,
            "right_bottom_y":310
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":4
        },
        {
          "contentDescription":"Movie V",
          "rectangle":{
            "left_top_x":1408,
            "left_top_y":134,
            "right_bottom_x":1716,
            "right_bottom_y":310
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":5
        },
        {
          "contentDescription":"Movie VI",
          "rectangle":{
            "left_top_x":1736,
            "left_top_y":134,
            "right_bottom_x":1824,
            "right_bottom_y":310
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":6
        }
      ]
    },
    {
      "virtual_id":7,
      "contentDescription":"Category One",
      "rectangle":{
        "left_top_x":96,
        "left_top_y":360,
        "right_bottom_x":338,
        "right_bottom_y":398
      },
      "class_name": "android.widget.TextView",
      "children":[
        {
          "contentDescription":"Movie I",
          "rectangle":{
            "left_top_x":96,
            "left_top_y":420,
            "right_bottom_x":404,
            "right_bottom_y":596
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":8
        },
        {
          "contentDescription":"Movie II",
          "rectangle":{
            "left_top_x":424,
            "left_top_y":420,
            "right_bottom_x":732,
            "right_bottom_y":596
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":9
        },
        {
          "contentDescription":"Movie III",
          "rectangle":{
            "left_top_x":752,
            "left_top_y":420,
            "right_bottom_x":1060,
            "right_bottom_y":596
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":10
        },
        {
          "contentDescription":"Movie IV",
          "rectangle":{
            "left_top_x":1080,
            "left_top_y":420,
            "right_bottom_x":1388,
            "right_bottom_y":596
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":11
        },
        {
          "contentDescription":"Movie V",
          "rectangle":{
            "left_top_x":1408,
            "left_top_y":420,
            "right_bottom_x":1716,
            "right_bottom_y":596
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":12
        },
        {
          "contentDescription":"Movie VI",
          "rectangle":{
            "left_top_x":1736,
            "left_top_y":420,
            "right_bottom_x":1824,
            "right_bottom_y":596
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":13
        }
      ]
    },
    {
      "virtual_id":14,
      "contentDescription":"Category Two",
      "rectangle":{
        "left_top_x":96,
        "left_top_y":646,
        "right_bottom_x":343,
        "right_bottom_y":684
      },
      "class_name": "android.widget.TextView",
      "children":[
        {
          "contentDescription":"Movie I",
          "rectangle":{
            "left_top_x":96,
            "left_top_y":706,
            "right_bottom_x":404,
            "right_bottom_y":882
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":15
        },
        {
          "contentDescription":"Movie II",
          "rectangle":{
            "left_top_x":424,
            "left_top_y":706,
            "right_bottom_x":732,
            "right_bottom_y":882
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":16
        },
        {
          "contentDescription":"Movie III",
          "rectangle":{
            "left_top_x":752,
            "left_top_y":706,
            "right_bottom_x":1060,
            "right_bottom_y":882
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":17
        },
        {
          "contentDescription":"Movie IV",
          "rectangle":{
            "left_top_x":1080,
            "left_top_y":706,
            "right_bottom_x":1388,
            "right_bottom_y":882
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":18
        },
        {
          "contentDescription":"Movie V",
          "rectangle":{
            "left_top_x":1408,
            "left_top_y":706,
            "right_bottom_x":1716,
            "right_bottom_y":882
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":19
        },
        {
          "contentDescription":"Movie VI",
          "rectangle":{
            "left_top_x":1736,
            "left_top_y":706,
            "right_bottom_x":1824,
            "right_bottom_y":882
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":20
        }
      ]
    },
    {
      "virtual_id":21,
      "contentDescription":"Category Three",
      "rectangle":{
        "left_top_x":96,
        "left_top_y":931,
        "right_bottom_x":369,
        "right_bottom_y":970
      },
      "class_name": "android.widget.TextView",
      "children":[
        {
          "contentDescription":"Movie I",
          "rectangle":{
            "left_top_x":96,
            "left_top_y":992,
            "right_bottom_x":404,
            "right_bottom_y":1026
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":22
        },
        {
          "contentDescription":"Movie II",
          "rectangle":{
            "left_top_x":424,
            "left_top_y":992,
            "right_bottom_x":732,
            "right_bottom_y":1026
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":23
        },
        {
          "contentDescription":"Movie III",
          "rectangle":{
            "left_top_x":752,
            "left_top_y":992,
            "right_bottom_x":1060,
            "right_bottom_y":1026
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":24
        },
        {
          "contentDescription":"Movie IV",
          "rectangle":{
            "left_top_x":1080,
            "left_top_y":992,
            "right_bottom_x":1388,
            "right_bottom_y":1026
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":25
        },
        {
          "contentDescription":"Movie V",
          "rectangle":{
            "left_top_x":1408,
            "left_top_y":992,
            "right_bottom_x":1716,
            "right_bottom_y":1026
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":26
        },
        {
          "contentDescription":"Movie VI",
          "rectangle":{
            "left_top_x":1736,
            "left_top_y":992,
            "right_bottom_x":1824,
            "right_bottom_y":1026
          },
          "class_name": "android.widget.ImageView",
          "children":[],
          "virtual_id":27
        }
      ]
    }
  ]
}
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
let inventory = [item1,item2,item3];
let equipment=["sword","leather armor","great helm"];
let usable=["mana potion","health potion","trap"];
let etc=["bones","broken armor","relic"];

const inventory = [equipment,usable,etc];
console.log(inventory);
<h2 style="text-align:center">Modal Image Gallery</h2>
<div class="row">
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(1)" class="hover-shadow cursor">
  </div>
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(2)" class="hover-shadow cursor">
  </div>
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(3)" class="hover-shadow cursor">
  </div>
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(4)" class="hover-shadow cursor">
  </div>
</div>
<div id="myModal" class="modal">
  <span class="close cursor" onclick="closeModal()">&times;</span>
  <div class="modal-content">
    <div class="mySlides">
      <div class="numbertext">1 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <div class="mySlides">
      <div class="numbertext">2 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <div class="mySlides">
      <div class="numbertext">3 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <div class="mySlides">
      <div class="numbertext">4 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
    <a class="next" onclick="plusSlides(1)">&#10095;</a>
    <div class="caption-container">
      <p id="caption"></p>
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(1)" alt="Sample image 1">
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(2)" alt="Sample image 2">
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(3)" alt="Sample image 3">
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(4)" alt="Sample image 4">
    </div>
  </div>
</div>
<style>
body {
  font-family: Verdana, sans-serif;
  margin: 0;
}
* {
  box-sizing: border-box;
}
.row > .column {
  padding: 8px 8px;
}
.row:after {
  content: "";
  display: table;
  clear: both;
}
.column {
  float: left;
  width: 25%;
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}
/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}
/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}
.mySlides {
  display: none;
}
.cursor {
  cursor: pointer
}
/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #333;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color:#fff;
}
/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 16px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}
.demo {
  opacity: 0.6;
}
.active,
.demo:hover {
  opacity: 1;
}
img.hover-shadow {
  transition: 0.3s
}
.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}
</style>
<script>
function openModal() {
  document.getElementById('myModal').style.display = "block";
}
function closeModal() {
  document.getElementById('myModal').style.display = "none";
}
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
  showSlides(slideIndex += n);
}
function currentSlide(n) {
  showSlides(slideIndex = n);
}
function showSlides(n) {
  var i;
  var slides = document.getElementsByClassName("mySlides");
  var dots = document.getElementsByClassName("demo");
  var captionText = document.getElementById("caption");
  if (n > slides.length) {slideIndex = 1}
  if (n < 1) {slideIndex = slides.length}
  for (i = 0; i < slides.length; i++) {
      slides[i].style.display = "none";
  }
  for (i = 0; i < dots.length; i++) {
      dots[i].className = dots[i].className.replace(" active", "");
  }
  slides[slideIndex-1].style.display = "block";
  dots[slideIndex-1].className += " active";
  captionText.innerHTML = dots[slideIndex-1].alt;
}
</script>
 Toast.makeText(getApplicationContext(),"Bilgilendirme mesajı",Toast.LENGTH_LONG).show();
2
3
Toast toast = Toast.makeText(getApplicationContext(), "Bilgilendirme mesajı", Toast.LENGTH_LONG);
toast.setGravity(Gravity.TOP|Gravity.CENTER_HORIZONTAL, 0, 0);
toast.show();
<!DOCTYPE html>
<html>
<head>
<title>This is document title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>Document content goes here.....</p>
</body>
</html>
Document declaration tag
<html>
<head>
Document header related tags
</head>
<body>
Document body related tags
</body>
</html>
fun NoteCard() {
    Box(
        contentAlignment = Alignment.Center,
        modifier = Modifier
            .size(300.dp)
    ) {
        // Second Box checking comments
        Box(
            modifier = Modifier
                .size(200.dp)
                .clip(CircleShape)
                .background(Color(0xFF2D74AC))
                .border(width = 5.dp, color = Color(0xFFC907EB))
        )
    }
}
package com.example.andy.myapplication;
import android.annotation.TargetApi;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import java.text.SimpleDateFormat;
import java.util.Date;
public class MainActivity extends AppCompatActivity {
   @TargetApi(Build.VERSION_CODES.O)
   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      TextView textView=findViewById(R.id.date);
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss z");
      String currentDateandTime = sdf.format(new Date());
      textView.setText(currentDateandTime);
   }
}
mTextView.setTextColor(Color.parseColor("#bdbdbd"));
git lfs untrack '<file-type>'
git rm --cached '<file-type>'
git add '<file-type>'
git commit -m "restore '<file-type>' to git from lfs"
if (vendors.filter(e => e.Name === 'Magenic').length > 0) {
  /* vendors contains the element we're looking for */
}
# Ignore everything in this directory
*
# Except this file
!.gitignore
# ************************************************** HEADING PART ****************************************************************

from msilib.schema import ListBox
from tkinter import *            #tkinter is the main library or module for craeting gui
from tkinter.ttk import *

root=Tk()                        #This is the main window of name root1

root.title("Question & Answer")  #This is the name of program displayed on title bar

root.geometry("800x650+400+100") # this sets the size of window

# ********************************************************************************************************************************

#creating the frames for different pages 

s = Style()
s.configure('My.TFrame', background='white')

home_page=Frame(root,style='My.TFrame')
search_page=Frame(root,style='My.TFrame')
append_page=Frame(root,style='My.TFrame')


Welcome_text=Label(home_page,text='Home Page',font=('Georgia',20),foreground='#00ff9d',background='white').pack() # this is text to display

def open_home_page():
    home_page.pack(fill='both', expand=1)
    search_page.pack_forget()
    append_page.pack_forget()

def open_search_page():
    but5=Button(search_page,text='Home Page',command=open_home_page).place(x=400,y=500)
    but6=Button(search_page,text='Add Page',command=open_append_page).place(x=400,y=550)
    search_page.pack(fill='both', expand=1)
    home_page.pack_forget()
    append_page.pack_forget()


def open_append_page():
    but5=Button(append_page,text='Home Page',command=open_home_page).place(x=400,y=500)
    but6=Button(append_page,text='Search Page',command=open_search_page).place(x=400,y=550)
    append_page.pack(fill='both', expand=1)
    home_page.pack_forget()
    search_page.pack_forget()


# ********************************************************** Menu (root) ******************************************************************

root_menu=Menu(root) # creating a menubar referencing as root_menu 


# $$$$$$$$$$$    adding the first menu called "File"    $$$$$$$$$$$$$$$$

file_menu=Menu(root_menu,tearoff=0)                # creating a menu named file_menu in the main menu called root_menu

root_menu.add_cascade(label='File',menu=file_menu)
file_menu.add_command(label="Open",command=None)
file_menu.add_command(label="Add New Subject",command=None)
file_menu.add_command(label="Delte a Subject",command=None)
file_menu.add_separator()
file_menu.add_command(label="Exit",command=root.destroy)


# $$$$$$$$$$$$   adding the second menu called "Edit"   $$$$$$$$$$$$$$$$$

edit_menu=Menu(root_menu,tearoff=0)

root_menu.add_cascade(label='Edit',menu=edit_menu)
edit_menu.add_command(label='Copy',command=None)
edit_menu.add_command(label='Cut',command=None)
edit_menu.add_command(label='Paste',command=None)


# $$$$$$$$$$$$   adding the third menu called "Options"   $$$$$$$$$$$$$$$$$

option_menu=Menu(root_menu,tearoff=0)

root_menu.add_cascade(label='Options',menu=option_menu)
option_menu.add_command(label='Font',command=None)
option_menu.add_command(label='Background Color',command=None)
option_menu.add_separator()
option_menu.add_command(label='extra',command=None)
option_menu.add_command(label='Full_Screen',command=None)
option_menu.add_command(label='Exit Full_Screen',command=None)



# $$$$$$$$$$$$$$$   adding the forth menu called "Help"   $$$$$$$$$$$$$$$$$

help_menu=Menu(root_menu,tearoff=0)

root_menu.add_cascade(label='Help',menu=help_menu)

help_menu.add_command(label='Our Website',command=None)
help_menu.add_command(label='User Manual',command=None)
help_menu.add_separator()
help_menu.add_command(label='Update',command=None)
help_menu.add_command(label='About',command=None)

#******************************************************End of Menu****************************************************************


# &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Buttons For Choosing (home_page) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


# choosing the class first ---------------------------------------------------------------------------------------------------

text_1=Label(home_page,text='Choose the class : ',foreground='#ff6200',background="white",font=(16)).place(x=50,y=50)

button_class_1=Button(home_page,text='1',width='20',style=(),command=None).place(x=56,y=80)
button_class_2=Button(home_page,text='2',width='20',command=None).place(x=200,y=80)
button_class_3=Button(home_page,text='3',width='20',command=None).place(x=344,y=80)
button_class_4=Button(home_page,text='4',width='20',command=None).place(x=488,y=80)
button_class_5=Button(home_page,text='5',width='20',command=None).place(x=632,y=80)
button_class_6=Button(home_page,text='6',width='20',command=None).place(x=56,y=115)
button_class_7=Button(home_page,text='7',width='20',command=None).place(x=200,y=115)
button_class_8=Button(home_page,text='8',width='20',command=None).place(x=344,y=115)
button_class_9=Button(home_page,text='9',width='20',command=None).place(x=488,y=115)
button_class_10=Button(home_page,text='10',width='20',command=None).place(x=632,y=115)


# choosing the subject ---------------------------------------------------------------------------------------------------------

text_2=Label(home_page,text='Choose the subject : ',foreground='#ff6200',background="white",font=(16)).place(x=50,y=170)

button_suject_science=Button(home_page,text='Science',width='20',style=(),command=None).place(x=56,y=190)
button_subject_math=Button(home_page,text='Math',width='20',command=None).place(x=200,y=190)
button_subject_social=Button(home_page,text='Social',width='20',command=None).place(x=344,y=190)
button_subject_computer=Button(home_page,text='Computer',width='20',command=None).place(x=488,y=190)
button_subject_english=Button(home_page,text='English',width='20',command=None).place(x=632,y=190)
button_subject_EPH=Button(home_page,text='E.P.H',width='20',command=None).place(x=56,y=225)
button_subject_health=Button(home_page,text='Health',width='20',command=None).place(x=200,y=225)
button_subject_OBTE=Button(home_page,text='O.B.T.E',width='20',command=None).place(x=344,y=225)
button_subject_grammar=Button(home_page,text='Grammar',width='20',command=None).place(x=488,y=225)
button_subject_extra=Button(home_page,text='Extra',width='20',command=None).place(x=632,y=225)


# &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Search Page !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

search_box=Entry(search_page,width=63,font=(20))
search_box.place(x=80,y=10)
# pg=Style()
# pg.configure('but1',backgrond='green')
search_button=Button(search_page,text='Search',command=None).place(x=660,y=10)

# list box
list_frame=Frame(search_page,style='My.TFrame')
list_frame.place(x=80,y=50,width=620,height=350)
list_box=Listbox(list_frame,font=(20))
list_box.pack(fill='both',expand=True)

list_1=["One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten"]

for item in list_1:
    item1=str(item)
    list_box.insert(END,item1)


# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




# ======================================================== Append Page ===========================================================


question_box=Entry(append_page,width=75,font=(20))
question_box.place(x=55,y=50)
question_box.insert(0,'Question : ')

answer_box=Text(append_page,width=75,height=20,font=(16))
answer_box.place(x=55,y=100)
answer_box.insert(1.0,'Answer : ')




# Main Buttoms (home_page)

Search_button=Button(home_page,text='Search',command=open_search_page).place(x=100,y=500)
Add_new_button=Button(home_page,text='Add new questions',command=open_append_page).place(x=600,y=500)


home_page.pack(fill='both', expand=1)

# hello=Label(search_page,text="hello world").pack()

root.config(menu=root_menu)
root.mainloop()                  #this tells the program to keep running so that it can dispaly every chnages hapening in the window of the program
# ************************************************** HEADING PART ****************************************************************

from msilib.schema import ListBox
from tkinter import *            #tkinter is the main library or module for craeting gui
from tkinter.ttk import *

root=Tk()                        #This is the main window of name root1

root.title("Question & Answer")  #This is the name of program displayed on title bar

root.geometry("800x650+400+100") # this sets the size of window

# ********************************************************************************************************************************

#creating the frames for different pages 

s = Style()
s.configure('My.TFrame', background='white')

home_page=Frame(root,style='My.TFrame')
search_page=Frame(root,style='My.TFrame')
append_page=Frame(root,style='My.TFrame')


Welcome_text=Label(home_page,text='Home Page',font=('Georgia',20),foreground='#00ff9d',background='white').pack() # this is text to display

def open_home_page():
    home_page.pack(fill='both', expand=1)
    search_page.pack_forget()
    append_page.pack_forget()

def open_search_page():
    but5=Button(search_page,text='Home Page',command=open_home_page).place(x=400,y=500)
    but6=Button(search_page,text='Add Page',command=open_append_page).place(x=400,y=550)
    search_page.pack(fill='both', expand=1)
    home_page.pack_forget()
    append_page.pack_forget()


def open_append_page():
    but5=Button(append_page,text='Home Page',command=open_home_page).place(x=400,y=500)
    but6=Button(append_page,text='Search Page',command=open_search_page).place(x=400,y=550)
    append_page.pack(fill='both', expand=1)
    home_page.pack_forget()
    search_page.pack_forget()


# ********************************************************** Menu (root) ******************************************************************

root_menu=Menu(root) # creating a menubar referencing as root_menu 


# $$$$$$$$$$$    adding the first menu called "File"    $$$$$$$$$$$$$$$$

file_menu=Menu(root_menu,tearoff=0)                # creating a menu named file_menu in the main menu called root_menu

root_menu.add_cascade(label='File',menu=file_menu)
file_menu.add_command(label="Open",command=None)
file_menu.add_command(label="Add New Subject",command=None)
file_menu.add_command(label="Delte a Subject",command=None)
file_menu.add_separator()
file_menu.add_command(label="Exit",command=root.destroy)


# $$$$$$$$$$$$   adding the second menu called "Edit"   $$$$$$$$$$$$$$$$$

edit_menu=Menu(root_menu,tearoff=0)

root_menu.add_cascade(label='Edit',menu=edit_menu)
edit_menu.add_command(label='Copy',command=None)
edit_menu.add_command(label='Cut',command=None)
edit_menu.add_command(label='Paste',command=None)


# $$$$$$$$$$$$   adding the third menu called "Options"   $$$$$$$$$$$$$$$$$

option_menu=Menu(root_menu,tearoff=0)

root_menu.add_cascade(label='Options',menu=option_menu)
option_menu.add_command(label='Font',command=None)
option_menu.add_command(label='Background Color',command=None)
option_menu.add_separator()
option_menu.add_command(label='extra',command=None)
option_menu.add_command(label='Full_Screen',command=None)
option_menu.add_command(label='Exit Full_Screen',command=None)



# $$$$$$$$$$$$$$$   adding the forth menu called "Help"   $$$$$$$$$$$$$$$$$

help_menu=Menu(root_menu,tearoff=0)

root_menu.add_cascade(label='Help',menu=help_menu)

help_menu.add_command(label='Our Website',command=None)
help_menu.add_command(label='User Manual',command=None)
help_menu.add_separator()
help_menu.add_command(label='Update',command=None)
help_menu.add_command(label='About',command=None)

#******************************************************End of Menu****************************************************************


# &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Buttons For Choosing (home_page) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


# choosing the class first ---------------------------------------------------------------------------------------------------

text_1=Label(home_page,text='Choose the class : ',foreground='#ff6200',background="white",font=(16)).place(x=50,y=50)

button_class_1=Button(home_page,text='1',width='20',style=(),command=None).place(x=56,y=80)
button_class_2=Button(home_page,text='2',width='20',command=None).place(x=200,y=80)
button_class_3=Button(home_page,text='3',width='20',command=None).place(x=344,y=80)
button_class_4=Button(home_page,text='4',width='20',command=None).place(x=488,y=80)
button_class_5=Button(home_page,text='5',width='20',command=None).place(x=632,y=80)
button_class_6=Button(home_page,text='6',width='20',command=None).place(x=56,y=115)
button_class_7=Button(home_page,text='7',width='20',command=None).place(x=200,y=115)
button_class_8=Button(home_page,text='8',width='20',command=None).place(x=344,y=115)
button_class_9=Button(home_page,text='9',width='20',command=None).place(x=488,y=115)
button_class_10=Button(home_page,text='10',width='20',command=None).place(x=632,y=115)


# choosing the subject ---------------------------------------------------------------------------------------------------------

text_2=Label(home_page,text='Choose the subject : ',foreground='#ff6200',background="white",font=(16)).place(x=50,y=170)

button_suject_science=Button(home_page,text='Science',width='20',style=(),command=None).place(x=56,y=190)
button_subject_math=Button(home_page,text='Math',width='20',command=None).place(x=200,y=190)
button_subject_social=Button(home_page,text='Social',width='20',command=None).place(x=344,y=190)
button_subject_computer=Button(home_page,text='Computer',width='20',command=None).place(x=488,y=190)
button_subject_english=Button(home_page,text='English',width='20',command=None).place(x=632,y=190)
button_subject_EPH=Button(home_page,text='E.P.H',width='20',command=None).place(x=56,y=225)
button_subject_health=Button(home_page,text='Health',width='20',command=None).place(x=200,y=225)
button_subject_OBTE=Button(home_page,text='O.B.T.E',width='20',command=None).place(x=344,y=225)
button_subject_grammar=Button(home_page,text='Grammar',width='20',command=None).place(x=488,y=225)
button_subject_extra=Button(home_page,text='Extra',width='20',command=None).place(x=632,y=225)


# &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Search Page !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

search_box=Entry(search_page,width=63,font=(20))
search_box.place(x=80,y=10)
# pg=Style()
# pg.configure('but1',backgrond='green')
search_button=Button(search_page,text='Search',command=None).place(x=660,y=10)

# list box
list_frame=Frame(search_page,style='My.TFrame')
list_frame.place(x=80,y=50,width=620,height=350)
list_box=Listbox(list_frame,font=(20))
list_box.pack(fill='both',expand=True)

list_1=["One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten"]

for item in list_1:
    item1=str(item)
    list_box.insert(END,item1)


# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




# ======================================================== Append Page ===========================================================


question_box=Entry(append_page,width=75,font=(20))
question_box.place(x=55,y=50)
question_box.insert(0,'Question : ')

answer_box=Text(append_page,width=75,height=20,font=(16))
answer_box.place(x=55,y=100)
answer_box.insert(1.0,'Answer : ')




# Main Buttoms (home_page)

Search_button=Button(home_page,text='Search',command=open_search_page).place(x=100,y=500)
Add_new_button=Button(home_page,text='Add new questions',command=open_append_page).place(x=600,y=500)


home_page.pack(fill='both', expand=1)

# hello=Label(search_page,text="hello world").pack()

root.config(menu=root_menu)
root.mainloop()                  #this tells the program to keep running so that it can dispaly every chnages hapening in the window of the program
// This is a pure dynamic programing approach which takes O(n^2) time
int LIS(vector<int> &ar, int n)
{

    int dp[n]; // creating dp array
    int ans = dp[0] = 1;

    for (int i = 1; i < n; i++)
    {
        int maxi = 0;

        // traversing for all previous elements
        for (int j = 0; j < i; j++)
        {
            if (ar[i] > ar[j])
            {
                maxi = max(maxi, dp[j]);
            }

            dp[i] = 1 + maxi;

            // here answer is the largest value from dp array
            ans = max(ans, dp[i]);
        }
    }

    return ans;
}



// This is a  (dynamic programing + binary search) approach which takes O(nlogn) time
/*
Steps:-

-->main LIS function
 1.create a ans array and push first element of given array in it.
 2.now,from second element of given array traverese till end and to the following
         if->  current element is bigger than the element at back of ans array
                     push it in the ans array

         else ->
             find the index where the curr element can fit in ans array using binary search pass the ans array,size of ans array and curr element as a parameters to binary search function.

 3.size of ans array is the length of LIS


-->binary search function
 1.just do the general binary search ,but if the target element is not found instead of returning -1 return the low.

note:- here,low indecates the position where the target should be placed in ans array.

*/

int give_index_using_binary_search(vector<int> ar, int n, int tar)
{
    int low = 0, high = n - 1;

    while (low <= high)
    {
        int mid = low + (high - low) / 2;
        if (ar[mid] == tar)
            return mid;
        else if (ar[mid] > tar)
            high = mid - 1;
        else
            low = mid + 1;
    }
    return low;
}

int LIS(vector<int> &ar, int n)
{

    vector<int> ans;
    ans.push_back(ar[0]);

    for (int i = 1; i < n; i++)
    {
        if (ans.back() < ar[i])
            ans.push_back(ar[i]);
        else
        {
            int ind = give_index_using_binary_search(ans, ans.size(), ar[i]);
            ans[ind] = ar[i];
        }
    }

    return ans.size();
}
function myFunction() {
  var x = document.getElementById("myDIV");
  if (x.style.display === "none") {
    x.style.display = "block";
  } else {
    x.style.display = "none";
  }
}
star

Sat Jan 22 2022 17:04:19 GMT+0000 (Coordinated Universal Time) https://linangdata.com/html-pretty/

@jpalbright31

star

Sat Jan 22 2022 17:48:23 GMT+0000 (Coordinated Universal Time) https://www.techrepublic.com/article/how-to-view-your-ssh-keys-in-linux-macos-and-windows/

@MattMoniz

star

Sat Jan 22 2022 23:13:38 GMT+0000 (Coordinated Universal Time) https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

@dzahorsky

star

Sun Jan 23 2022 00:01:16 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/user/settings

@ericblancosf

star

Sun Jan 23 2022 00:22:56 GMT+0000 (Coordinated Universal Time) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Copilot.html

@ericblancosf

star

Sun Jan 23 2022 00:42:13 GMT+0000 (Coordinated Universal Time) https://docs.aws.amazon.com/cli/latest/userguide/cli-services-dynamodb.html

@ericblancosf

star

Sun Jan 23 2022 04:51:07 GMT+0000 (Coordinated Universal Time)

@labelexe

star

Sun Jan 23 2022 07:17:37 GMT+0000 (Coordinated Universal Time) https://kedro.readthedocs.io/en/0.17.1/02_get_started/01_prerequisites.html#conda

@ericblancosf

star

Sun Jan 23 2022 07:17:41 GMT+0000 (Coordinated Universal Time) https://kedro.readthedocs.io/en/0.17.1/02_get_started/01_prerequisites.html#conda

@ericblancosf

star

Sun Jan 23 2022 07:18:55 GMT+0000 (Coordinated Universal Time) https://kedro.readthedocs.io/en/0.17.1/02_get_started/02_install.html#verify-a-successful-installation

@ericblancosf

star

Sun Jan 23 2022 10:28:31 GMT+0000 (Coordinated Universal Time) https://www.w3schools.com/html/html_table_colspan_rowspan.asp

@saeed

star

Sun Jan 23 2022 10:29:31 GMT+0000 (Coordinated Universal Time) https://codeinu.com/search?key

@saeed

star

Sun Jan 23 2022 11:05:11 GMT+0000 (Coordinated Universal Time)

@zaman

star

Sun Jan 23 2022 11:50:31 GMT+0000 (Coordinated Universal Time) https://ubuntu.com/tutorials/ubuntu-on-windows#1-overview

@zvrhub

star

Sun Jan 23 2022 13:42:41 GMT+0000 (Coordinated Universal Time)

@mguad87

star

Sun Jan 23 2022 14:23:27 GMT+0000 (Coordinated Universal Time)

@mguad87

star

Sun Jan 23 2022 15:36:45 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/responsive-modal-image-gallery-using-html-and-css-css-html-javascript/5c9630466ed46c0014e3492e

@sureej19

star

Sun Jan 23 2022 15:37:09 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/responsive-modal-image-gallery-using-html-and-css-css-html-javascript/5c9630466ed46c0014e3492e

@sureej19

star

Sun Jan 23 2022 15:37:30 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/responsive-modal-image-gallery-using-html-and-css-css-html-javascript/5c9630466ed46c0014e3492e

@sureej19

star

Sun Jan 23 2022 16:26:49 GMT+0000 (Coordinated Universal Time) https://www.mobilhanem.com/android-toast-mesaji-kullanimi/

@mehaciyev

star

Sun Jan 23 2022 16:26:58 GMT+0000 (Coordinated Universal Time) https://www.mobilhanem.com/android-toast-mesaji-kullanimi/

@mehaciyev

star

Sun Jan 23 2022 19:43:24 GMT+0000 (Coordinated Universal Time)

@ebongmfoniso

star

Sun Jan 23 2022 20:47:09 GMT+0000 (Coordinated Universal Time)

@ebongmfoniso

star

Mon Jan 24 2022 02:26:05 GMT+0000 (Coordinated Universal Time)

@malibaig

star

Mon Jan 24 2022 03:49:55 GMT+0000 (Coordinated Universal Time) https://12ft.io/proxy?q

@kchaitanyach

star

Mon Jan 24 2022 05:25:20 GMT+0000 (Coordinated Universal Time) https://edabit.com/challenges

@IrtiqaMohiuddin

star

Mon Jan 24 2022 05:44:08 GMT+0000 (Coordinated Universal Time) https://www.tutorialspoint.com/get-current-time-and-date-on-android

@Narutu

star

Mon Jan 24 2022 06:57:22 GMT+0000 (Coordinated Universal Time) https://gallery.flutter.dev/

@samir_reaz

star

Mon Jan 24 2022 06:57:41 GMT+0000 (Coordinated Universal Time) https://api.flutter.dev/flutter/material/Colors-class.html

@abir_hasnat95

star

Mon Jan 24 2022 06:58:45 GMT+0000 (Coordinated Universal Time) https://gallery.flutter.dev/

@abir_hasnat95

star

Mon Jan 24 2022 07:02:10 GMT+0000 (Coordinated Universal Time) https://gallery.flutter.dev/

@abir_hasnat95

star

Mon Jan 24 2022 07:11:58 GMT+0000 (Coordinated Universal Time) https://prowritingaid.com/

@ziya

star

Mon Jan 24 2022 07:28:20 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/4792260/how-do-you-change-text-to-bold-in-android

@Narutu

star

Mon Jan 24 2022 07:30:19 GMT+0000 (Coordinated Universal Time) https://www.codegrepper.com/code-examples/java/text.settextcolor+android

@Narutu

star

Mon Jan 24 2022 07:50:47 GMT+0000 (Coordinated Universal Time) https://languagetool.org/

@Rehman3544

star

Mon Jan 24 2022 08:31:11 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/35011366/move-git-lfs-tracked-files-under-regular-git

star

Mon Jan 24 2022 08:55:30 GMT+0000 (Coordinated Universal Time)

@kiroy

star

Mon Jan 24 2022 09:25:26 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/115983/how-can-i-add-a-blank-directory-to-a-git-repository

star

Mon Jan 24 2022 10:37:19 GMT+0000 (Coordinated Universal Time)

@Vishal_Kumar

star

Mon Jan 24 2022 10:37:19 GMT+0000 (Coordinated Universal Time)

@Vishal_Kumar

star

Mon Jan 24 2022 11:24:58 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object

@nikhil3790

star

Mon Jan 24 2022 14:07:42 GMT+0000 (Coordinated Universal Time)

@vaibhav_55

star

Mon Jan 24 2022 14:30:12 GMT+0000 (Coordinated Universal Time)

@vaibhav_55

star

Mon Jan 24 2022 18:35:22 GMT+0000 (Coordinated Universal Time) https://www.taniarascia.com/developer-blogs-to-follow-2019/

@erinksmith

star

Mon Jan 24 2022 21:10:24 GMT+0000 (Coordinated Universal Time) https://programmingwithmosh.com/javascript/setup-eslint-and-prettier-in-your-react-project/

@erinksmith

star

Mon Jan 24 2022 21:11:08 GMT+0000 (Coordinated Universal Time) https://programmingwithmosh.com/javascript/learn-the-usecontext-hook-in-react/

@erinksmith

star

Mon Jan 24 2022 21:11:35 GMT+0000 (Coordinated Universal Time) https://programmingwithmosh.com/react/learn-usereducer-hook-in-react/

@erinksmith

star

Mon Jan 24 2022 21:12:06 GMT+0000 (Coordinated Universal Time) https://programmingwithmosh.com/javascript/getting-started-with-jest-testing-is-fun/

@erinksmith

star

Mon Jan 24 2022 21:12:17 GMT+0000 (Coordinated Universal Time) https://programmingwithmosh.com/javascript/create-modal-using-react/

@erinksmith

star

Mon Jan 24 2022 23:39:36 GMT+0000 (Coordinated Universal Time)

@chicovirabrikin

Save snippets that work with our extensions

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