Skip to content

Instantly share code, notes, and snippets.

@gferon
gferon / README.md
Created April 12, 2019 07:48
systemd unit file for sccache

After installing sccache, drop this file in ~/.config/systemd/user/, then:

systemctl --user daemon-reload
systemctl enable --now sccache
@gferon
gferon / PaginationSkin.java
Created January 24, 2013 19:16
The PaginationSkin.java class from OpenJFX 2.2.2 controls/rt without the page flip animation. It's quite barbaric right now, but I needed a quick fix. I'll refactor the class to remove everything dealing with the page flip animation later.
/*
* Copyright (c) 2012, 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.
*
@gferon
gferon / e(fx)clipse project generation with Gradle
Created January 15, 2013 07:48
Overriding the main task from Gradle's eclipse plugin to generate a .project and .classpath files compatible with e(fx)clipse.
eclipse {
project {
natures 'org.eclipse.jdt.core.javanature', 'org.eclipse.xtext.ui.shared.xtextNature'
buildCommand 'org.eclipse.jdt.core.javabuilder'
buildCommand 'org.eclipse.xtext.ui.shared.xtextBuilder'
}
classpath {
containers 'at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER'
}