Skip to content

Instantly share code, notes, and snippets.

@jdelasoie
jdelasoie / gist:74a537c8ae4f6073e7ee4470e3e1ad9b
Created April 26, 2021 12:45
remplir_form_choose_receiver
{"_id":"6081226f071df607e71ae8a3","type":"form","tags":[],"owner":"605a091e390b9fa6e626d355","components":[{"label":"Name","labelPosition":"top","placeholder":"","description":"","tooltip":"","prefix":"","suffix":"","widget":{"type":"input"},"inputMask":"","allowMultipleMasks":false,"customClass":"","tabindex":"","autocomplete":"","hidden":false,"hideLabel":false,"showWordCount":false,"showCharCount":false,"mask":false,"autofocus":false,"spellcheck":true,"disabled":false,"tableView":true,"modalEdit":false,"multiple":false,"persistent":true,"inputFormat":"plain","protected":false,"dbIndex":false,"case":"","encrypted":false,"redrawOn":"","clearOnHide":true,"customDefaultValue":"","calculateValue":"","calculateServer":false,"allowCalculateOverride":false,"validateOn":"change","validate":{"required":true,"pattern":"","customMessage":"","custom":"","customPrivate":false,"json":"","minLength":2,"maxLength":"","strictDateValidation":false,"multiple":false,"unique":false},"unique":false,"errorLabel":"","key":"name","
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2021-03-23T17:22:49.796Z",
"redirects": [
{
"description": "Chronos",
"exampleUrl": "https://chronos.epfl.ch",
"exampleResult": "https://sesame2-ghp.epfl.ch/epfl/flp/shells/abap/FioriLaunchpad.html#ZChronos-create",
"error": null,
"includePattern": "^https?://chronos.epfl.ch",
@jdelasoie
jdelasoie / gist:1ea9a69d7f5b5fbb9fb24422fe862dee
Last active May 27, 2019 11:21
wp-veritas API fetch for AWX
#!/usr/bin/env python
# All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, VPSI, 2019
#
# Wp-vertias API fetcher, to build a JSON ansible inventory
#
# Example invocation:
# wp-veritas-inventory.py --list
import argparse
### Keybase proof
I hereby claim:
* I am jdelasoie on github.
* I am jdelasoie (https://keybase.io/jdelasoie) on keybase.
* I have a public key ASCMt-hXPHll_36PqAMQrabTNuBBVKtsuAwhm-oqhkgkdQo
To claim this, I am signing this object:

Infoscience authors updater

Install

pipenv --three install

How to use

assert last files from tind are placed in the root :

@jdelasoie
jdelasoie / unattributed_misc_wos_reset.py
Created January 23, 2018 14:31
Remove WoS id where unattributed Uknown
"""list wos_id in collection Infoscience/Research/UNATTRIBUTED/UNATTRIBUTED-MISC
and request :
035:'ISI' AND -917:% AND -fulltext:%
"""
import csv
import tempfile
from Infoscience.Fetch import fetch_query
from Curator.getter.models import ExternalRecord