Skip to content

Instantly share code, notes, and snippets.

View dohvis's full-sized avatar
๐Ÿ“

Kim Dohyeon dohvis

๐Ÿ“
View GitHub Profile
/* ๋ฐ‘์—์„œ ๋ถ€ํ„ฐ ์ฝ์œผ๋ฉด ๋จ(?)
** ์ฝ”๋“œ ํ๋ฆ„(๋ผ์ธ ๋„˜๋ฒ„ ๊ธฐ์ค€. ๋ง‰ ์—”ํ„ฐ์น˜๋‹ค ๊นจ์ง€๋ฉด ๋‚˜๋„ ๋ชฐ๋ž‘): 141(react ๋ Œ๋”๋ง ์‹œ์ž‘) --> 78 (์•„์ดํ…œ ๋ฐ•์Šค ์ƒ์„ฑ) --> 103(์ธํ’‹๋ฐ•์Šค ๋ฐ”๋€Œ๋Š”๊ฑฐ ์ฝœ๋ฐฑ ์„ค์ •) -->
** 83 (์ฐธ๊ฐ€ ์ธ์›์ด ํ™•์ •๋จ, ๊ทธ์— ๋”ฐ๋ผ ๋ฐ์ดํ„ฐ ๊ฐฑ์‹ ) --> 111 (๋ Œ๋”๋ง) --> 122 (๊ฐ ํ’ˆ๋ชฉ ๋ Œ๋”๋ง)
*/
function sum(args){
var s=0
args.map(function(data){
var realPrice = data['priceByPiece']*data['amount']
s+=(realPrice);
@dohvis
dohvis / .gitignore
Created January 25, 2016 16:49
common gitignore
# Created by https://www.gitignore.io/api/windows,pycharm,django,pycharm,python
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
@dohvis
dohvis / SimpleHoocking.c
Last active October 29, 2015 08:08
sdf
#include <stdio.h>
#include <Windows.h>
#include <tlhelp32.h>
DWORD GetPIDByName(LPCTSTR szProcessName)
{
DWORD PID = 0xFFFFFFFF;
HANDLE hSnapShot = INVALID_HANDLE_VALUE;
PROCESSENTRY32 pe;
char proc_name[260];
@dohvis
dohvis / setup.py
Last active August 29, 2015 14:19
# -*- coding: utf-8 -*-
import sys
from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["socket","time","sys","codecs","os"], }
# packages name imported in mycode.py
# GUI applications require a different base on Windows (the default is for a console application).
setup(
name = "~~~", # exe's file name (~~~.exe)
AF_INET = 2
SOCK_STREAM = 1
s = socket.socket(AF_INET, SOCK_STREAM)
s.bind(("0.0.0.0",8888))
s.listen(1)
while True:
print "wait for connection.."
s,addr = s.accept()
print addr
@dohvis
dohvis / test.c
Last active October 13, 2015 13:25
char buf[16];
scanf("%16s", buf);
// ์ฒซ๊ธ€์ž๋Š” A , ๋งˆ์ง€๋ง‰ ๊ธ€์ž๋Š” C, ์ค‘๊ฐ„์— ๋ช‡๊ธ€์ž๊ฐ€ ์˜ค๋“  ์ƒ๊ด€ X, a ๋ž‘ c ๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ถ„ X
/*
AAC O
Aac O
aGC O
aadfADvVZAADFCCc O
abc O