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 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 |
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
<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: |
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
{ | |
"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":{ |
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
serializer = QuestionSerializer(events) | |
serializer.is_valid() | |
return Response(serializer.data) |
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 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++) { |
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
public class ISBNreader { | |
public boolean isValid(String string) { | |
String n2 = string.replaceAll("-", ""); | |
int result = 0; | |
if (n2.length() != 10) { | |
return false; | |
} |
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 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++) { |
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 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") | |
] |
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 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 |
NewerOlder