This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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]; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main(void) | |
{ | |
int n, p, q, r; | |
cin >> n; | |
p = n / 5; | |
q = n % 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gist๋ ๊ฐ๋จํ ์ฝ๋๋ฅผ ๊ด๋ฆฌ, ๊ณต์ ํ๊ณ ์ถ์ ๋ ์ฌ์ฉํ๋ ๊ธฐ๋ฅ์ ๋๋ค. ์ ์๋ ๊ฐ๋จํ ์คํฌ๋ฆฝํธ ๋ฑ์ Gist๋ก ์์ฑํด์ ๊ณต์ ํฉ๋๋ค. | |
๋ณ๊ฒฝ ๋ด์ญ๋ ์๋์ผ๋ก ๊ธฐ๋ก๋๋ฉฐ Fork๋ ํ ์ ์์ต๋๋ค. ๋ค๋ฅธ ์ฌ๋๋ค์๊ฒ ์ํ ์ฝ๋๋ฅผ ๋ณด์ฌ์ค ๋ ์ ์ฉํฉ๋๋ค. | |
Gist๋ก ์ฝ๋๋ฅผ ์์ฑํ๋ฉด ์ฝ๊ฒ ๊ณต์ ํ ์ ์์ต๋๋ค. ๋ํ, ์ด๋ค ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ ์ฌ์ฉํ๋์ง ์ ํํด ์ฃผ๋ฉด, Syntex Hightlight๋ ์ ์ฉ ๋ฉ๋๋ค. | |
Gist๋ ์ํ ์์ค ์ฝ๋ ๋๋ ์๋ฌ ๋ฉ์์ง๋ฅผ ๊ณต์ ํ ๋ ์ฌ์ฉํ๋ ๊ฐ๋จํ ์น ์ ํ๋ฆฌ์ผ์ด์ ์ ๋๋ค. | |
์ ์์ ๊ฒฝ์ฐ, ํ์ฌ ์ฌ๋ด ์ฑํ ์ผ๋ก ์ฝ๋๋ฅผ ๋ณด๋ด๋ฉด ์ฝ๊ธฐ๋ ํ๋ค๊ณ ์ฑํ ์ด ๋๋ฌ์์ง๋ฏ๋ก Gist์ ์ฝ๋๋ฅผ ์์ฑํ๊ณ ๋๋ฃ์ URL์ ๊ณต์ ํ ๋ ์ฌ์ฉํฉ๋๋ค. | |
๊ทธ ์ธ์๋ ๋ค์๊ณผ ๊ฐ์ ์ผ์์ ์ธ ๊ฒฝ์ฐ์๋ Gist๋ฅผ ์ฌ์ฉํ๋ฉด ํธ๋ฆฌํฉ๋๋ค. | |
- ์ฝ๋๋ฅผ ๋ฉ๋ชจํ๋ ๊ฒฝ์ฐ | |
- ๋ค๋ฅธ ์ฌ๋์๊ฒ ์ํ ์ฝ๋๋ฅผ ๋ณด์ฌ ์ฃผ๋ ๊ฒฝ์ฐ |