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
| - regex: ":tr\"(?P<text>.*)\"" | |
| replace: "{{translate}}" | |
| vars: | |
| - name: translate | |
| type: shell | |
| params: | |
| cmd: "python ~/translate.py \"{{text}}\"" |
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 PySide6.QtWidgets import * | |
| from PySide6.QtCore import * | |
| from PySide6.QtGui import * | |
| import math | |
| import networkx as nx | |
| import igraph as ig | |
| class Node(QGraphicsItem): |
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 nxontology.imports import from_file | |
| import networkx as nx | |
| g = from_file("hp.owl") | |
| space = 0 | |
| previous_first ="" | |
| previous_second ="" | |
| tab = " " |
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 * | |
| import sys | |
| class MonWidget(QWidget): | |
| def __init__(self, parent=None): | |
| super().__init__(parent) | |
| hlayout = QHBoxLayout() | |
| self.left_button = QPushButton("<") |
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
| track type=wiggle_0 graphType=points name="truc" description="une description" visibility=full color=50,150,255 yLineMark=11.76 yLineOnOff=on | |
| variableStep chrom=chr1 | |
| [span=windowSize] | |
| 2488157 0.4818 | |
| 2488159 0.4818 | |
| 2491207 0.537 | |
| 2494787 0.5251 | |
| 6257857 0.488 | |
| 7434547 0.4077 |
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): |