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
import sys | |
from PyQt6.QtWidgets import QApplication, QLabel, QWidget | |
app = QApplication([]) | |
window = QWidget() | |
window.setWindowTitle("PyQt App") | |
window.setGeometry(100, 100, 280, 80) | |
helloMsg = QLabel("<h1>Hello, World!</h1>", parent=window) |
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 Employee: | |
def __init__(self, name, age): | |
self.name = name | |
self.age = age | |
empleado = Employee("Juan", 23) | |
print(f"Nombre {empleado.name} ,edad: {empleado.age}" ); |
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
def multiplica(operando1, operando2): | |
return operando1 * operando2 | |
def suma(operando1, operando2): | |
return operando1 + operando2 | |
def resta(operando1, operando2): | |
return operando1 - operando2 | |
def main(): |
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
db.Students.insertMany([{rollno:1,name:"Shivam",age:19,branch:"comp",address:{city:"pune",state:"mh"},hobbies:["badminton","books"]}, | |
{rollno:2,name:"Kavita",age:19,branch:"entc",address:{city:"banglore",state:"karnataka"},hobbies:["tennis","books","cooking"]}, | |
{rollno:3,name:"Shreya",age:13,branch:"entc",address:{city:"pune",state:"mh"},hobbies:["badminton","tennis"]}, | |
{rollno:4,name:"Sneha",age:21,branch:"mech",address:{city:"nasik",state:"mh"},hobbies:["basketball","books"]}, | |
{rollno:5,name:"Neha",age:10,branch:"civil",address:{city:"nasik",state:"mh"},hobbies:["cooking","books","drawing"]}, | |
{rollno:6,name:"Riya",age:21,branch:"entc",address:{city:"mumbai",state:"mh"},hobbies:["badminton","dancing"]}, | |
{rollno:7,name:"Sumit",age:12,branch:"civil",address:{city:"nagpur",state:"mh"},hobbies:["singing","cooking","dancing"]}, | |
{rollno:8,name:"Richa",age:19,branch:"comp",addr |
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 school | |
db.createCollection("Students"); | |
db.Students.insert([{rollno:1,nmae:"Shivam",age:19,branch:"comp",address:{city:"pune",state:"mh"},hobbies:["badminton","books"]}, | |
{rollno:2,nmae:"Kavita",age:19,branch:"entc",address:{city:"banglore",state:"karnataka"},hobbies:["tennis","books","cooking"]}, | |
{rollno:3,nmae:"Shreya",age:13,branch:"entc",address:{city:"pune",state:"mh"},hobbies:["badminton","tennis"]}, | |
{rollno:4,nmae:"Sneha",age:21,branch:"mech",address:{city:"nasik",state:"mh"},hobbies:["basketball","books"]}, | |
{rollno:5,nmae:"Neha",age:10,branch:"civil",address:{city:"nasik",state:"mh"},hobbies:["cooking","books","drawing"]}, | |
{rollno:6,nmae:"Riya",age:21,branch:"entc",address:{city:"mumbai",state:"mh"},hobbies:["badminton","dancing"]}, |
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
{ | |
"_id" : 1, | |
"item_id" : "I001", | |
"comp_id" : "C001", | |
"qty" : 25, | |
"prate" : 30, | |
"srate" : 35, | |
"mrp" : 40 | |
} | |
{ |
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
cd "." | |
SET "TG_HOME=." | |
SET "TG_MAIN_CLASS=org.herac.tuxguitar.app.TGMainSingleton" | |
SET "JAVA=java" | |
SET "JAVA_LIBRARY_PATH=%JAVA_LIBRARY_PATH%;lib\" | |
SET "JAVA_CLASSPATH=%JAVA_CLASSPATH%;lib\tuxguitar.jar" |
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
#!/bin/sh | |
# Copyright 2018-2021 Alkis Georgopoulos <github.com/alkisg> | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
usage() { | |
printf "Usage: %s [OPTIONS] [COMMAND] | |
Install the drivers for the BrosTrend AC1L/AC3L/AC5L adapters. | |
The main difficulty is in detecting the appropriate kernel *headers* package. |
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
#!/bin/sh | |
##SCRIPT DIR | |
DIR_NAME=`dirname "$0"` | |
DIR_NAME=`cd "$DIR_NAME"; pwd` | |
cd "${DIR_NAME}" | |
##JAVA | |
JAVA_BUNDLED="./jre/bin/java" | |
if [ -f "${JAVA_BUNDLED}" ]; then | |
JAVA="${JAVA_BUNDLED}" | |
fi |
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
db.employees.insertMany([ | |
{ | |
_id:1, | |
firstName: "John", | |
lastName: "King", | |
email: "john.king@abc.com", | |
salary: 5000 | |
}, | |
{ | |
_id:2, |
NewerOlder