What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 19:41:05
prolog file suffix
% transposition of a rectangular matrix% e.g. [[1,2,3,4], [5,6,7,8]]% give [[1,5],[2,6],[3,7],[4,8]] transpose(In, Out) :- In = [H | T], maplist(initdl, H, L), work(T, In, Out). % we use the difference list to make "quick" a... Add solution -
Python 2022-01-30 17:11:29
creating a web page in python
import sys from PyQt5.QtWidgets import * class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.showMaximized() app = QApplication(sys.argv) QApplication.setApplicationName('My Cool Browser') wi... Add solution -
Python 2022-01-27 23:20:37
call class function by string python
#------------------------------------ #CLASS #------------------------------------ class Student: def __init__(self): self.name = None def set_name(self, word): self.name = word return self.get_name() def get_name(self): re... Add solution -
C++ 2022-01-27 00:06:06
public in c++
#include <iostream> // Visibility is how visible certain members or methods of class are , who can see them ,who can call them and who can use them //Visibility has no effect on performance of your program it is ust for organizing code //Three basic... Add solution -
Python 2022-01-25 12:56:39
live stock market data python
import urllib.request import json class GoogleFinanceAPI: def __init__(self): self.prefix = "http://finance.google.com/finance/info?client=ig&q=" def get(self,symbol,exchange): ... Add solution -
Other 2022-01-24 22:36:35
qgis canvas as pyqt widget
from PyQt5 import QtCore, QtGui, QtWidgets from qgis.gui import QgsMapCanvas from qgis.core import QgsVectorLayer class Ui_MainWindow(object): def setupUi(self, MainWindow): self.main_window = MainWindow self.main_window.setObjectName... Add solution -
Python 2022-01-24 17:40:25
metaclass python
A metaclass is the class of a class. A class defines how an instance of the class (i.e. an object) behaves while a metaclass defines how a class behaves. A class is an instance of a metaclass. While in Python you can use arbitrary callables for metaclass... Add solution