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 / Res.java
Created February 14, 2022 03:03
RSA Example
package com.example.rsa;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.nio.charset.StandardCharsets;
import java.security.*;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
@wicksome
wicksome / custom.less
Last active October 22, 2024 03:52
TaskPaper Stylesheet
// Base Size
@base-font-size: 15;
@user-font-size: (1.1 * $USER_FONT_SIZE);
@ui-scale: @user-font-size / @base-font-size;
// UI Colors
@tint-color: rgb(70%,84%,99%);
@background-color: rgb(100%,100%,100%);
@wicksome
wicksome / README.md
Last active November 14, 2019 08:14
get total count of specific digit(0~9) from 1 to number
@wicksome
wicksome / Solution.java
Created November 8, 2019 03:36
Get gcd, lcm
publi class Solution {
public int[] solution(int n, int m) {
int[] answer = {gcd(n, m), lcm(n, m)};
return answer;
}
private int gcd(int a, int b) { // 최대공약수
while (b > 0) {
int tmp = a;
a = b;
@wicksome
wicksome / Dockerfile
Last active October 29, 2019 11:30
Dockerfile: Jenkins with Ansible
FROM jenkins/jenkins:latest
LABEL maintainer="Yeongjun.kim <[email protected]>"
LABEL title="Docker with Ansible"
# https://github.com/ansible/ansible/releases
ARG ansible_version=2.8.6
USER root
RUN echo ${ansible_version}
RUN cd /root && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
@wicksome
wicksome / app.jsx
Created September 5, 2019 06:46
React Hooks Example for multiple checkbox and all checking button. https://jsfiddle.net/yeongjun_kim/1wytdenz/
// import React, { useState } from "react"
const Item = { KEY1: 0, KEY2: 1 }
const App = props => {
const [items, setItems]=React.useState({
all: false,
checked: new Set(),
});
@wicksome
wicksome / git-finish
Last active May 7, 2020 12:45
The 'git-finish' is 'git-flow finish' helper command using git-flow and git commands.
#!/usr/bin/env bash
# Set current branch to variable
WORKING_BRANCH=$(git rev-parse --abbrev-ref HEAD)
# Check branch name
if [ -z "$1" ]; then
echo "usage: git-finish <refspec>"
exit 1
fi
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Stream;
import org.junit.Test;
import org.slf4j.Logger;
import org.springframework.web.client.AsyncRestTemplate;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
@wicksome
wicksome / README.md
Last active March 5, 2019 01:24
custom keymap for hhkb
@wicksome
wicksome / BTTShortcutModifierKeys
Created March 4, 2019 11:48
BTTShortcutModifierKeys
# BTTShortcutModifierKeys
# https://community.folivora.ai/t/could-you-provide-a-formula-for-determining-keyboard-shortcuts-values/3606
1048576 cmd
131072 shift
1179648 shift+cmd
1441792 shift+control+cmd
524288 opt
655360 opt+shift
1703936 opt+shift+cmd
1572864 opt+cmd