Skip to content

Instantly share code, notes, and snippets.

View kimdwkimdw's full-sized avatar
๐Ÿƒโ€โ™‚๏ธ
Running & Learning

Arthur Kim kimdwkimdw

๐Ÿƒโ€โ™‚๏ธ
Running & Learning
View GitHub Profile
@deholic
deholic / linkedList.js
Created April 27, 2012 09:08
Javascript LinkedList (not tested!)
var node = function(text) {
var pointers = { _next: null };
var data = { text: null };
var _const = function() {
this.data.text = text;
};
if(!!text) _const();
return {
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@willurd
willurd / web-servers.md
Last active November 5, 2025 20:58
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
#77
for c in 5,5,4,3,2,0,2,3,4,5,5:s=(c*' 'or'*')+'* '[:6-c];print s+s[-2::-1]
@aronwc
aronwc / lda.py
Last active April 30, 2024 06:54
Example using GenSim's LDA and sklearn
""" Example using GenSim's LDA and sklearn. """
import numpy as np
from gensim import matutils
from gensim.models.ldamodel import LdaModel
from sklearn import linear_model
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import CountVectorizer
fig = plt.gcf()
fig.set_size_inches(width,height)
ax = plt.gca()
ax.set_yticks(ytics)
ax.set_ylim([0, y_max])
plt.bar(range(0,noTopics), Z[rank[:noTopics]], label='label={%s}'%(','.join(l_names)), color='y', alpha=0.5)
plt.legend(prop={'size':legend_size})
ax.set_xticks(np.arange(noTopics)+0.4)
@lifthrasiir
lifthrasiir / crypto.md
Last active November 14, 2023 07:10
High-level understanding of cryptography

๊ณ ์ˆ˜์ค€์—์„œ ์•”ํ˜ธํ•™ ์ดํ•ดํ•˜๊ธฐ

์ด ๊ธ€์€ ๋ฉ”์•„๋ฆฌ ์ €๋„์— ์“ธ ๋ชฉ์ ์œผ๋กœ ํ•œ๋™์•ˆ ์ž‘์—…ํ•˜๋˜ ๊ธ€์ž…๋‹ˆ๋‹ค. ๋ฉ”์•„๋ฆฌ ํŠน์œ ์˜ ๋””์ž์ธ(...)์ด ์‹ซ๋‹ค๋ฉด ์—ฌ๊ธฐ๋กœ ๋งํฌํ•˜์…”๋„ ๋ฉ๋‹ˆ๋‹ค. ์–ด๋А ์ชฝ์ด๋“ ๊ฐ„์— ์˜๊ฒฌ์€ ์ด ์•„๋ž˜์˜ ์ฝ”๋ฉ˜ํŠธ ๋ž€ ๋˜๋Š” ๋ฉ”์•„๋ฆฌ์— ๊ธฐ์žฌ๋˜์–ด ์žˆ๋Š” ๋ฉ”์ผ ์ฃผ์†Œ๋ฅผ ์จ ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. --lifthrasiir

์•”ํ˜ธํ•™์„ ์‚ฌ์šฉํ•˜๋Š” ๋งŽ์€ ์‹œ์Šคํ…œ์€ ์„ธ๋ถ€์ ์œผ๋กœ ๋ฌด์Šจ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์“ฐ๋Š”์ง€๋ณด๋‹ค๋Š” ๊ทธ ์•Œ๊ณ ๋ฆฌ์ฆ˜๋“ค์ด ์–ด๋–ป๊ฒŒ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š”์ง€, ์ฆ‰ ๊ตฌ์กฐ๊ฐ€ ์‹ค์ œ ์•ˆ์ „์„ฑ์— ๋” ํฐ ์˜ํ–ฅ์„ ๋ฏธ์นœ๋‹ค. ๋”ฐ๋ผ์„œ ๊ตฌ์กฐ์™€ ๊ทธ ๊ตฌ์กฐ๋ฅผ ์ด๋ฃจ๋Š” ๋นŒ๋”ฉ ๋ธ”๋Ÿญ์„ ์•„๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•œ๋ฐ, ์—ฌ๊ธฐ์—์„œ๋Š” ์ด๋Ÿฌํ•œ ์•”ํ˜ธํ•™์  ๋นŒ๋”ฉ ๋ธ”๋Ÿญ๊ณผ ํ•จ๊ป˜ ๋ธ”๋Ÿญ๋“ค์ด ์–ด๋–ป๊ฒŒ ์“ฐ์—ฌ์„œ ๋” ํฐ ๊ตฌ์กฐ๋ฅผ ๋งŒ๋“œ๋Š”์ง€๋ฅผ ์•Œ์•„ ๋ณธ๋‹ค.

Key Exchange

ํ‚ค ๊ตํ™˜. ๋‘ ์‚ฌ๋žŒ๋งŒ์ด ์•Œ ์ˆ˜ ์žˆ๋Š” ์ƒˆ๋กœ์šด ํ‚ค๋ฅผ ๋งŒ๋“ ๋‹ค. ์ด ๊ณผ์ •์ด ๋๋‚˜๋„ ์ƒ๋Œ€๋ฐฉ์ด ๋‚ด๊ฐ€ ์•„๋Š” ์‚ฌ๋žŒ์ธ์ง„ ์•Œ ์ˆ˜ ์—†์ง€๋งŒ ์ ์–ด๋„ ์ƒ๋Œ€๋ฐฉ๊ณผ ๋‚ด๊ฐ€ ๊ฐ™์€ ํ‚ค๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค๋Š” ๊ฑด ํ™•์‹ ํ•  ์ˆ˜ ์žˆ๋‹ค.

@acuros
acuros / daum.js
Last active July 30, 2018 02:22
Daum Login
var daumlogin = {};
var daum = {}
daum.Browser = {ua:'mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.11 (khtml, like gecko) chrome/23.0.1271.95 safari/537.11'}
daum.Event = {}
daum.Event.addOrderEvent = (function () {
var a = {};
return function (f, e, g, b) {
var h = null,
c, d;
if (!f) {