Skip to content

Instantly share code, notes, and snippets.

View Sublimee's full-sized avatar
🔥
dev in progress

Maxim Gusev Sublimee

🔥
dev in progress
View GitHub Profile
@Sublimee
Sublimee / f-bounded-quantification.md
Last active July 18, 2025 13:49
F-bounded quantification / F-bounded polymorphism / recursively bounded quantification в Java

В Java есть встроенная поддержка F-bounded polymorphism. Как это выглядит синтаксически?

Если обратиться к примеру из статьи https://en.wikipedia.org/wiki/Bounded_quantification, то видим, что у нас есть возможность использовать Comparable как в сыром / не параметризованном (min), так и в типобезопасном стиле (fMin):

interface Comparable<T> {
    int compareTo(T other);
}

public class Test {
@Sublimee
Sublimee / Code.gs
Created June 5, 2025 17:50
Pomodoro Supreme For Google Sheets
function onOpen() {
const ui = SpreadsheetApp.getUi();
const menu = ui.createMenu("Pomodoro Supreme");
menu.addItem('Open', 'showTimer');
menu.addToUi();
}
function showTimer() {
var form = HtmlService.createHtmlOutputFromFile('Timer')
.setWidth(300)