Skip to content

Instantly share code, notes, and snippets.

⭐ Total Stars: 27
➕ Total Commits: 104,756
🔀 Total PRs: 44
🚩 Total Issues: 52
📦 Contributed to: 8
🌞 Morning 142 commits █████▋░░░░░░░░░░░░░░░ 27.1%
🌆 Daytime 85 commits ███▍░░░░░░░░░░░░░░░░░ 16.2%
🌃 Evening 253 commits ██████████▏░░░░░░░░░░ 48.3%
🌙 Night 44 commits █▊░░░░░░░░░░░░░░░░░░░ 8.4%
@ParkMinKyu
ParkMinKyu / IndexedDB.js
Last active October 1, 2020 03:12
IndexedDB plugin
/*!
* indexedDB Plugin v0.0.1
* License: https://github.com/ParkMinKyu/diary/blob/master/LICENSE
* (c) 2017 niee
*/
var IndexedDB = {
indexedDB: window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB,
schemaName: null,
dataBaseName: null,
checkDB: function () {
@ParkMinKyu
ParkMinKyu / LatLngToXY
Created September 13, 2016 23:44
공공데이터 날씨 좌표 변환
public class LatLngToXY {
static final float RE = 6371.00877f; // 지구 반경(km)
static final float GRID = 5.0f; // 격자 간격(km)
static final float SLAT1 = 30.0f; // 투영 위도1(degree)
static final float SLAT2 = 60.0f; // 투영 위도2(degree)
static final float OLON = 126.0f; // 기준점 경도(degree)
static final float OLAT = 38.0f; // 기준점 위도(degree)
static final float XO = 43f; // 기준점 X좌표(GRID)
static final float YO = 136f; // 기1준점 Y좌표(GRID)
@ParkMinKyu
ParkMinKyu / Scheduler.js
Last active January 9, 2016 04:36
M.D.T Front Scheduler Object Sample
var Scheduler = {
calendar : $('#calendar'),
events : {},
getEvent : function(){
//서버에서 달력에 표시된 시작일~ 종료일 까지의 일정을 가져와서 fullcalendar에 표시(공통)하고 events배열에 등록(공통)
},
addEvent : function(event){
//클라이언트에서 등록한 일정을 서버에 입력 요청 하고 fullcalendar에 표시(공통)하고 events배열에 등록(공통)
},
modEvent : function(event){
@ParkMinKyu
ParkMinKyu / sample.java
Created September 17, 2015 12:03
google api 주소 좌표전환 샘플
package com.niee.restful.web.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLEncoder;
import javax.servlet.http.HttpServletResponse;
@ParkMinKyu
ParkMinKyu / array.java
Created August 19, 2015 00:15
배열 예제
public class 배열{
public static void main(String args[]){
int a [] = new int[4];
System.out.println("Array a length : " + a.length);
for(int i = 0 ; i < a.length ; i++){
a[i] = (i + 10);
}
for(int i = 0 ; i < a.length ; i++){
System.out.println("a[" + i + "] : " + a[i]);
@ParkMinKyu
ParkMinKyu / Test.java
Created August 11, 2015 01:01
조건문과 반복문
public class Test {
public static void main(String[] args) {
boolean b = false;
if(b){
System.out.println(true);
}else{
System.out.println(false);
}
@ParkMinKyu
ParkMinKyu / 계산기.java
Created August 7, 2015 02:45
계산기 완성본
class 계산기{
//값두개를 받는다.(int a, int b)
void 덧셈(int a, int b){
int c = a + b;
System.out.println("a+b=" + c);
}
void 빼기(int a, int b){
//값을 두개 받는다.
//뺀다
@ParkMinKyu
ParkMinKyu / first.java
Last active August 29, 2015 14:26
티스토리 자바 기초_3 기본 자료형을 이용한 사칙연산 샘플
class 계산기{
//값두개를 받는다.(int a, int b)
void 덧셈(int a, int b){
int c = a + b;
System.out.println("a+b=" + c);
}
void 빼기(){
//값을 두개 받는다.
//뺀다