Skip to content

Instantly share code, notes, and snippets.

View martindaniel4's full-sized avatar

Martin Daniel martindaniel4

View GitHub Profile
@martindaniel4
martindaniel4 / GCD533.png
Last active February 12, 2024 17:07
lare
GCD533.png
@martindaniel4
martindaniel4 / tshirt.jpeg
Last active May 17, 2023 08:29
image of a tshirt
tshirt.jpeg
@martindaniel4
martindaniel4 / carbonverse_demo.json
Last active May 3, 2023 09:56
A sample Carbonverse for a demo account
{
"raw": "TSHIRT",
"sex": {
"raw": "Female",
"norm": "WOMAN",
"context": {
"note": null,
"rule": null,
"source": "BRAND",
"updated_at": "2023-02-13T17:06:47.354044"
@martindaniel4
martindaniel4 / response_small_boots.json
Created April 14, 2023 09:13
response object /footprint for small boots carbonverse
{
"total": 23.148122908016575,
"breakdown": {
"use": 0,
"endOfLife": 1.2994999999999999,
"materials": 14.675539393593404,
"distribution": 0.41063362938,
"manufacturing": 6.7624498850431705,
"useDistribution": { "type": "NUMBER", "value": 0 },
"endOfLifeDistribution": {
@martindaniel4
martindaniel4 / ecobalyse.py
Created February 27, 2023 10:45
A script to run simulations on top of Ecobalyse API.
import pandas as pd
import requests
from datetime import date
"""
This script is used to run mass simulations from the Ecobalyse API. Documentation is available here: https://ecobalyse.beta.gouv.fr/#/api
"""
PRODUCT = 'robe'
MASS = '0.3'
@martindaniel4
martindaniel4 / bra.jpg
Last active October 4, 2022 10:19
og-images
bra.jpg
@martindaniel4
martindaniel4 / logo_carbonfact.png
Last active July 8, 2021 13:44
logo_carbonfact
logo_carbonfact.png
@martindaniel4
martindaniel4 / video_transcription.py
Created March 26, 2021 17:11
video_transcription
import wave, math, contextlib
import speech_recognition as sr
from moviepy.editor import AudioFileClip
transcribed_audio_file_name = "transcribed_speech.wav"
zoom_video_file_name = "video.mp4"
audioclip = AudioFileClip(zoom_video_file_name)
audioclip.write_audiofile(transcribed_audio_file_name)
@martindaniel4
martindaniel4 / emissions.csv
Created September 28, 2020 16:44
GHG emissions per sector and subsector and country (2018)
Country Category kt CO₂ equivalent (2018)
Australia 1. Energy 435,570.94
Australia 1.AA Fuel Combustion - Sectoral approach 381,121.10
Australia 1.A.1 Energy Industries 213,835.41
Australia 1.A.1.a Public Electricity and Heat Production 183,170.46
Australia 1.A.1.b Petroleum Refining 3,078.61
Australia 1.A.1.c Manufacture of Solid Fuels and Other Energy Industries 27,586.35
Australia 1.A.1.c.i Manufacture of Solid Fuels 719.60
Australia 1.A.1.c.ii Oil and Gas Extraction 17,934.86
Australia 1.A.1.c.iii Other Energy Industries 8,931.89
clear *; close all;
% Pram�tres calcul
Fsig=0.5; % Fr�quence signal modul�
Freq_filt_env = 1; % Fr�quence de coupure du filtre passe bas de l'enveloppe
% Option graphique
Tline = 4;
xlimOn = 0; % Activation limite axe x (1)
save_svg =1; % Activation sauvegarde figure au format svg