Skip to content

Instantly share code, notes, and snippets.

View enogylop's full-sized avatar

André Pitié enogylop

View GitHub Profile
@enogylop
enogylop / index.html
Created January 12, 2022 21:31
Tinder swipe cards
<div class="tinder">
<div class="tinder--status">
<i class="fa fa-remove"></i>
<i class="fa fa-heart"></i>
</div>
<div class="tinder--cards">
<div class="tinder--card">
<img src="https://placeimg.com/600/300/people">
<h3>Demo card 1</h3>
@enogylop
enogylop / deepl_for_google_sheets.txt
Last active January 30, 2024 07:06
Deepl script for google sheets
function deepl(value1, value2, value3) {
var url = `https://api-free.deepl.com/v2/translate?auth_key=xxxx-xxxx-xxxx-xxxx-xxxx&text=${value1}&target_lang=${value3}&source_lang=${value2}`;
var response = UrlFetchApp.fetch(url);
var json = response.getContentText();
var data = JSON.parse(json);
return data.translations && data.translations.length > 0 ? data.translations[0].text : "No value";
// replace auth_key with a "Deepl for developer" API key
// source : this script is a modified version of
// http://5.9.10.113/67485395/google-sheets-custom-function-to-translate-with-deepl-api-not-working-as-expecte
}