Skip to content

Instantly share code, notes, and snippets.

View Gabrock94's full-sized avatar

Giulio Gabrock94

View GitHub Profile
@Gabrock94
Gabrock94 / pyaesthetics_demo.ipynb
Created September 23, 2024 15:09
pyaesthetics_demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Gabrock94
Gabrock94 / gazedata_batch_exporter.py
Created December 5, 2023 11:10
Batch Exporter for Pupilab Gaze data
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tiziana's batch converter
Created on Mon Dec 4 19:45:22 2023
@author: giulio
"""
@Gabrock94
Gabrock94 / jit_test.m
Created October 17, 2023 07:14
Test matlab JIT
User
Convert the following snippet to Python
% This script is used to test JIT compilation over huge number of nTrials
%in each iterations we generate a matrix of nNumbers uniformely distributed random
%trials
nTrials = 100;
nNumbers = 1000;
import os
import pandas as pd
import sklearn as skl
import scipy as sp
import matplotlib.pyplot as plt
# Define the paths
BASEPATH = '/home/giulio/Repositories/covres/' #This is the folder where db is
# import database
@Gabrock94
Gabrock94 / lsvc_cryPPD.ipynb
Created November 3, 2019 04:38
Notebook for the analysis of Infant's cry and PPD (Linear SVC)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Gabrock94
Gabrock94 / Praat_CryAnalysisScript
Created November 1, 2019 04:01
This script can be used to automatically analyze all the audio files contained in a single folder. Settings are Optimized for cry analysis.
#############################################################################################
# Extract f0, f1-f4 and Intensity from all the wav (or .xyz) files stored in a directory #
# #
# Giulio Gabrieli #
# v.1.0.1 #
# Last Edit: 11/04/2019 #
#############################################################################################
#Change this line with the location of the Wav files
directory$ = "C:\Users\giulio001\Desktop\Cry_DEP\Raw\Extracted\7\"
@Gabrock94
Gabrock94 / awwwardScraper_v0.0.1.py
Last active November 10, 2017 11:03
Script tht downloads votes and tags from AWWWARDS
# -*- coding: utf-8 -*-
"""
AWWWARD Web Scraper
Created on Thu Nov 9 14:32:36 2017
@author: Giulio Gabrieli
"""
###############################################################################
# #