Skip to content

Instantly share code, notes, and snippets.

View seong-min-s's full-sized avatar
๐ŸŽฏ
Focusing

CHOE Seong-min seong-min-s

๐ŸŽฏ
Focusing
View GitHub Profile
@seong-min-s
seong-min-s / Program.cs
Created March 4, 2021 00:23
์ „์ฒ˜๋ฆฌ ์ฝ”๋“œ
using System;
using System.IO;
using System.Data;
using HtmlAgilityPack;
namespace Preprocessing
{
class Program
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seong-min-s
seong-min-s / softmax.py
Created September 4, 2020 02:42
softmax
import numpy as np
def softmax(x):
return np.exp(x)/np.sum(np.exp(x))
input_signal = np.random.randn(5)+2
output_signal = softmax(input_signal)
print("input_signals : {}".format(input_signal))
print("output_signals : {}".format(output_signal))
@seong-min-s
seong-min-s / CalculateHash65599.cpp
Created February 14, 2020 02:20
x65599 ํ•ด์‹œ ํ•จ์ˆ˜(SDBM project)
//ref : Compilers: Principle, Techniques., and Tools)
public static uint CalculateHash65599(string str)
{
uint hash = 0;
for(int i=0; i<str.Length; ++i)
{
hash = 65599 * hash + str[i];
}
@seong-min-s
seong-min-s / c_str.cpp
Last active August 29, 2019 11:48
string ํ•จ์ˆ˜ ์ •๋ฆฌ
// strings and c-strings
#include <iostream>
#include <cstring>
#include <string>
int main ()
{
std::string str ("Please split this sentence into tokens");
char * cstr = new char [str.length()+1];
@seong-min-s
seong-min-s / ์„คํƒ•๋ฐฐ๋‹ฌ.cpp
Last active August 28, 2019 03:31
๋ฐฑ์ค€ 2839๋ฒˆ ์„คํƒ•๋ฐฐ๋‹ฌ
#include<iostream>
using namespace std;
int main(void)
{
int n, p, q, r;
cin >> n;
p = n / 5;
q = n % 5;
@seong-min-s
seong-min-s / GistGuide.rb
Created November 10, 2018 04:36
Gist Guide
# Gist๋Š” ๊ฐ„๋‹จํ•œ ์ฝ”๋“œ๋ฅผ ๊ด€๋ฆฌ, ๊ณต์œ ํ•˜๊ณ  ์‹ถ์„ ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค. ์ €์ž๋„ ๊ฐ„๋‹จํ•œ ์Šคํฌ๋ฆฝํŠธ ๋“ฑ์€ Gist๋กœ ์ž‘์„ฑํ•ด์„œ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค.
๋ณ€๊ฒฝ ๋‚ด์—ญ๋„ ์ž๋™์œผ๋กœ ๊ธฐ๋ก๋˜๋ฉฐ Fork๋„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ์ƒ˜ํ”Œ ์ฝ”๋“œ๋ฅผ ๋ณด์—ฌ์ค„ ๋•Œ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค.
Gist๋กœ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋ฉด ์‰ฝ๊ฒŒ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ, ์–ด๋–ค ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ–ˆ๋Š”์ง€ ์„ ํƒํ•ด ์ฃผ๋ฉด, Syntex Hightlight๋„ ์ ์šฉ ๋ฉ๋‹ˆ๋‹ค.
Gist๋Š” ์ƒ˜ํ”Œ ์†Œ์Šค ์ฝ”๋“œ ๋˜๋Š” ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋ฅผ ๊ณต์œ ํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ž…๋‹ˆ๋‹ค.
์ €์ž์˜ ๊ฒฝ์šฐ, ํšŒ์‚ฌ ์‚ฌ๋‚ด ์ฑ„ํŒ…์œผ๋กœ ์ฝ”๋“œ๋ฅผ ๋ณด๋‚ด๋ฉด ์ฝ๊ธฐ๋„ ํž˜๋“ค๊ณ  ์ฑ„ํŒ…์ด ๋”๋Ÿฌ์›Œ์ง€๋ฏ€๋กœ Gist์— ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๊ณ  ๋™๋ฃŒ์™€ URL์„ ๊ณต์œ ํ•  ๋•Œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
๊ทธ ์™ธ์—๋„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ผ์ƒ์ ์ธ ๊ฒฝ์šฐ์—๋„ Gist๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํŽธ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
- ์ฝ”๋“œ๋ฅผ ๋ฉ”๋ชจํ•˜๋Š” ๊ฒฝ์šฐ
- ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ์ƒ˜ํ”Œ ์ฝ”๋“œ๋ฅผ ๋ณด์—ฌ ์ฃผ๋Š” ๊ฒฝ์šฐ