Skip to content

Instantly share code, notes, and snippets.

View thiagobutignon's full-sized avatar

Thiago Butignon Claramunt thiagobutignon

  • 05:20 (UTC -03:00)
View GitHub Profile
@thiagobutignon
thiagobutignon / privacy_budget_manager_lab.py
Created January 13, 2026 05:27
privacy_budget_manager_lab.py
import opendp.prelude as dp
dp.enable_features("contrib")
import pandas as pd
import numpy as np
import statistics
# =============================================================================
# DATASET SETUP
# =============================================================================
@thiagobutignon
thiagobutignon / privacy_budget_lab.py
Created January 13, 2026 00:45
privacy_budget_lab.py
import opendp.prelude as dp
dp.enable_features("contrib")
import pandas as pd
import numpy as np
# =============================================================================
# DATASET SETUP
# =============================================================================
# Create sample customer dataset
@thiagobutignon
thiagobutignon / example-1-la-place-algorithm-differential-privacy.py
Created January 13, 2026 00:26
example-1-la-place-algorithm-differential-privacy
import opendp as dp
import pandas as pd
import numpy as np
# Create sample customer dataset
customers = pd.DataFrame({
'age': [25, 34, 45, 29, 52, 38, 41, 33, 47, 36],
'purchase_amount': [150, 320, 890, 200, 450, 275, 680, 180, 520, 340]
})
/**
* This file is part of the Softbank Robotics tutorial project, specifically focused on animating
* the Pepper robot using the QiSDK framework. It demonstrates how to build and run animations
* alongside playing sound effects and handling robot lifecycle callbacks.
*
* @file AnimateTutorialActivity.kt
* @author Softbank Robotics Europe
* @since 2018
*/
import { HttpClient, HttpStatusCode } from '@/data/protocols'
import { InvalidCredentialError, UnexpectedError } from '@/domain/errors'

import { LoginUsecase } from '@/domain/usecases'

export class RemoteLogin implements LoginUsecase {
  constructor (
    private readonly url: string,
 private readonly httpClient: HttpClient
import { HttpClient, HttpStatusCode } from '@/data/protocols'
import { InvalidCredentialError, UnexpectedError } from '@/domain/errors'

import { LoginUsecase } from '@/domain/usecases'

export class RemoteLogin implements LoginUsecase {
  constructor (
    private readonly url: string,
 private readonly httpClient: HttpClient
{
"name": "Thiago",
"email": "thiagobutignon@gmail.com"
}
@thiagobutignon
thiagobutignon / boxed-text.json
Last active September 17, 2021 03:57
Zup Innovation - Thiago Butignon Claramunt
{
"_beagleComponent_": "beagle:container",
"style": {
"backgroundColor": "#FF0000",
"padding": {
"all": {
"value": 60,
"type": "REAL"
}
}
@thiagobutignon
thiagobutignon / AuthorizationDecorator.swift
Last active September 17, 2020 20:47
AuthorizationDecorator
class AuthorizationDecorator: HttpClient {
private let httpClient: HttpClient
public init(httpClient: HttpClient) {
self.httpClient = httpClient
}
public func request(data: HttpRequest, completion: @escaping (Result<Data?, HttpError>) -> Void) {
let getToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjAwMzczNTczLCJleHAiOjE2MDA0NTk5NzN9.kKCRLckJdCaSMks6WBDX52wIAB92E8wTnHgPix3PxW4"
data.headers!["Authorization"] = "Bearer \(getToken)"
import faker from 'faker'
import { AddAccount } from '@/domain/usecases'
import { mockAccountResultModel } from '@/domain/test'
export const mockAddAccountParams = (): AddAccount.Params => {
const password = faker.internet.password()
return {
fullName: faker.name.findName(),
username: faker.internet.userName(),
email: faker.internet.email(),