Skip to content

Instantly share code, notes, and snippets.

View hlabella's full-sized avatar

Henrique Labella hlabella

View GitHub Profile
@hlabella
hlabella / DurationPicker.xaml
Created September 19, 2025 17:11
WPF - [User Control] - TimeSpan Editor - Duration
<UserControl x:Class="yournamespace.Controls.DurationPicker"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d">
<Border VerticalAlignment="Center" SnapsToDevicePixels="True" UseLayoutRounding="True">
<StackPanel Orientation="Horizontal">
<!-- HOURS -->
<TextBox x:Name="HoursBox"
@hlabella
hlabella / snovio_delete_duplicate_deals.py
Last active December 4, 2024 17:48
Snov.io keeps duplicating deals every time an email is sent. This code is a recurring script to clean snov.io.
import requests
import time
from collections import defaultdict
API_TOKEN = 'your token (ex: 'ASDFGHJKL')'
FILTER_ID = 'your filter id to filter specific deals you want affected (ex: 21)'
BASE_URL = 'https://api.pipedrive.com/v1/deals'
def get_all_deals():
deals = []