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
# https://github.com/serithemage/python_exercise/blob/master/downloader/downloader.py | |
# 이 python2으로 작성되어 있어, 참조하여 python3으로 재작성하였습니다. | |
# beautifulsoup4가 없는 분들은 아래처럼 pip로 통해 설치하세요. | |
# pip install beautifulsoup4 | |
import urllib | |
import threading | |
import urllib.request | |
import time |
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
package test_daejin; | |
import java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
public class test_set { | |
// Java 1.4버전 String을 HashSet으로 변환 | |
public static HashSet strToSet( String s){ |
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 sublime, sublime_plugin | |
def fold_region_from_indent(view, r): | |
if r.b == view.size(): | |
return sublime.Region(r.a - 1, r.b) | |
else: | |
return sublime.Region(r.a - 1, r.b - 1) | |
class FoldUnfoldCommand(sublime_plugin.TextCommand): | |
def run(self, edit): |
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
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" 추가하고 싶은 플러그인을 아래에 나열하면 됩니다. |
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
:e $userprofile\_gvimrc |
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
@RequestMapping("/uss/umt/EgovUserInsert.do") | |
public String insertUser(@ModelAttribute("userManageVO") UserManageVO userManageVO, BindingResult bindingResult, Model model) throws Exception { | |
// 미인증 사용자에 대한 보안처리 | |
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); | |
if (!isAuthenticated) { | |
return "index"; | |
} | |
beanValidator.validate(userManageVO, bindingResult); |
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
function makeBindFun(resolver){ | |
return function(k, v){ | |
var stack = globals[k] || []; | |
globals[k] = resolver(stack, v); | |
return globals; | |
} | |
} | |
var stackBinder = makeBindFun(function(stack, v){ | |
stack.push(v); |
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
Show hidden characters
{ "keys": ["z", "z"], | |
"command": "show_overlay", | |
"args": {"overlay": "command_palette"} | |
} |
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
{ "keys" : ["j", "j"], | |
"command" : "exit_insert_mode", | |
"context" : [ | |
{ "key" : "setting.command_mode", "operand" : false }, | |
{ "key" : "setting.is_widget", "operand" : false } | |
] | |
} |
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
"ignored_packages": | |
[ | |
// "Vintage" 이 줄을 삭제하거나, 주석 처리하면 활성화됩니다. | |
], |