Skip to content

Instantly share code, notes, and snippets.

View kkd927's full-sized avatar
πŸ‡°πŸ‡·

KyoungDeok Kwon kkd927

πŸ‡°πŸ‡·
  • Naver corp.
  • Seoul, South Korea
View GitHub Profile
{
"lotto":{
"lottoId":5,
"winning-numbers":[2,45,34,23,7,5,3],
"winners":[
{
"winnerId":23,
"numbers":[2,45,34,23,3,5]
},
{
@kkd927
kkd927 / IntersectionType.java
Created November 30, 2017 07:30
λžŒλ‹€μ™€ μΈν„°μ„Ήμ…˜ νƒ€μž…μ„ μ΄μš©ν•œ 동적인 κΈ°λŠ₯ν™•μž₯법
import java.util.function.Consumer;
import java.util.function.Function;
/**
* @see <a href="https://www.youtube.com/watch?v=PQ58n0hk7DI">ν† λΉ„μ˜ λ΄„ TV 4회 (2) Genericsμ—μ„œ μ™€μΌλ“œμΉ΄λ“œ ν™œμš©λ²•, λžŒλ‹€μ™€ μΈν„°μ„Ήμ…˜ νƒ€μž…μ„ μ΄μš©ν•œ 동적인 κΈ°λŠ₯ν™•μž₯법</a>
*/
public class IntersectionType {
interface Pair<T> {
T getFirst();
T getSecond();
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
to start miner (4 cores for BCN) use this command:
minergate-cli -user <YOUR@EMAIL.KAPPA> -bcn 4
Feel free to send some of your earnings to me:
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j
@kkd927
kkd927 / Matrix.java
Created January 15, 2018 01:58 — forked from benelog/Matrix.java
λ‚˜μ„ ν˜•λ°°μ—΄ 문제
package problems;
import static java.util.Arrays.*;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import java.util.function.Consumer;
/**
@kkd927
kkd927 / Installation.md
Created January 19, 2018 02:42 — forked from albertbori/Installation.md
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Overview

This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.

Most the credit for these changes go to Dave Holland.

Requirements

  • Mac OSX 10+
  • Administrator privileges