This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TreeNode{ | |
int val; | |
TreeNode left, right; | |
TreeNode(int val){ | |
this.val = val; | |
} | |
} | |
public String serialize(TreeNode root){ | |
StringBuilder sb = new StringBuilder(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
window = Tk() | |
window.title("Welcome to codersarts app") | |
lbl = Label(window, text="Hello") | |
lbl.grid(column=0, row=0) | |
window.geometry('1200x750') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
window = Tk() | |
window.title("Welcome to codersarts app") | |
lbl = Label(window, text="Hello") | |
lbl.grid(column=0, row=0) | |
window.geometry('1200x750') | |
window.mainloop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
window = Tk() | |
window.title("Welcome to codersarts app") | |
window.geometry('350x200') | |
lbl1 = Label(window, text=" ") | |
lbl1.grid(column=0, row=0) | |
lbl2 = Label(window, text="show result here") | |
lbl2.grid(column=1, row=5) | |
txt = Entry(window,width=10,) | |
txt.grid(column=1, row=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter.ttk import * | |
window = Tk() | |
window.title("Welcome to codersarts app") | |
window.geometry('350x200') | |
combo = Combobox(window) | |
combo['values']= (1, 2, 3, 4, 5, "Text") | |
combo.current(1) #set the selected item | |
combo.grid(column=2, row=0) | |
window.mainloop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
{% load static %} | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Index</title> | |
{% load staticfiles %} | |
<link rel="stylesheet" href="{% static 'css/style.css' %}"/> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent: # define parent class | |
parentAttr = 100 # Static variable or class variable declaration | |
def __init__(self): | |
print ("Calling parent constructor") | |
def parentMethod(self): | |
print ('Calling parent method') | |
# Set Class or static variable 'parentAttr' | |
def setAttr(self, attr): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const {WebhookClient} = require('dialogflow-fulfillment'); | |
const {Card, Suggestion} = require('dialogflow-fulfillment'); | |
admin.initializeApp({ | |
credential: admin.credential.applicationDefault(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#PyQT Help by Codersarts | |
#If you have any problem with python with any cross-platform toolkit then contact codersarts | |
import sys | |
from PyQt5.QtCore import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import * | |
from PyQt5 import QtWidgets, uic |
OlderNewer