Skip to content

Instantly share code, notes, and snippets.

View cheroliv's full-sized avatar

cheroliv cheroliv

View GitHub Profile
@GaetanoPiazzolla
GaetanoPiazzolla / FORM_API_Main.java
Created March 21, 2022 19:09
Full implementation example usage of Google Form API
/*
implementation("com.google.apis:google-api-services-forms:v1-rev20220307-1.32.1")
implementation("com.google.apis:google-api-services-drive:v3-rev20220214-1.32.1")
implementation ("com.google.api-client:google-api-client-jackson2:1.28.1")
implementation("com.google.auth:google-auth-library-oauth2-http:1.5.3")
*/
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
@weverb2
weverb2 / FormValidationActivity.kt
Last active March 19, 2023 01:30
Data Binding + LIve Data Form Validation
import android.os.Bundle
import android.util.Log
import android.util.Patterns
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders
import works.wever.mvvm.R

Mettre en place une organisation agile 🎯

La méthode agile est une méthode d'organisation et de décomposition du travail qui permet de mieux suivre ses objectifs et d'avoir une vision globale sur un projet et sa complexité en général. La méthode que nous allons voir ici, s'appelle la méthode SCRUM.

Partie théorique

12 principes de la méthode Agile

  • Satisfaire le client en priorité
  • Accueillir favorablement les demandes de changement
  • Livrer le plus souvent possible des versions opérationnelles
  • Assurer une coopération permanente entre le client et l’équipe projet
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@cmatskas
cmatskas / GitDeleteCommands.ps1
Last active September 22, 2022 07:59
Git Delete Branch commands
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch

Python et l'injection de dépendance

Ah, ça... quand on parle d'injection et de dépendance, on s'attend tout de suite à se prendre une flopée de visiteurs en manque de substance plus ou moins illicites. En réalité, on va parler "pattern". Et surtout, je vais lancer un vieux pavé dans la marre en disant qu'en Python c'est pas super utile, ou du moins que le langage permet déjà de le gérer sans se faire mal.

Piqure de rappel

Conversation un matin au travail:

@hubgit
hubgit / README.md
Last active June 14, 2024 17:40
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files