Skip to content

Instantly share code, notes, and snippets.

View sokcuri's full-sized avatar

Sokcuri sokcuri

View GitHub Profile
// double_binary.cpp
// Search string vector to binary search
#include <vector>
#include <string>
#include <iostream>
using namespace std;
int main()
#ifndef __LINKLE_KOCONJ_H__
#define __LINKLE_KOCONJ_H__
class KoConj
{
public:
KoConj();
~KoConj();
};
// 귀엽다 귀엽-다 귀여운 귀엽-지 귀엽-고 귀여워-서 귀여워 귀여웠-다 귀여운 귀여우-면 귀여울-것 귀엽습-니다 귀여웁-니다 귀여움
@sokcuri
sokcuri / webpackjsonp_unpack.js
Created April 18, 2016 22:53
webpackjsonp로 패키지된 함수들을 콘솔에 출력합니다
webpackJsonp([0], {
0: function (e, t, n) {
var i = 0,
lib;
while (i < 2000) {
try {
lib = n(i);
}
catch (err) {
lib = null;
{
"rate_limit_context": {
"access_token": "*"
},
"resources": {
"profile_spotlight": {
"/profile_spotlight/show": {
"limit": 180,
"remaining": 180,
"reset": 1467248717
@sokcuri
sokcuri / lab9-1-1.py
Last active August 3, 2016 03:49
lab9-1: XOR을 위한 텐스플로우 딥넷트웍 https://www.youtube.com/watch?v=9i7FBbcZPMA&feature=youtu.be
import tensorflow as tf
import numpy as np
xy = np.loadtxt('train.txt', unpack=True)
x_data = xy[0:-1]
y_data = xy[-1]
X = tf.placeholder(tf.float32)
Y = tf.placeholder(tf.float32)
@sokcuri
sokcuri / test.json
Last active September 14, 2016 22:02
{
"hashKey": "17369498287f8de034801a9c0e3dc4ad7a613523"
}

Keybase proof

I hereby claim:

  • I am sokcuri on github.
  • I am sokcuri (https://keybase.io/sokcuri) on keybase.
  • I have a public key ASBGPO6bp5nFVmEhVPGZJFU4qD-uQZoqlyamsJZU0IXzzQo

To claim this, I am signing this object:

@sokcuri
sokcuri / DogBlocker_Filter_1.06.txt
Last active April 14, 2017 14:52
dogblocker v1.06
! Title: DogBlocker by 소쿠릿
! Version: 1.06
! Homepage: https://gist.github.com/sokcuri/2409dab915498993a3a155e45d6a48f1
dcinside.com###tit_no_adblock,.adblock-inner
This file has been truncated, but you can view the full file.
//Pre Filters
// 0.미인식 문자 치환 10000000~
// 1.기본 필터링 11000000~
// 2.예비1 12000000~
// 3.사투리 및 종결표현1 13000000~
// 4.감동사 & 관용어 14000000~
// 5.체언 15000000~ (대명사, 명사, 수사)
// 6.동사 16000000~
@sokcuri
sokcuri / 1_manual_map_and_filter.js
Last active July 11, 2017 00:01
한땀한땀 만든 수제 map과 filter입니다
var map = function(array, func) {
func = (func || (x => {
return x;
}));
let newArray = new Array();
for (let i = 0; i < array.length; i++) {
newArray[i] = func(array[i]);
}
return newArray;
}