Skip to content

Instantly share code, notes, and snippets.

View JoaoFelipe's full-sized avatar

João Felipe N. Pimentel JoaoFelipe

View GitHub Profile
@JoaoFelipe
JoaoFelipe / README.md
Last active February 12, 2024 15:37
noWorkflow Project Ideas

Project Idea 1: Verify the reproducibility of an experiment

Abstract

Implement an algorithm to compare the provenance from two (or more) trials (i.e., executions of an experiment) to check their reproducibility. The provenance stored in the relational (sqlite) database by noWorkflow 2 contains intermediate variable values from a trial. These values could be compared to check how much or where executions deviate from each other.

License

MIT: https://github.com/gems-uff/noworkflow/blob/master/LICENSE

from math import log2
from collections import deque
from bisect import bisect_right
class Memory:
def __init__(self, f):
self.func = f
self.xs = deque()
#self.pos = deque()
@JoaoFelipe
JoaoFelipe / epicswitch.py
Created March 15, 2022 20:44
Epic Account Switch
# This script is a simple remake of TcNo-Acc-Switcher for epic launcher
# I made it to avoid installing a third party software that could manage sensitive account data
# Original configuraton: https://github.com/TcNobo/TcNo-Acc-Switcher/blob/e36fe87a3e96a23e5a56447c6407121a6245c3aa/TcNo-Acc-Switcher-Server/Platforms.json
import os
import shutil
import json
import winreg
import psutil
@JoaoFelipe
JoaoFelipe / definition_provenance.py
Created August 30, 2021 02:36
Definition provenance collector
# Copyright (c) Universidade Federal Fluminense (UFF)
# Copyright (c) NYU Tandon School of Engineering
# This file uses part of noWorkflow 1 and 2. Please, check the LICENSE file the repository:
# https://github.com/gems-uff/noworkflow
"""Definition provenance collector
Uses noWorkflow to collect definition provenance
"""
import sys
import argparse
@JoaoFelipe
JoaoFelipe / Meta.ipynb
Created February 6, 2021 23:01
Metaclass for private attributes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JoaoFelipe
JoaoFelipe / exercicio1.dat
Last active November 5, 2020 01:31
CEDERJ - Algebra Relacional - Aula 16
-- this is an example
group: empresa
Empregado = {
pnome minicial unome ssn datanasc endereco sexo salario superssn dno
John B Smith 123456789 1965-01-09 "731 Fondren, Houston, TX" M 30000 333445555 5
Frankin T Wong 333445555 1955-12-08 "658 Voss, Houston, TX" M 40000 888665555 5
Alicia J Zelaya 99988777 1968-01-19 "3321 Castle, Soring, TX" F 25000 987654321 4
Jennifer S Wallace 987654321 1941-06-20 "291 Berry, Bellaire, TX" F 43000 8886655555 4
Ramesh K Narayan 666884444 1962-09-15 "975 Fire Oak, Humble, TX" M 38000 333445555 5
@JoaoFelipe
JoaoFelipe / 2020.2.BD.AD1.ipynb
Created October 19, 2020 21:47
Widgets para correção de AD1 de BD do CEDERJ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
group: CEDERJ - Cliente, Emprestimo, Livro
description: Tabelas para resolucao da AD1 do CEDERJ
Cliente = {
cid, cnome, cend
1, 'Alice', 'Rua dos Cravos 22'
2, 'Lucas', 'Travessa José Vieira de Morais 373'
3, 'Caio', 'Rua Hugo Cenedesi 1689'
4, 'Daniela', 'Rua Vinte e Cinco 417'
group: CEDERJ - Usuario, Duvida, Resposta
description: Tabelas para resolucao da APX1 do CEDERJ
Usuario = {
CodUsuario, Nome
1, 'Alice'
2, 'Lucas'
3, 'Caio'
4, 'Daniela'
@JoaoFelipe
JoaoFelipe / latex_to_text.py
Last active February 15, 2020 12:45
Converts latex into plain text for grammarly
import re
import argparse
from time import sleep
from string import ascii_letters
import keyboard # using module keyboard
import pyperclip
import bibtexparser
from bibtexparser.bparser import BibTexParser
from bibtexparser.customization import convert_to_unicode