Skip to content

Instantly share code, notes, and snippets.

View polentino's full-sized avatar
💭
/honk

Diego Casella polentino

💭
/honk
View GitHub Profile
@polentino
polentino / openapi.json
Created September 20, 2022 06:09
[BUG][scala-sttp] using APIKeyQuery and APIKeyHeader simultaneously generates invalid code
{
"openapi": "3.0.2",
"info": {
"title": "Sample ApPI",
"version": "0.1.0"
},
"paths": {
"/entities/": {
"get": {
"responses": {
@polentino
polentino / scalaio-talks-extractor.js
Created October 30, 2017 16:18
A quick and dirty javascript code to extract English talks from Scala.io website, and save it into a file 'talk-list.txt' to share to your colleagues/friends.
var talks = $("li.talk").filter(function() {
return $(this).css('background-image').indexOf('en.svg') != -1;
});
var summary = "";
$.each(talks, function(idx, talk) {
summary += '[' + idx + '] ' + $(talk).find('a.talk-title').text();
summary += '\n\tDescription: ' + $(talk).find('> div').text();
summary += '\n\n';