Skip to content

Instantly share code, notes, and snippets.

Avatar
🌅
Happy

Leonis LeonisX

🌅
Happy
View GitHub Profile
@tmazeika
tmazeika / caspian.css
Created Jun 2, 2015
JavaFX default Caspian style sheet.
View caspian.css
/*
* Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@loicdescotte
loicdescotte / Forcomptran.md
Last active Aug 14, 2020
Scala for comprehension translation helper
View Forcomptran.md

Scala for comprehension translation helper

"For comprehension" is a another syntaxe to use map, flatMap and withFilter (or filter) methods.

yield keyword is used to aggregate values in the resulting structure.

This composition can be used on any type implementing this methods, like List, Option, Future...

View HTMLEditorCustomizationSample.java
import java.util.List;
import java.util.regex.Pattern;
import javafx.application.*;
import javafx.collections.FXCollections;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.effect.*;
import javafx.scene.image.*;
import javafx.scene.web.HTMLEditor;
You can’t perform that action at this time.