- Go to Admin > Integrations > GitHub or Bitbucket
- Fill secret key or use the auto generated one
- Copy the payload URL input
- Click on Settings > Webhooks & Services > Add webhook
- On that screen set the payload url with the payload url from Taiga
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.0') | |
@Grab(group='joda-time', module='joda-time', version='2.7') | |
import wslite.rest.* | |
import org.joda.time.* | |
import org.joda.time.format.* | |
import groovy.xml.* | |
import groovy.json.* | |
import static java.lang.System.* | |
import groovy.transform.* |
"""Convert jupyter notebook to sphinx gallery notebook styled examples. | |
Usage: python ipynb_to_gallery.py <notebook.ipynb> | |
Dependencies: | |
pypandoc: install using `pip install pypandoc` | |
""" | |
import pypandoc as pdoc | |
import json |
from app import db | |
from sqlalchemy import func | |
from sqlalchemy.dialects.mysql import insert | |
def upsert(model, insert_dict): | |
"""model can be a db.Model or a table(), insert_dict should contain a primary or unique key.""" | |
inserted = insert(model).values(**insert_dict) | |
upserted = inserted.on_duplicate_key_update( | |
id=func.LAST_INSERT_ID(model.id), **{k: inserted.inserted[k] | |
for k, v in insert_dict.items()}) |
This project itself is just the template, but you need to install these tools to use it:
SHELL=/bin/bash | |
# to see all colors, run | |
# bash -c 'for c in {0..255}; do tput setaf $c; tput setaf $c | cat -v; echo =$c; done' | |
# the first 15 entries are the 8-bit colors | |
# define standard colors | |
ifneq (,$(findstring xterm,${TERM})) | |
BLACK := $(shell tput -Txterm setaf 0) | |
RED := $(shell tput -Txterm setaf 1) |