Skip to content

Instantly share code, notes, and snippets.

View Milchreis's full-sized avatar
🍏
Happy Coding!

Nick Milchreis

🍏
Happy Coding!
View GitHub Profile
@Milchreis
Milchreis / Links
Created March 25, 2021 07:15
Spring Boot JPA Query Creation
@Milchreis
Milchreis / example.pde
Created July 24, 2020 19:53
UiBooster - button example
import uibooster.*;
import uibooster.model.*;
FilledForm form;
int counter = 0;
void setup() {
size(800, 400);
rectMode(CENTER);
@Milchreis
Milchreis / processing_example1.pde
Last active May 16, 2020 22:25
Image processing example
// Library: https://github.com/Milchreis/processing-imageprocessing
import milchreis.imageprocessing.*;
PImage img;
void setup() {
size(550, 800);
img = loadImage("... your image file here ...");
}
@Milchreis
Milchreis / strokes.pde
Created October 30, 2019 19:31
Stroke painted image
import milchreis.imageprocessing.*;
import milchreis.imageprocessing.utils.*;
// Configuration ////////////////////////
String yourPicture = "pic2.jpg";
int steps = 1000;
int lineLength = 4;
int alpha = 240;
int linesPerPixel = 4;
int gridSize = 3;
@Milchreis
Milchreis / Java-Maven-Cheat-Sheet.md
Last active April 14, 2020 11:30
Java Maven Cheat Sheet

Maven build artifact

mvn clean package

Maven put artifact to local repository (.m2)

mvn clean install

Show dependency updates

mvn versions:display-dependency-updates

Unused dependencies

Durch diese App werden keinerlei nutzerbezogene Daten gespeichert oder weitergegeben.
Datenschutzerklärung für die Nutzung von AdMob/Werbung
Unsere kostenlosen Anwendungen sind werbeunterstützt. Der Werbepartner der Apps ist AdMob Google Inc. Auf die Erhebung personenbezogener Daten durch AdMob Google Inc. haben wir keinerlei Einfluss. Hier gilt die Datenschutzerklärung von AdMob: http://de.admob.com/home/privacy. Für Werbeeinblendungen auf der Webseite nutzen wir den Werbepartner AdSense.
@Milchreis
Milchreis / curl.md
Created April 18, 2018 07:02 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@Milchreis
Milchreis / gist:a8c44e2d25ef6cb33a9f12f22d7626c9
Created April 10, 2018 08:39 — forked from begla/gist:1019993
Linear, bilinear and trilinear interpolation
public static float lerp(float x, float x1, float x2, float q00, float q01) {
return ((x2 - x) / (x2 - x1)) * q00 + ((x - x1) / (x2 - x1)) * q01;
}
public static float biLerp(float x, float y, float q11, float q12, float q21, float q22, float x1, float x2, float y1, float y2) {
float r1 = lerp(x, x1, x2, q11, q21);
float r2 = lerp(x, x1, x2, q12, q22);
return lerp(y, y1, y2, r1, r2);
}
@Milchreis
Milchreis / Esp8266-Test.ino
Created February 26, 2017 12:39
ESP8266 Starting sketch for requesting WIFI services
// This sketch is the result of found sketches to request a local wifi http service with the ESP8266.
#include "ESP8266WiFi.h"
// WiFi parameters to be configured
const char* ssid = "YOUR SSID";
const char* password = "YOUR WIFI PASSWORD";
const char* host = "HOST-ADDRESS"; // no http:// and no subaddress
const int httpPort = 8000; // port of your service
@Milchreis
Milchreis / catPdf.sh
Created June 13, 2016 19:46
Concatenates different pdf files into one single file (with GUI)
#!/bin/bash
# ========================================================================
# Author: Milchreis
# Description: Concatenates different pdf files into one single file with GUI
# Date: 2016-05-13
# Dependencies: zenity, pdftk
# Tested and used on ubuntu and linux mint
# ========================================================================