Skip to content

Instantly share code, notes, and snippets.

@sndyuk
sndyuk / CustomConstraint.java
Last active September 24, 2021 13:03
Bean Validation
package sample;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@sndyuk
sndyuk / README.md
Last active August 30, 2015 23:05
Rubik's Cube 3x3 Solver

Input order:

            000102
            030405
            060708
    091011 363738 272829 454647
    121314 394041 303132 484950
    151617 424344 333435 515253
            181920

212223

package jp.co.aflac.util;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
@sndyuk
sndyuk / qubo_tutorial.ipynb
Last active February 16, 2023 18:15
QUBO Tutorial - Quadratic unconstrained binary optimization
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.