Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nigjo on github.
  • I am nigjo (https://keybase.io/nigjo) on keybase.
  • I have a public key whose fingerprint is 96DE C878 B069 8B31 89F0 66A4 61C7 C437 3D3F 1DC3

To claim this, I am signing this object:

@nigjo
nigjo / _update_local_mirror.cmd
Last active April 9, 2018 14:57
Create a local mirror of the Apache NetBeans Binary repository
@echo off
REM
REM Copyright 2018 Jens Hofschröer <netbeans-tools@nigjo.de>
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM http://www.apache.org/licenses/LICENSE-2.0
@nigjo
nigjo / brainstorm_nb_ant.md
Last active June 9, 2018 11:51
A brainstorming to introduce Ant extension-points to the NetBeans platform build system

The aim is to introduce <extension-point/> elements to the NetBeans Ant build scripts. [Extension points][manual_extensions] are introduced to Apache Ant in version 1.8. This is the minimum version to perform the build of the NetBeans Platform itself.

Analyze build

The build of a NetBeans Platform Module and a NetBeans Platform based module with Ant is a little bit different. The Platform itself uses the nbbuild-folder, the RCP Modules are using the harness folder. There is one script file, common.xml, which both have in common. The other files are in nbbuild or in apisupport.harness/release. Both build should work after the introduction of entry points.

@nigjo
nigjo / SimpleDocumentListener.java
Last active March 3, 2020 13:53
A DocumentListener as a functional interface. This interface aggregates all default methods of a DocumentListener to a single method. This is usefull if you don't care about the type of change in a JTextComponent.
//
// Attribution 4.0 International (CC BY 4.0)
// https://creativecommons.org/licenses/by/4.0/
//
// Original location:
// https://gist.github.com/nigjo/d14a29eab90a0a55f62228c2c71ecb03
//
package com.github.gist.nigjo;
import javax.swing.event.DocumentEvent;
@nigjo
nigjo / CliColor.java
Last active June 5, 2020 15:03
A class to make colored console applications.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@nigjo
nigjo / clicolor.cmd
Last active June 5, 2020 15:20
Set color Env-Vars for Windows Batch scripts. DO NOT COPY PASTE THIS GIST. You should download the file to preserve the ESC characters.
@echo off
REM
REM Licensed to the Apache Software Foundation (ASF) under one
REM or more contributor license agreements. See the NOTICE file
REM distributed with this work for additional information
REM regarding copyright ownership. The ASF licenses this file
REM to you under the Apache License, Version 2.0 (the
REM "License"); you may not use this file except in compliance
REM with the License. You may obtain a copy of the License at
REM
@nigjo
nigjo / _plot_build_commands.cmd
Last active June 28, 2020 09:40
Vanilla Minecraft Plot Builder - A windows batch file to generate all commands for a "user build plot" on a vanilla minecraft server. Generated Commands can be pasted to the server console or send via RCON or as .mcfunction
@echo off
REM (c) 2020 by Jens Hofschröer. Use at your own risk!
REM Licence: (CC BY-SA 4.0) https://creativecommons.org/licenses/by-sa/4.0/
REM Source: https://gist.github.com/nigjo/c0f672fba7374f43118f1cc96748e602
REM
REM to create a plot relative to current player (for datapack functions)
REM run this file with parameters
REM "11+halfx" 1 "11+halfz"
REM
REM replace with regex in resultfile:
@nigjo
nigjo / adjustSpacing.js
Last active September 6, 2020 14:05
a simple JavaScript function to fit some text to a parent via css letter-spacing
/*
* Copyright 2020 Jens Hofschröer.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@nigjo
nigjo / gedcom.js
Last active October 23, 2020 17:08
A Simple reader od gedcom data files in JavaScript
/*
* Copyright 2020 nigjo.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@nigjo
nigjo / button.lua
Last active January 31, 2021 14:44
A simple attempt to create UI Buttons in Löve.
-- The MIT License (MIT)
--
-- Copyright © 2021 Jens Hofschröer
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the “Software”), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions: