Skip to content

Instantly share code, notes, and snippets.

View kinathru's full-sized avatar

Kinath Rupasinghe kinathru

View GitHub Profile
// --------------------------------------
// i2c_scanner
//
// Version 1
// This program (or code that looks like it)
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not know.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
// MPU-6050 Accelerometer + Gyro
// -----------------------------
//
// By arduino.cc user "Krodal".
//
// June 2012
// first version
// July 2013
// The 'int' in the union for the x,y,z
// changed into int16_t to be compatible
@kinathru
kinathru / SURFDetector.java
Created August 6, 2016 13:14
OpenCV Java implementation of SURF example
package com.dummys.learning;
import org.opencv.calib3d.Calib3d;
import org.opencv.core.*;
import org.opencv.features2d.*;
import org.opencv.highgui.Highgui;
import java.io.File;
import java.util.LinkedList;
import java.util.List;
package com.kinath.interwar;
/**
* Created by Kinath on 3/15/2017.
*/
public interface IGroundService
{
public String getMessage();
}
package com.kinath.interwar;
/**
* Created by Kinath on 3/15/2017.
*/
public class ServiceHandler
{
private static IGroundService iGroundService;
public static IGroundService getiGroundService()
package com.kinath.interwar;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by Kinath on 3/15/2017.
*/
package com.kinath.interwar;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by Kinath on 3/15/2017.
*/
package com.kinath.interwar;
import org.springframework.context.annotation.Configuration;
/**
* Created by Kinath on 3/15/2017.
*/
@Configuration
public class GroundServiceConfig
{
package com.kinath.interwar;
import java.lang.reflect.Method;
/**
* Created by Kinath on 3/15/2017.
*/
public class GroundServiceAdapter implements IGroundService
{
public String getMessage()
<dependency>
<groupId>com.kinath.interwar</groupId>
<artifactId>common-lib</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>