Skip to content

Instantly share code, notes, and snippets.

@Liscare
Liscare / Hamming.java
Created July 28, 2021 08:47
Hamming 24/18 function in Java
/**
* Hamming function
*
* @author Liscare
* @version 1.0
*/
public class Hamming {
/**
* Transform 18 bits into 24 bits thanks to Hamming function.
*
@Liscare
Liscare / Code.gs
Created April 28, 2021 20:08
Sample code to create PDF files from a Google Sheet
const gSpreadsheet = SpreadsheetApp.openById('ID of your GSheet')
const gPdfSheet = gSpreadsheet.getSheetByName('Name of a sheet')
var gSaveToRootFolder = true
var gChoices = ["?", "?"];
var gEmail = "liscare2@protonmail.com";
/**
* Submit form handler.
* Generate a PDF file from a gsheet according to the responses (email address and data choice).
<?php
// src/EventListener/OracleDoctrineTypeMappingListener.php
namespace App\EventListener;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Events;
use Doctrine\Common\EventSubscriber;
/**