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();
};
// 귀엽다 귀엽-다 귀여운 귀엽-지 귀엽-고 귀여워-서 귀여워 귀여웠-다 귀여운 귀여우-면 귀여울-것 귀엽습-니다 귀여웁-니다 귀여움
javascript:void(a=window.frames.NetFunnel,a.RTYPE_CHK_ENTER=a.RTYPE_SET_COMPLETE);
@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;
@sokcuri
sokcuri / Twitter_Win10App_URL_Extraction.txt
Created April 20, 2016 23:56
트위터 윈도우 10 앱 내부에서 추출한 URL들입니다
https://twitter.com/settings/security
https://twitter.com/settings/security/update
https://twitter.com/settings/password
https://twitter.com/settings/passwords/update
https://twitter.com/account/access_password_reset
https://twitter.com/account/send_password_reset
https://twitter.com/account/reset_email_sent
https://twitter.com/account/send_password_reset?did_not_receive=true
https://twitter.com/settings/notifications
https://twitter.com/settings/notifications/update
@sokcuri
sokcuri / key.md
Last active July 9, 2022 10:39
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

{
"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 / ServerTime.js
Last active July 27, 2017 23:49
Calculate and Show ServerTime (Tested Chrome)
function e(){if(typeof clocks!='undefined')return;var sokcuri="Sokcuri ServerTime";var url="https://gist.github.com/";var div=document.createElement('div');div.id="clocks";div.style.position='fixed';div.style.width='100%';div.style.top='0';div.style.height='150';div.style.pointerEvents='none';div.style.backgroundColor='rgba(200, 200, 200, 0.4)';div.innerHTML='서버시간을 얻어오는 중..';div.style.zIndex='99999';div.style.fontSize='40px';if(document.getElementsByTagName('body').length){document.body.appendChild(div);}else{document.head.outerHTML+=div.outerHTML;} function leadingZeros(n,digits){var zero='';n=n.toString();if(n.length<digits){for(i=0;i<digits-n.length;i++)zero+='0';} return zero+n;} var sec;var curr;var curr_sys;var cont=true;var nget=0;function getsrvTime(){delay=0;if(nget>=200) {clocks.innerHTML="서버시간을 얻어오는데 실패했습니다";return 0;} if(window.XMLHttpRequest){var req=new XMLHttpRequest();req.open('HEAD',window.location.href.toString()+'?&_='+new Date().getTime(),true);req.setRequestHeader("Content-Type","text/htm

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: