Skip to content

Instantly share code, notes, and snippets.

View Daniiarz's full-sized avatar
💘
Python

Daniiarz

💘
Python
View GitHub Profile
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QInputDialog, QLineEdit
from PyQt5.QtGui import QIcon
class App(QWidget):
def __init__(self):
super().__init__()
self.title = 'PyQt5 input dialogs - pythonspot.com'
self.left = 10
<h1><font>=============================</font></h1>
<h1><font color="red">
CHICLAYO - Peru 🇵🇪 - Para El Mundo:earth_asia:
</font></h1>
<h1><font>=============================</font></h1>
<h6><font color="green">
:up:Disfruta de tu server PRIVADO!!
</h6></font>
<h6><font color="purple">
:fire:VENTA DE PAYLOADS, USUARIOS VPS, DROPLETS, SERVERS PRIVADOS MOVISTAR, BITEL Y CLARO:fire:
{
"title": "asd",
"description": "a",
"deadline": "2020-09-02T12:22:01",
"start_date": "2020-09-02T12:22:01",
"end_date": "2020-09-02T12:22:01",
"place": 1,
"link": "https://www.google.com/",
"address": "asd",
"attendees":{
serializer = QuestionSerializer(events)
serializer.is_valid()
return Response(serializer.data)
import java.util.Arrays;
class Matrix {
private int[][] a;
Matrix(String matrixAsString) {
String[] rows = matrixAsString.split("\\n+");
int ncols = rows[0].split("\\s+").length;
a = new int[rows.length][ncols];
for (int i = 0; i < rows.length; i++) {
public class ISBNreader {
public boolean isValid(String string) {
String n2 = string.replaceAll("-", "");
int result = 0;
if (n2.length() != 10) {
return false;
}
import java.util.Scanner;
public class GroupC1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
for (int i = 1; i <= n; i++) {
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views
# router = DefaultRouter()
# router.register(r"roles", views.RoleViewSet)
urlpatterns = [
path("roles/", views.RoleViews.as_view(), name="roles")
]
class Role(models.Model):
"""
Role model. Used as a model to group user to specific group depending on their type of work
"""
name = models.CharField(max_length=50)
def __str__(self):
return self.name
public class Author {
private String name;
private String email;
private char gender;
public Author(String name, String email, char gender) {
this.name = name;
this.email = email;
this.gender = gender;