Java 

db 연결을 위한 공통 인터페이스 작성을 위해 자료를 찾아보다 링크를 걸어둠.

https://stackoverflow.com/questions/70689/what-is-an-efficient-way-to-implement-a-singleton-pattern-in-java

https://medium.com/@kevalpatel2106/how-to-make-the-perfect-singleton-de6b951dfdb0

 

가장 간단한 패턴이지만 막상 쓰려고 하면 여러가지 생각이 드는 패턴임

 

Java - rsa example

https://stackoverflow.com/questions/13990181/rsa-2048-encryption-decryption-exception

https://stackoverflow.com/questions/12471999/rsa-encryption-decryption-in-android

https://stackoverflow.com/questions/24338108/java-encrypt-string-with-existing-public-key-file

https://three-father-programming.tistory.com/11

 

 

Chart.js documetation

https://www.chartjs.org/docs/latest/charts/doughnut.html#styling

 

Javascript

https://stackoverflow.com/questions/25594478/different-color-for-each-bar-in-a-bar-chart-chartjs

function getRandomColor() {
    var letters = '0123456789ABCDEF'.split('');
    var color = '#';
    for (var i = 0; i < 6; i++ ) {
        color += letters[Math.floor(Math.random() * 16)];
    }
    return color;
}

 

https://stackoverflow.com/questions/52098989/how-to-put-dynamic-colors-for-pie-chart-chart-js

// Step 1
colors=[];

// Step 2
for(let i=0;i<this.data.length;i++){
      this.colors.push('#'+Math.floor(Math.random()*16777215).toString(16));
}

// Stap 3
data: data,
backgroundColor: this.colors
.....

 

 

+ Recent posts