Skip to content

Instantly share code, notes, and snippets.

View clawfire's full-sized avatar
🐻
Being cool

Thibault Milan clawfire

🐻
Being cool
View GitHub Profile
@clawfire
clawfire / Eurovision 2021 Candidate - Data.csv
Created April 14, 2021 20:14
Eurovision 2021 #opendata
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
Position,1st Semi,2nd Semi,Finale,Artist name,Country,Song Name,Song video URL,Lyrics_en,Lyrics_ov,Lyrics_credits,Music_credits,Site_Facebook,Site_Youtube,Site_Twitter,Site_Instagram,Site_Spotify,Site_Tiktok,Broadcaster,Candidate_description,source_URL
1,TRUE,FALSE,FALSE,The Roop,Lithuania,Discoteque,https://youtube.com/watch?v=0rsUJWSwb0c,,"Ok, I feel the rhythm.
Something’s going on here.
The music flows through my veins.
It's taking over me.
It's slowly kickin’ in.
My eyes are blinking
And I don’t know what is happening.
I can’t control it.
Don’t wanna end it.
@clawfire
clawfire / fragment.html
Created March 26, 2021 21:00
How to exclude a category from Jekyll loop and limit the number of posts
{% for post in site.posts limit: 6 %}
{% assign count = 0 %}
{% unless post.categories contains 'talks' %}
{% assign count = count+1 %}
{% unless count<=3 %}
{% include component__post-preview.html %}
{% endunless %}
{% endunless %}
{% endfor %}
function clearChecking() {
// On récupère la feuille Check-in
let checkingSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('🕰 Check-In');
// On selectionne cette feuille
SpreadsheetApp.setActiveSheet(checkingSheet);
// On utilise la fonction setFilter pour filtrer toute les valeurs qui sont TRUE
// En conséquence on ne verra plus que les FALSE et null
setFilter(3, ['TRUE']);
// On récypère toutes le n° des lignes qui ont été filtrées (donc = TRUE)
let checkingRows = getIndexesOfFilteredRows();
<iframe src="https://anchor.fm/essentiel-jose-sanchez/embed" height="102px" width="400px" frameborder="0" scrolling="no"></iframe>
def lambda_handler(event, context):
return "Hello %s" % event['username']
Verifying my Blockstack ID is secured with the address 1BKPjH3M6nrNBYRuC1UdXnoaNZmpxA2oJi https://explorer.blockstack.org/address/1BKPjH3M6nrNBYRuC1UdXnoaNZmpxA2oJi
@clawfire
clawfire / hello_world.go
Created January 31, 2019 18:56
Nuclio function hello world for Smile's innovation article about FaaS
package main
import (
"github.com/nuclio/nuclio-sdk-go"
)
func Handler(ctx *nuclio.Context, evt nuclio.Event) (interface{}, error) {
return nuclio.Response{
Body: []byte("Hello, from nuclio :]"),
}, nil
}
@clawfire
clawfire / hello_world.sh
Created January 31, 2019 18:55
Nuclio function hello world for Smile's innovation article about FaaS
echo "Hello world"
# yes... only that...
@clawfire
clawfire / hello_world.py
Created January 31, 2019 18:54
Nuclio function hello world for Smile's innovation article about FaaS
def hello(context, event):
context.Response(body="Hello world !")
@clawfire
clawfire / hello_world.py
Created January 31, 2019 18:53
Google Cloud function hello world for Smile's innovation article about FaaS
def hello_http(request):
return "Hello world !"