Skip to content

Instantly share code, notes, and snippets.

🕑
busy with earning money and not having that much time

Danny Althoff FibreFoX

🕑
busy with earning money and not having that much time
Block or report user

Report or block FibreFoX

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@FibreFoX
FibreFoX / Vagrantfile
Last active Jul 28, 2017
Debain Stretch VM with Vagrant on Windows 10 and Virtualbox
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/stretch64"
config.vm.hostname = "some-vm"
## when using non-"contrib-" boxes from debian
## do NOT use rsync: https://stackoverflow.com/a/34882657/1961102
## override speficied type to use type "virtualbox" (default on debian-boxes are rsync)
@FibreFoX
FibreFoX / SomeJavaFXClassWithCDI.java
Created Jan 8, 2015
After some research if found a way to have a "slashscreen" within javafx 8 using native-bundle (and having CDI via OWB and Deltaspike)
View SomeJavaFXClassWithCDI.java
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.concurrent.Task;
import javafx.event.ActionEvent;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javax.inject.Inject;
public class SomeJavaFXClassWithCDI extends javafx.application.Application {
@FibreFoX
FibreFoX / removeThumbsDB.js
Last active Aug 29, 2015
Remove thumbs.db (annoying windows-specific thumbnail-cache) from all subfolders with PhantomJS (1.9.8)
View removeThumbsDB.js
var fs = require('fs');
// --------------------------------------
// JS-fixes
if (!String.prototype.endsWith) {
console.log("fixing String-prototype (endsWith)");
Object.defineProperty(String.prototype, 'endsWith', {
enumerable: false,
configurable: false,
writable: false,
value: function (searchString, position) {
@FibreFoX
FibreFoX / jquery.isPartlyInViewPort.js
Created Mar 22, 2013
if you have jQuery and want to detect if something is partly shown, just use this here
View jquery.isPartlyInViewPort.js
function isPartlyInViewPort($entry){
var windowScrollTop = $(window).scrollTop();
var windowHeight = $(window).height();
var windowVisibleBottom = windowScrollTop + windowHeight;
var entryTop = $entry.offset().top;
var entryOuterHeight = $entry.outerHeight();
var entryVisibleBottom = entryTop + entryOuterHeight;
var isAboveViewPort = entryVisibleBottom < windowScrollTop;
var isBelowViewPort = windowVisibleBottom < entryTop;
@FibreFoX
FibreFoX / jquery.isTotallyInViewPort.js
Created Mar 19, 2013
if you have jQuery and want to detect if something is totally shown, just use this here
View jquery.isTotallyInViewPort.js
function isTotallyInViewPort($entry){
var windowScrollTop = $(window).scrollTop();
var windowHeight = $(window).height();
var windowVisibleBottom = windowScrollTop + windowHeight;
var entryTop = $entry.offset().top;
var entryOuterHeight = $entry.outerHeight();
var entryVisibleBottom = entryTop + entryOuterHeight;
var isInView = windowScrollTop < ( entryTop ) < (windowVisibleBottom);
if(!isInView) return false;
You can’t perform that action at this time.