Skip to content

Instantly share code, notes, and snippets.

View soetz's full-sized avatar
📎
Trying to revive Clippy

Simon soetz

📎
Trying to revive Clippy
View GitHub Profile
@soetz
soetz / script.gs
Created June 10, 2019 22:05
Compteur de caractères pour le mémoire de stage
function onOpen() {
DocumentApp.getUi().createMenu('Word count').addItem('Count', 'showCount').addToUi();
}
function showCount() {
var text = DocumentApp.getActiveDocument().getBody().getText();
var count = countCharacters(text);
var completion = Math.round(1000 * count/53000)/10;
DocumentApp.getUi().alert(