Skip to content

Instantly share code, notes, and snippets.

View wicksome's full-sized avatar
🪐
programming happily everyday

yeongjun.kim wicksome

🪐
programming happily everyday
View GitHub Profile
@wicksome
wicksome / RadixSort.java
Last active October 30, 2015 23:32
Implementation of RadixSort in Java.
package kr.opid.sorting;
import java.util.LinkedList;
import java.util.Queue;
public class RadixSort {
public static void main(String[] args) {
int[] array = new int[10];
array[0] = 33;
array[1] = 11;
@wicksome
wicksome / ShortestPaths.java
Last active October 30, 2015 15:35
Implementation of Dijkstra Shortest Paths in Java.
package kr.opid.algorithm;
import java.util.ArrayList;
import java.util.Stack;
/**
* @author Yeong-jun
*
*/
public class ShortestPaths {
@wicksome
wicksome / pipp.simpleflash.md
Created February 10, 2017 02:04
개인정보처리방침-SimpleFlash

개인정보처리방침

Personal Information Processing Policy

Simple Flash 개인정보 처리방침은 아래와 같습니다.

어플리케이션에 사용되는 회원님의 개인정보는 서비스의 원활한 제공을 위하여 회원님이 어플의 사용목적 범위 내에서만 이용됩니다. 법령에 의하거나 별도로 동의하지 않은 한 회원님의 개인정보를 제3자에게 제공하는 일은 결코 없으므로 안심하셔도 좋습니다.

해당 어플리케이션 내에서 다음과 같은 접근 권한을 사용자에게 요구합니다.

@wicksome
wicksome / test.puml
Last active September 20, 2017 03:42
test
Bob -> Alice : hello
Alice -> Bob : Go Away
@wicksome
wicksome / git_find_branches
Last active July 2, 2018 00:46
Find git branches from sub directories
#!/bin/bash
function git_find_branches()
{
if [[ -z "$1" ]]; then
echo "Usage: $FUNCNAME <branch>" >&2
return 1
fi
if [[ -z "$2" ]]; then
@wicksome
wicksome / JacksonWithValueAndBuilderOfLombokTest.java
Last active August 7, 2018 11:09
lombok(Value, Builder) + jackson
@Value
@Builder
class ValueTest1 {
private String data1;
private Integer data2;
private int data3;
@JsonCreator
private ValueTest1(@JsonProperty("data1") String data1, @JsonProperty("data2") Integer data2, @JsonProperty("data3") int data3) {
this.data1 = data1;
@wicksome
wicksome / simple.test.js
Created September 14, 2018 10:02
Simple Test Case Code
const TEST = {};
function assertEquals(expected, actual) {
if (expected !== actual)
throw new Error(
`Not equals.\nExpected :${expected}[39m\nActual :${actual}`
);
}
function RunAllTest() {
@wicksome
wicksome / tree1.js
Last active January 22, 2019 05:19
create tres structure
// sorted data
var resData = [
{ id: "1", level: 1 },
{ id: "2", level: 1 },
{ id: "2-1", level: 2 },
{ id: "2-1-1", level: 3 },
{ id: "2-2", level: 2 },
{ id: "3", level: 1 },
{ id: "3-1", level: 2 },
{ id: "3-1-1", level: 3 },
@wicksome
wicksome / RadioWithRouter.vue
Created December 20, 2018 11:21
Bind router state to the radio button in vue
<template>
<input
:checked="$route.name === 'groups'"
type="radio"
@change="$router.push({name: 'groups'})"
>
<input
:checked="$route.name === 'groups-member'"
type="radio"
@change="$router.push({name: 'groups-member'})"
@wicksome
wicksome / highlight.js
Created January 17, 2019 14:27
highlight method(case insensitive, escape, etc...)
export const escapeHtml = string => string.replace(/[&<>"'/`=]/g, s => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;",
"/": "&#x2F;",
"`": "&#x60;",
"=": "&#x3D;",
})[s]);