Skip to content

Instantly share code, notes, and snippets.

{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@kmolima
kmolima / data_preview.py
Created April 6, 2022 14:19
Keywords and Expressions Preview
from nltk.tokenize import word_tokenize
from nltk.probability import FreqDist
#https://indiaai.gov.in/article/text-mining-in-python-steps-and-examples
file = open("keywords.csv",'r+')
text = file.read()
file.close()
@kmolima
kmolima / compact_speakers.py
Last active April 6, 2022 09:01
(MS Word) Transcription text compactor
import sys
import mmap
import re
# Speakers tracking variables
SPEAKER_REGEX = '[0-9][0-9]:[0-9][0-9]:[0-9][0-9] Speaker [0-9]+'
NO_ID_REGEX = '[0-9][0-9]:[0-9][0-9]:[0-9][0-9] \n'
speaker_index = 0
# Control variables
@kmolima
kmolima / mra_psi_script.groovy
Created June 29, 2021 14:30
MRA Plot Script
// INIT
File csv = new File(FILE)
Writer writer = new FileWriter(csv,true)
BufferedReader br = new BufferedReader(new FileReader(csv))
//Conv Method
toDegrees = {rad -> Math.toDegrees(rad)}
//IMC Vars
@kmolima
kmolima / GroovyListeners.java
Created March 2, 2017 11:14
NVL runtime on Neptus skeleton
/*
* Copyright (c) 2004-2017 Universidade do Porto - Faculdade de Engenharia
* Laboratório de Sistemas e Tecnologia Subaquática (LSTS)
* All rights reserved.
* Rua Dr. Roberto Frias s/n, sala I203, 4200-465 Porto, Portugal
*
* This file is part of Neptus, Command and Control Framework.
*
* Commercial Licence Usage
* Licencees holding valid commercial Neptus licences may use this file