I hereby claim:
- I am jiunbae on github.
- I am jiunbae (https://keybase.io/jiunbae) on keybase.
- I have a public key whose fingerprint is 5588 48C3 6FB8 B5B9 CB85 17C8 260E B1CC 493F 6221
To claim this, I am signing this object:
def truncate(string: str, max_length: int, suffix: str = "...", include_suffix_length: bool = True, mode: str = "center"): | |
"""Truncate string | |
:param string: input string | |
:param include_suffix_length: include suffix length to max_length | |
:param max_length: if string length is bigger than max_length, than truncate | |
:param suffix: trucate string, replace remain string to suffix | |
:param mode: select in ['left', 'center', 'right'] | |
""" | |
if include_suffix_length: |
손코딩은 나쁜게 아닙니다. |
I hereby claim:
To claim this, I am signing this object:
## Author: Jiun Bae (2019/08/18) | |
## ## See also (https://github.com/jiunbae/ITE4053/tree/master/NumpyNeuralNetwork) | |
from typing import Optional, List, Union, Tuple, Iterable, Callable | |
from functools import reduce | |
import numpy as np | |
## Class Definition | |
# _Module |
/***************************************************************************** | |
MIT License | |
Copyright (c) 2017 Bae jiun, Maybe | |
@see also https://choosealicense.com/licenses/mit/ | |
*****************************************************************************/ |
package concurrent; | |
import java.util.Arrays; | |
import java.util.concurrent.LinkedBlockingQueue; | |
public class Pool { | |
private boolean terminate; | |
private final Worker[] workers; | |
private final LinkedBlockingQueue<Runnable> queue; |
#!/bin/python | |
''' | |
File name: draw.py | |
Author: Bae Jiun, Maybe | |
Date created: 10/27/2017 | |
Requirements: | |
- matplotlib | |
''' | |
from subprocess import Popen, PIPE |
#ifndef THREAD_POOL_H | |
#define THREAD_POOL_H | |
#include <vector> | |
#include <queue> | |
#include <memory> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <future> | |
#include <functional> |
from random import sample, uniform, randrange, shuffle | |
from time import sleep | |
def breed(mother, father): | |
fetus = mother[:randrange(len(mother))] | |
sperm = list(filter(lambda x: x not in fetus, father)) | |
return fetus + sperm | |
def fitness(array): | |
return len(list(filter(lambda x: x[0]==x[1], |
ta_debug.exe | |
115200 bytes | |
0 ms program start! | |
0 ms process start! | |
1054 ms vector generated! 1000000 | |
1318 ms vector swaped!! 100000 | |
3543 ms vector sorted! | |
3544 ms program done! | |
ta_debug_64.exe | |
157696 bytes |