Skip to content

Instantly share code, notes, and snippets.

View SlimerDude's full-sized avatar

Steve Eynon SlimerDude

View GitHub Profile
@SlimerDude
SlimerDude / FantomSyntax.fan
Created October 14, 2022 18:25
Example Fantom Syntax
/* Example Fantom Syntax
* =====================
* by Steve Eynon 2022
*
* Useful for checking syntax highlighter libraries.
*/
using util // using pod
using util::JsonInStream // using type
@SlimerDude
SlimerDude / f4-darkula-theme.epf
Created October 23, 2021 09:45
Darkula Theme (Dark) for Fantom F4 IDE
# Dark Mode Theme for Fantom F4 IDE
# - https://github.com/xored/f4
#
# Donated by skewty - Oct 2021
# - https://github.com/skewty
#
# Based on the Darkula theme for JetBrains
#
# To use, go to Window -> Preferences -> General -> Appearance
# - enable theming
@SlimerDude
SlimerDude / f4-doom-vibrant-theme.epf
Last active October 22, 2021 18:54
Doom Vibrant Theme (Dark) for Fantom F4 IDE
# Dark Mode Theme for Fantom F4 IDE
# - https://github.com/xored/f4
#
# by SlimerDude - Oct 2021
#
# Based on the "doom-vibrant" theme for Doom Emacs
# - https://github.com/hlissner/emacs-doom-themes
#
# To use, go to Window -> Preferences -> General -> Appearance
# - enable theming
@SlimerDude
SlimerDude / -readme.markdown
Created June 28, 2020 18:15
SkyArc Licence Helper for StackHub Products

SkyArc License Helper for StackHub Products

A helper class that finds valid StackHub licences on SkyArc systems. Note that the StackHubLic class and extension disabling is only available in SkySpark 3.0.12 or later.

Copy and paste the Fantom class below into your SkyArc project.

Repeated calls to the findXXX() methods whittle down the number of valid licences until one is left. The remaining licence may be retrieved with get().

A LicErr is thrown should no licence match the given criteria. This may be caught to disable the containing SkyArc extension.

@SlimerDude
SlimerDude / Process2.fan
Created May 31, 2020 14:18
A better Process class for Fantom that constantly streams input
using [java] fanx.interop::Interop
using [java] java.lang::IllegalThreadStateException as JIllegalThreadStateException
using [java] java.lang::Process as JProcess
using [java] java.lang::ProcessBuilder as JProcessBuilder
using [java] java.util::Map$Entry as JEntry
using concurrent::Actor
using concurrent::ActorPool
using afConcurrent::Synchronized
** Process manages spawning external OS processes.
@SlimerDude
SlimerDude / CheatSheet.fan
Last active January 9, 2018 10:05
Fantom Syntax Cheat Sheet
// this is a single line comment
/* multi-line comments
look like this! */
// an entire Fantom libraries can be imported with 'using' statements
using xml
// individual types can be imported as well