Must-have:
Para encontrar plugins relevantes podéis ir a la weeb de pytest y buscar
(ctrl+f) palabras clave relacionadas con lo que necesitéis, por ejemplo
notification
.
https://docs.pytest.org/en/latest/reference/plugin_list.html
import pytest | |
import pickle | |
FILES_DIR = Path(__file__) / ".." / ".." | |
def cache_fixture(func): | |
pkl = (FILES_DIR / "program_144_dforex.pkl") |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Load the JS file --> | |
<script src="https://cdn.jsdelivr.net/npm/@gitgraph/js"></script> | |
</head> | |
<body> | |
<!-- DOM element in which we'll mount our graph --> | |
<div id="graph-container"></div> |
Must-have:
Para encontrar plugins relevantes podéis ir a la weeb de pytest y buscar
(ctrl+f) palabras clave relacionadas con lo que necesitéis, por ejemplo
notification
.
https://docs.pytest.org/en/latest/reference/plugin_list.html
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
if grep -IRn pdb $DIR/../src | |
then | |
false | |
fi | |
if grep -IRn pdb $DIR/../tests | |
then |
Other ideas:
.ONESHELL: | |
SHELL=/usr/bin/bash | |
CPUS ?= $(shell grep -c ^processor /proc/cpuinfo || echo 1) | |
MAKEFLAGS += --jobs=$(CPUS) | |
PY_VERS = {"3.5", "3.6", "3.7"} | |
all: py3.6-pip18 py3.6-pip19 py3.6-pip20 py3.7-pip18 py3.7-pip19 py3.7-pip20 py3.8-pip18 py3.8-pip19 py3.8-pip20 | |
pyenv_local: | |
@pyenv local 3.5.10 3.6.13 3.7.10 3.8.8 3.9.2 |
javascript: | |
function getSelectionText() { | |
var text = ""; | |
if (window.getSelection) { | |
text = window.getSelection().toString(); | |
} else if (document.selection && document.selection.type != "Control") { | |
text = document.selection.createRange().text; | |
} | |
return text; |
# coding: utf-8 | |
# | |
# fuckda.py - Uso de certificados de la FNMT con Python | |
# | |
# Autor: Juan Luis Cano Rodríguez <[email protected]> | |
# | |
# Instrucciones: | |
# | |
# 1. Exportar certificado (CERTIFICADO.p12) | |
# https://www.sede.fnmt.gob.es/preguntas-frecuentes/exp-imp-y-elim-de-certificados |
# Get issue id from glab | |
glab issue list --search mgreco | fzf -m --bind ctrl-a:select-all,ctrl-d:deselect-all,ctrl-t:toggle-all | awk -F"[ ]+" '{/#/split(sub("#", "", $1), a, " "); print $a[1]}' |
#!/usr/bin/env bash | |
# https://docs.gitlab.com/ce/api/issues.html#list-project-issues | |
TOKEN="<TOKEN>" | |
ENDPOINT="https://<host>/api/v4/projects/324/issues" | |
TMPL="curl --header \"PRIVATE-TOKEN: $TOKEN\" \"$ENDPOINT\"\n" | |
MILESTONE="<milestone>" | |
curl --header "PRIVATE-TOKEN: $TOKEN" \ | |
"$ENDPOINT?scope=all&mileston=$MILESTONE&per_page=100" \ | |
| jq -r '.[] | (.iid | tostring) + "\t" + .title + "\t" + (.time_stats.time_estimate / 28800 | tostring)' |