What do you want to save?
Add Code snippet
New code examples
-
Html 2021-09-19 11:18:04
jinja2 base template
{% extends "layout.html" %} {% block title %}Index{% endblock %} {% block head %} {{ super() }} <style type="text/css"> .important { color: #336699; } </style> {% endblock %} {% block content %} <h1>Index&... Add solution -
Javascript 2021-09-18 15:46:03
nodejs interface
// MenuInterface.jsclass MenuInterface { constructor() { if(!this.getItems) { throw new Error("Menu's must have items!"); } }}// ---// file index.jsimport MenuInterface from './MenuInterface';class Menu extends MenuInterface { // n... Add solution -
Python 2021-09-14 21:54:02
pyqt5 information input windopw
import sysfrom 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 ... Add solution -
Other 2021-09-14 12:13:02
urisina
from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController app = Ursina() grass_texture = load_texture('assets/grass_block.png') stone_texture = load_texture('assets/stone_block.png') brick_texture = load_texture('asset... Add solution -
Python 2021-09-13 12:03:03
"must be called with either an object pk or a slug in the URLconf"
class HostDetailPageView(DetailView): template_name = 'hosts/hostdetail.html' model = Host pk_url_kwarg = 'name' def get_queryset(self): return super().get_queryset().filter(host__name=self.kwargs['host']) Add solution