This file contains hidden or 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 numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from skimage.io import imread | |
from skimage.color import rgb2gray | |
from skimage.filters import threshold_otsu | |
from skimage.measure import label | |
This file contains hidden or 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 qwikidata.sparql import return_sparql_query_results | |
import urllib.request | |
from urllib.parse import urlparse, unquote | |
import os | |
q = """ | |
SELECT ?item ?object ?image | |
WHERE | |
{ |
This file contains hidden or 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 glob import glob | |
# rule root: | |
# input: | |
# [i.replace("PRJNA673096/","") for i in glob("PRJNA673096/*")] | |
This file contains hidden or 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 PySide2.QtWidgets import * | |
from PySide2.QtCore import * | |
from PySide2.QtGui import * | |
import sys | |
class LolliPop(QWidget): | |
"""docstring for ClassName""" | |
def __init__(self, parent=None): |
This file contains hidden or 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 PySide2.QtWidgets import * | |
from PySide2.QtCore import * | |
from PySide2.QtGui import * | |
import sys | |
class GameListModel(QAbstractListModel): | |
"""A model to store a list of things""" | |
def __init__(self, parent=None): |
This file contains hidden or 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 PySide2.QtWidgets import * | |
from PySide2.QtCore import * | |
from PySide2.QtGui import * | |
from PySide2.QtQuick import QQuickView | |
import sys | |
import random | |
class PlayerModel(QAbstractListModel): | |
""" |
This file contains hidden or 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 PySide2.QtWidgets import * | |
from PySide2.QtCore import * | |
from PySide2.QtGui import * | |
from PySide2.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings | |
import sys | |
import altair as alt | |
import pandas as pd | |
from vega_datasets import data |
This file contains hidden or 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 PySide2.QtWidgets import * | |
from PySide2.QtCore import * | |
from PySide2.QtGui import * | |
import sys | |
class RangeSlider(QWidget): | |
def __init__(self, parent=None): | |
super().__init__(parent) |
This file contains hidden or 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 QueryPluginWidget(PluginWidget): | |
""" Base class for all query plugin """ | |
query_changed = Signal() # Signal to emit if UI change the query | |
@property | |
def query(self): | |
return self._query | |
@query.setter |
This file contains hidden or 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
#include <iostream> | |
#include <typeinfo> | |
#include <functional> | |
#include <vector> | |
using namespace std; | |
class Test | |
{ | |
public : |