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
  • SouthOfKorea
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
{
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를 사용하면 편리합니다.
- 코드를 메모하는 경우
- 다른 사람에게 샘플 코드를 보여 주는 경우