Skip to content

Instantly share code, notes, and snippets.

package sample.blinking;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.css.PseudoClass;
import javafx.scene.Scene;
@ouaibsky
ouaibsky / gist:3cd537b574df6466b8b7ff34349ef954
Created September 6, 2016 09:32
pjp: annotation + interface +method
@AfterReturning("this(org.springframework.data.jpa.repository.JpaRepository) "+
"&& @target(org.javers.spring.annotation.JaversSpringDataAuditable) "+
"&& execution(public * saveAndPublish(..)) ")
public void onSaveExecutedJpaRepo(JoinPoint pjp) {
onVersionEvent(pjp, saveHandler);
}
@ouaibsky
ouaibsky / java
Created September 28, 2015 20:17
reverse dns
try {
final String ip = "83.231.226.12";//"173.194.40.143";
//InetAddress inetAddr = InetAddress.getByName("192.168.0.255");
InetAddress inetAddr = InetAddress.getByName(ip);
// Get the host name
String hostname = inetAddr.getHostName();
// Get canonical host name