├── docs ├── CNAME ├── theme │ ├── bower_components │ │ ├── jquery │ │ │ ├── src │ │ │ │ ├── outro.js │ │ │ │ ├── selector.js │ │ │ │ ├── event │ │ │ │ │ ├── support.js │ │ │ │ │ ├── ajax.js │ │ │ │ │ └── alias.js │ │ │ │ ├── attributes.js │ │ │ │ ├── deprecated.js │ │ │ │ ├── ajax │ │ │ │ │ ├── parseJSON.js │ │ │ │ │ ├── parseXML.js │ │ │ │ │ ├── script.js │ │ │ │ │ ├── load.js │ │ │ │ │ └── jsonp.js │ │ │ │ ├── effects │ │ │ │ │ ├── animatedSelector.js │ │ │ │ │ └── Tween.js │ │ │ │ ├── manipulation │ │ │ │ │ ├── _evalUrl.js │ │ │ │ │ └── support.js │ │ │ │ ├── selector-sizzle.js │ │ │ │ ├── css │ │ │ │ │ ├── hiddenVisibleSelectors.js │ │ │ │ │ ├── addGetHookIf.js │ │ │ │ │ ├── swap.js │ │ │ │ │ ├── curCSS.js │ │ │ │ │ ├── defaultDisplay.js │ │ │ │ │ └── support.js │ │ │ │ ├── data │ │ │ │ │ └── accepts.js │ │ │ │ ├── queue │ │ │ │ │ └── delay.js │ │ │ │ ├── jquery.js │ │ │ │ ├── exports │ │ │ │ │ ├── global.js │ │ │ │ │ └── amd.js │ │ │ │ ├── attributes │ │ │ │ │ ├── support.js │ │ │ │ │ └── prop.js │ │ │ │ ├── core │ │ │ │ │ ├── parseHTML.js │ │ │ │ │ ├── access.js │ │ │ │ │ └── ready.js │ │ │ │ ├── intro.js │ │ │ │ ├── wrap.js │ │ │ │ ├── dimensions.js │ │ │ │ ├── traversing │ │ │ │ │ └── findFilter.js │ │ │ │ └── serialize.js │ │ │ ├── bower.json │ │ │ ├── .bower.json │ │ │ └── MIT-LICENSE.txt │ │ ├── xeicon │ │ │ ├── fonts │ │ │ │ ├── xeicon.eot │ │ │ │ ├── xeicon.ttf │ │ │ │ ├── xeicon.woff │ │ │ │ └── xeicon.woff2 │ │ │ ├── less │ │ │ │ ├── fixed-width.less │ │ │ │ ├── style.less │ │ │ │ ├── xeicon.less │ │ │ │ ├── lager.less │ │ │ │ ├── core.less │ │ │ │ ├── bordered-pulled.less │ │ │ │ ├── list.less │ │ │ │ ├── path.less │ │ │ │ ├── mixins.less │ │ │ │ ├── rotated-filipped.less │ │ │ │ └── spinning.less │ │ │ ├── scss │ │ │ │ ├── _fixed-width.scss │ │ │ │ ├── xeicon.scss │ │ │ │ ├── _bordered-pulled.scss │ │ │ │ ├── _larger.scss │ │ │ │ ├── _core.scss │ │ │ │ ├── _list.scss │ │ │ │ ├── _path.scss │ │ │ │ ├── _spinning.scss │ │ │ │ ├── _rotated-flipped.scss │ │ │ │ └── _mixins.scss │ │ │ ├── bower.json │ │ │ └── .bower.json │ │ └── bootstrap │ │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── grunt │ │ │ ├── .jshintrc │ │ │ ├── bs-commonjs-generator.js │ │ │ ├── bs-raw-files-generator.js │ │ │ ├── configBridge.json │ │ │ ├── bs-glyphicons-data-generator.js │ │ │ └── sauce_browsers.yml │ │ │ ├── dist │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ └── js │ │ │ │ └── npm.js │ │ │ ├── less │ │ │ ├── mixins │ │ │ │ ├── center-block.less │ │ │ │ ├── size.less │ │ │ │ ├── opacity.less │ │ │ │ ├── text-emphasis.less │ │ │ │ ├── text-overflow.less │ │ │ │ ├── background-variant.less │ │ │ │ ├── tab-focus.less │ │ │ │ ├── labels.less │ │ │ │ ├── resize.less │ │ │ │ ├── progress-bar.less │ │ │ │ ├── reset-filter.less │ │ │ │ ├── nav-divider.less │ │ │ │ ├── alerts.less │ │ │ │ ├── nav-vertical-align.less │ │ │ │ ├── responsive-visibility.less │ │ │ │ ├── border-radius.less │ │ │ │ ├── reset-text.less │ │ │ │ ├── pagination.less │ │ │ │ ├── panels.less │ │ │ │ ├── hide-text.less │ │ │ │ ├── list-group.less │ │ │ │ ├── clearfix.less │ │ │ │ ├── table-row.less │ │ │ │ ├── image.less │ │ │ │ ├── buttons.less │ │ │ │ ├── forms.less │ │ │ │ ├── grid-framework.less │ │ │ │ └── grid.less │ │ │ ├── .csslintrc │ │ │ ├── wells.less │ │ │ ├── breadcrumbs.less │ │ │ ├── responsive-embed.less │ │ │ ├── component-animations.less │ │ │ ├── close.less │ │ │ ├── thumbnails.less │ │ │ ├── utilities.less │ │ │ ├── pager.less │ │ │ ├── media.less │ │ │ ├── mixins.less │ │ │ ├── labels.less │ │ │ ├── jumbotron.less │ │ │ ├── badges.less │ │ │ ├── bootstrap.less │ │ │ ├── code.less │ │ │ ├── grid.less │ │ │ ├── alerts.less │ │ │ ├── progress-bars.less │ │ │ ├── pagination.less │ │ │ ├── print.less │ │ │ └── tooltip.less │ │ │ ├── js │ │ │ ├── .jshintrc │ │ │ ├── transition.js │ │ │ ├── .jscsrc │ │ │ ├── alert.js │ │ │ └── popover.js │ │ │ ├── CHANGELOG.md │ │ │ ├── nuget │ │ │ ├── MyGet.ps1 │ │ │ ├── bootstrap.nuspec │ │ │ └── bootstrap.less.nuspec │ │ │ ├── bower.json │ │ │ ├── package.js │ │ │ ├── .bower.json │ │ │ ├── LICENSE │ │ │ └── package.json │ ├── font │ │ ├── SpoqaHanSans-Bold.eot │ │ ├── SpoqaHanSans-Bold.ttf │ │ ├── SpoqaHanSans-Thin.eot │ │ ├── SpoqaHanSans-Thin.ttf │ │ ├── SpoqaHanSans-Bold.woff │ │ ├── SpoqaHanSans-Regular.eot │ │ ├── SpoqaHanSans-Regular.ttf │ │ ├── SpoqaHanSans-Thin.woff │ │ └── SpoqaHanSans-Regular.woff │ ├── bower.json │ └── js │ │ └── github.js ├── images │ ├── test.png │ └── TIL-Workflow.png ├── README.md ├── feeds │ ├── vcs.atom.xml │ ├── editor.atom.xml │ └── front-end.atom.xml ├── misc │ └── index.html ├── project │ └── index.html └── dev │ └── index.html ├── .gitignore ├── etc ├── programming-study-site-list.md ├── s65-js-study-01.md └── gdg-webtech-160827.md ├── backend ├── python │ ├── base-function.md │ ├── upgrade-all-pip-list.md │ ├── how-to-write-pelican-docs.md │ ├── module.md │ ├── loop-condition.md │ └── unit-test.md ├── shell │ ├── ohmyzsh-autocomplete-bug-fix.md │ ├── zsh-ownership-issue-fix.md │ └── upstart-service-shell-script.md └── linux │ └── runlevel-summary.md ├── tool ├── vcs │ └── git-ko-path-name-fix.md ├── editor │ └── vim-frequent-command.md └── ci │ └── travis-ci-setting-on-til.md ├── LICENSE ├── README.md ├── README-en.md └── frontend └── bower └── how-to-use-bower.md /docs/CNAME: -------------------------------------------------------------------------------- 1 | til.chann.kr -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # macOS 2 | .DS_Store 3 | 4 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/outro.js: -------------------------------------------------------------------------------- 1 | })); 2 | -------------------------------------------------------------------------------- /docs/images/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/images/test.png -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/selector.js: -------------------------------------------------------------------------------- 1 | define([ "./selector-sizzle" ]); 2 | -------------------------------------------------------------------------------- /docs/images/TIL-Workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/images/TIL-Workflow.png -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Bold.eot -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Bold.ttf -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Thin.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Thin.eot -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Thin.ttf -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Bold.woff -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Regular.eot -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Regular.ttf -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Thin.woff -------------------------------------------------------------------------------- /docs/theme/font/SpoqaHanSans-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/font/SpoqaHanSans-Regular.woff -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/fonts/xeicon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/xeicon/fonts/xeicon.eot -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/fonts/xeicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/xeicon/fonts/xeicon.ttf -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/fonts/xeicon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/xeicon/fonts/xeicon.woff -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/fonts/xeicon.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/xeicon/fonts/xeicon.woff2 -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | 3 | .@{xi-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/grunt/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends" : "../js/.jshintrc", 3 | "asi" : false, 4 | "browser" : false, 5 | "es3" : false, 6 | "node" : true 7 | } 8 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_fixed-width.scss: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .#{$xi-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/channprj/TIL/HEAD/docs/theme/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/event/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | support.focusinBubbles = "onfocusin" in window; 6 | 7 | return support; 8 | 9 | }); 10 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/opacity.less: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | .opacity(@opacity) { 4 | opacity: @opacity; 5 | // IE8 filter 6 | @opacity-ie: (@opacity * 100); 7 | filter: ~"alpha(opacity=@{opacity-ie})"; 8 | } 9 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover, 6 | a&:focus { 7 | color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/text-overflow.less: -------------------------------------------------------------------------------- 1 | // Text overflow 2 | // Requires inline-block or block for proper styling 3 | 4 | .text-overflow() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/background-variant.less: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | .bg-variant(@color) { 4 | background-color: @color; 5 | a&:hover, 6 | a&:focus { 7 | background-color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/tab-focus.less: -------------------------------------------------------------------------------- 1 | // WebKit-style focus 2 | 3 | .tab-focus() { 4 | // Default 5 | outline: thin dotted; 6 | // WebKit 7 | outline: 5px auto -webkit-focus-ring-color; 8 | outline-offset: -2px; 9 | } 10 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/labels.less: -------------------------------------------------------------------------------- 1 | // Labels 2 | 3 | .label-variant(@color) { 4 | background-color: @color; 5 | 6 | &[href] { 7 | &:hover, 8 | &:focus { 9 | background-color: darken(@color, 10%); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/resize.less: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | .resizable(@direction) { 4 | resize: @direction; // Options: horizontal, vertical, both 5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 6 | } 7 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/channprj/til.chann.kr-source.svg?branch=master)](https://travis-ci.org/channprj/til.chann.kr-source) 2 | 3 | :electric_plug: [Source](https://github.com/channprj/til.chann.kr-source) 4 | 5 | :memo: [Web](http://til.chann.kr) 6 | -------------------------------------------------------------------------------- /etc/programming-study-site-list.md: -------------------------------------------------------------------------------- 1 | Title: 프로그래밍 공부 사이트 정리 2 | Date: 2016-01-20 16:32 3 | Category: Study 4 | Tags: study, programming, dev, favorite 5 | Slug: programming-study-site-list 6 | Author: CHANN 7 | 8 | 9 | # [https://blog.chann.kr/link](https://blog.chann.kr/link) 로 대체. -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/attributes.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./attributes/attr", 4 | "./attributes/prop", 5 | "./attributes/classes", 6 | "./attributes/val" 7 | ], function( jQuery ) { 8 | 9 | // Return jQuery for attributes-only inclusion 10 | return jQuery; 11 | }); 12 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/progress-bar.less: -------------------------------------------------------------------------------- 1 | // Progress bars 2 | 3 | .progress-bar-variant(@color) { 4 | background-color: @color; 5 | 6 | // Deprecated parent class requirement as of v3.2.0 7 | .progress-striped & { 8 | #gradient > .striped(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/style.less: -------------------------------------------------------------------------------- 1 | @import "variables"; 2 | @import "path"; 3 | @import "core"; 4 | @import "icons"; 5 | @import "mixins"; 6 | @import "bordered-pulled"; 7 | @import "fixed-width"; 8 | @import "lager"; 9 | @import "rotated-filipped"; 10 | @import "spinning"; 11 | @import "list"; -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/xeicon.less: -------------------------------------------------------------------------------- 1 | @import "variables"; 2 | @import "path"; 3 | @import "core"; 4 | @import "icons"; 5 | @import "lager"; 6 | @import "mixins"; 7 | @import "spinning"; 8 | @import "rotated-filipped"; 9 | @import "fixed-width"; 10 | @import "list"; 11 | @import "bordered-pulled"; -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/xeicon.scss: -------------------------------------------------------------------------------- 1 | @import "variables"; 2 | @import "path"; 3 | @import "core"; 4 | @import "icons"; 5 | @import "larger"; 6 | @import "mixins"; 7 | @import "spinning"; 8 | @import "rotated-flipped"; 9 | @import "fixed-width"; 10 | @import "list"; 11 | @import "bordered-pulled"; -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/deprecated.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./traversing" 4 | ], function( jQuery ) { 5 | 6 | // The number of elements contained in the matched element set 7 | jQuery.fn.size = function() { 8 | return this.length; 9 | }; 10 | 11 | jQuery.fn.andSelf = jQuery.fn.addBack; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/reset-filter.less: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | .reset-filter() { 7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 8 | } 9 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/ajax/parseJSON.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Support: Android 2.3 6 | // Workaround failure to string-cast null input 7 | jQuery.parseJSON = function( data ) { 8 | return JSON.parse( data + "" ); 9 | }; 10 | 11 | return jQuery.parseJSON; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/nav-divider.less: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | .nav-divider(@color: #e5e5e5) { 6 | height: 1px; 7 | margin: ((@line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: @color; 10 | } 11 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/effects/animatedSelector.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../selector", 4 | "../effects" 5 | ], function( jQuery ) { 6 | 7 | jQuery.expr.filters.animated = function( elem ) { 8 | return jQuery.grep(jQuery.timers, function( fn ) { 9 | return elem === fn.elem; 10 | }).length; 11 | }; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/lager.less: -------------------------------------------------------------------------------- 1 | // Lager Icons 2 | 3 | .@{xi-css-prefix}-x { 4 | font-size: (4em / 3); 5 | line-height: (3em / 4); 6 | vertical-align: -15%; 7 | } 8 | .@{xi-css-prefix}-2x { font-size: 2em; } 9 | .@{xi-css-prefix}-3x { font-size: 3em; } 10 | .@{xi-css-prefix}-4x { font-size: 4em; } 11 | .@{xi-css-prefix}-5x { font-size: 5em; } -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_bordered-pulled.scss: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .#{$xi-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em $xi-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .pull-right { float: right; margin-right: .3em;} 11 | .pull-left { float: left; margin-right: .3em;} 12 | -------------------------------------------------------------------------------- /backend/python/base-function.md: -------------------------------------------------------------------------------- 1 | Title: 파이썬 기본 함수들 2 | Date: 2016-02-27 18:00 3 | Category: Python 4 | Tags: python, programming, dev, scrpit, function, 파이썬, 프로그래밍, 개발, 스크립트, 함수, 공부, 스터디, study 5 | Slug: base-function 6 | Author: CHANN 7 | 8 | 9 | ## 입출력 10 | > 작성중 11 | 12 | ## 참고 13 | 1. [Codecademy](http://codecademy.com) 14 | 2. [Wikidocs](https://wikidocs.net) -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/core.less: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | 3 | i { 4 | display: inline-block; 5 | font-family: 'xeicon'; 6 | speak: none; 7 | font-style: normal; 8 | font-weight: normal; 9 | font-variant: normal; 10 | text-transform: none; 11 | line-height: 1; 12 | -webkit-font-smoothing: antialiased; 13 | -moz-osx-font-smoothing: grayscale; 14 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/manipulation/_evalUrl.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../ajax" 3 | ], function( jQuery ) { 4 | 5 | jQuery._evalUrl = function( url ) { 6 | return jQuery.ajax({ 7 | url: url, 8 | type: "GET", 9 | dataType: "script", 10 | async: false, 11 | global: false, 12 | "throws": true 13 | }); 14 | }; 15 | 16 | return jQuery._evalUrl; 17 | 18 | }); 19 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/js/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "asi" : true, 3 | "browser" : true, 4 | "eqeqeq" : false, 5 | "eqnull" : true, 6 | "es3" : true, 7 | "expr" : true, 8 | "jquery" : true, 9 | "latedef" : true, 10 | "laxbreak" : true, 11 | "nonbsp" : true, 12 | "strict" : true, 13 | "undef" : true, 14 | "unused" : true 15 | } 16 | -------------------------------------------------------------------------------- /tool/vcs/git-ko-path-name-fix.md: -------------------------------------------------------------------------------- 1 | Title: Git 한글 깨짐문제 2 | Date: 2016-01-20 14:28 3 | Category: VCS 4 | Tags: vcs, git, i18n, github, terminal, cli 5 | Slug: git-ko-path-name-fix 6 | Author: CHANN 7 | 8 | 9 | 인코딩 문제. 아래 한 줄이면 됨. 10 | 11 | ```bash 12 | $ git config core.quotepath false 13 | ``` 14 | 15 | ------ 16 | 17 | ## 참고 18 | 1. [KLDP 글](https://kldp.org/node/132431) 19 | -------------------------------------------------------------------------------- /docs/theme/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "peliwiki", 3 | "homepage": "https://github.com/channprj/wiki.chann.kr-source", 4 | "authors": [ 5 | "CHANN " 6 | ], 7 | "description": "pelican wiki theme components", 8 | "main": "", 9 | "moduleType": [], 10 | "license": "MIT", 11 | "dependencies": { 12 | "bootstrap": "~3.3.6", 13 | "xeicon": "~1.0.4" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/selector-sizzle.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "sizzle" 4 | ], function( jQuery, Sizzle ) { 5 | 6 | jQuery.find = Sizzle; 7 | jQuery.expr = Sizzle.selectors; 8 | jQuery.expr[":"] = jQuery.expr.pseudos; 9 | jQuery.unique = Sizzle.uniqueSort; 10 | jQuery.text = Sizzle.getText; 11 | jQuery.isXMLDoc = Sizzle.isXML; 12 | jQuery.contains = Sizzle.contains; 13 | 14 | }); 15 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/bordered-pulled.less: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled Icons 2 | 3 | .@{xi-css-prefix}-border { 4 | padding: .2em .25em .15em; 5 | border: solid .08em @xi-border-color; 6 | border-radius: .1em; 7 | } 8 | 9 | .pull-right { float: right; } 10 | .pull-left { float: left; } 11 | 12 | .@{xi-css-prefix} { 13 | &.pull-left { margin-right: .3em; } 14 | &.pull-right { margin-left: .3em; } 15 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/event/ajax.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | // Attach a bunch of functions for handling common AJAX events 7 | jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) { 8 | jQuery.fn[ type ] = function( fn ) { 9 | return this.on( type, fn ); 10 | }; 11 | }); 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/nav-vertical-align.less: -------------------------------------------------------------------------------- 1 | // Navbar vertical align 2 | // 3 | // Vertically center elements in the navbar. 4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. 5 | 6 | .navbar-vertical-align(@element-height) { 7 | margin-top: ((@navbar-height - @element-height) / 2); 8 | margin-bottom: ((@navbar-height - @element-height) / 2); 9 | } 10 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/list.less: -------------------------------------------------------------------------------- 1 | // List Icons 2 | 3 | .@{xi-css-prefix}-ul { 4 | padding-left: 0; 5 | margin-left: @xi-li-width; 6 | list-style-type: none; 7 | > li { position: relative; } 8 | } 9 | .@{xi-css-prefix}-li { 10 | position: absolute; 11 | left: -@xi-li-width; 12 | width: @xi-li-width; 13 | top: (2em / 14); 14 | text-align: center; 15 | &.@{xi-css-prefix}-lg { 16 | left: (-@xi-li-width + (4em / 14)); 17 | } 18 | } -------------------------------------------------------------------------------- /tool/editor/vim-frequent-command.md: -------------------------------------------------------------------------------- 1 | Title: 자주 사용하는 vim 명령어 정리 2 | Date: 2016-02-08 13:00 3 | Category: Editor 4 | Tags: vim, editor, cli, 빔, 에디터 5 | Slug: vim-frequent-command 6 | Author: CHANN 7 | 8 | 9 | > 작성중 10 | 11 | ------ 12 | 13 | ## 참고 14 | 1.[Joinc Wiki](http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Vim/Documents/UsedVim) 15 | 2. [Outsider님 블로그](https://blog.outsider.ne.kr/540) 16 | 3. [하이언IT님 블로그](http://hyeonstorage.tistory.com/274) -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_larger.scss: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .#{$xi-css-prefix}-x { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .#{$xi-css-prefix}-2x { font-size: 2em; } 11 | .#{$xi-css-prefix}-3x { font-size: 3em; } 12 | .#{$xi-css-prefix}-4x { font-size: 4em; } 13 | .#{$xi-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Bootstrap uses [GitHub's Releases feature](https://github.com/blog/1547-release-your-software) for its changelogs. 2 | 3 | See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap. 4 | 5 | Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release. 6 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_core.scss: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | i { 5 | display: inline-block; 6 | font: normal normal normal 14px/1 xeicon; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | } 12 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/responsive-visibility.less: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | .responsive-visibility() { 6 | display: block !important; 7 | table& { display: table !important; } 8 | tr& { display: table-row !important; } 9 | th&, 10 | td& { display: table-cell !important; } 11 | } 12 | 13 | .responsive-invisibility() { 14 | display: none !important; 15 | } 16 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/css/hiddenVisibleSelectors.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../selector" 4 | ], function( jQuery ) { 5 | 6 | jQuery.expr.filters.hidden = function( elem ) { 7 | // Support: Opera <= 12.12 8 | // Opera reports offsetWidths and offsetHeights less than zero on some elements 9 | return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; 10 | }; 11 | jQuery.expr.filters.visible = function( elem ) { 12 | return !jQuery.expr.filters.hidden( elem ); 13 | }; 14 | 15 | }); 16 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_list.scss: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .#{$xi-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: $xi-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .#{$xi-css-prefix}-li { 11 | position: absolute; 12 | left: -$xi-li-width; 13 | width: $xi-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.#{$xi-css-prefix}-lg { 17 | left: -$xi-li-width + (4em / 14); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/data/accepts.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | /** 6 | * Determines whether an object can have data 7 | */ 8 | jQuery.acceptData = function( owner ) { 9 | // Accepts only: 10 | // - Node 11 | // - Node.ELEMENT_NODE 12 | // - Node.DOCUMENT_NODE 13 | // - Object 14 | // - Any 15 | /* jshint -W018 */ 16 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); 17 | }; 18 | 19 | return jQuery.acceptData; 20 | }); 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | DO WHAT THE FXXK YOU WANT TO PUBLIC LICENSE 2 | Version 3 3 | 4 | Copyright (C) CHANN 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. ...and, if we meet some day, and you think 9 | this stuff is worth it, you can buy me a cup of coffee if you want. 10 | 11 | DO WHAT THE FXXK YOU WANT TO PUBLIC LICENSE 12 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 13 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/nuget/MyGet.ps1: -------------------------------------------------------------------------------- 1 | $nuget = $env:NuGet 2 | 3 | #parse the version number out of package.json 4 | $bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version 5 | 6 | #create packages 7 | & $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion 8 | & $nuget pack "nuget\bootstrap.less.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/.csslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "adjoining-classes": false, 3 | "box-sizing": false, 4 | "box-model": false, 5 | "compatible-vendor-prefixes": false, 6 | "floats": false, 7 | "font-sizes": false, 8 | "gradients": false, 9 | "important": false, 10 | "known-properties": false, 11 | "outline-none": false, 12 | "qualified-headings": false, 13 | "regex-selectors": false, 14 | "shorthand": false, 15 | "text-indent": false, 16 | "unique-headings": false, 17 | "universal-selector": false, 18 | "unqualified-attributes": false 19 | } 20 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xeicon", 3 | "description": "Beautiful transformable iconic font made for the web.", 4 | "version": "1.0.4", 5 | "authors": "naver", 6 | "keywords": ["xe","xeicon","xe-icon","icon","font"], 7 | "homepage": "http://xpressengine.github.io/XEIcon/", 8 | "dependencies": {}, 9 | "devDependencies": {}, 10 | "license": ["OFL-1.1", "MIT", "CC-BY-4.0"], 11 | "main": [ 12 | "./xeicon.css", 13 | "./xeicon.min.css", 14 | "./fonts/*" 15 | ], 16 | "ignore": [ 17 | "*.json", 18 | "*.md" 19 | ] 20 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/path.less: -------------------------------------------------------------------------------- 1 | // Font Path 2 | 3 | @font-face { 4 | font-family: 'xeicon'; 5 | src: url('@{xi-font-path}/xeicon.eot?v=@{xi-icon-version}'); 6 | src: url('@{xi-font-path}/xeicon.eot?#iefix&v=@{xi-icon-version}') format('embedded-opentype'), 7 | url('@{xi-font-path}/xeicon.woff?v=@{xi-icon-version}') format('woff'), 8 | url('@{xi-font-path}/xeicon.ttf?v=@{xi-icon-version}') format('truetype'), 9 | url('@{xi-font-path}/xeicon.svg?v=@{xi-icon-version}#xeicon') format('svg'); 10 | font-weight: normal; 11 | font-style: normal; 12 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/border-radius.less: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | .border-top-radius(@radius) { 4 | border-top-right-radius: @radius; 5 | border-top-left-radius: @radius; 6 | } 7 | .border-right-radius(@radius) { 8 | border-bottom-right-radius: @radius; 9 | border-top-right-radius: @radius; 10 | } 11 | .border-bottom-radius(@radius) { 12 | border-bottom-right-radius: @radius; 13 | border-bottom-left-radius: @radius; 14 | } 15 | .border-left-radius(@radius) { 16 | border-bottom-left-radius: @radius; 17 | border-top-left-radius: @radius; 18 | } 19 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/reset-text.less: -------------------------------------------------------------------------------- 1 | .reset-text() { 2 | font-family: @font-family-base; 3 | // We deliberately do NOT reset font-size. 4 | font-style: normal; 5 | font-weight: normal; 6 | letter-spacing: normal; 7 | line-break: auto; 8 | line-height: @line-height-base; 9 | text-align: left; // Fallback for where `start` is not supported 10 | text-align: start; 11 | text-decoration: none; 12 | text-shadow: none; 13 | text-transform: none; 14 | white-space: normal; 15 | word-break: normal; 16 | word-spacing: normal; 17 | word-wrap: normal; 18 | } 19 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | 3 | .xi-icon-rotate(@degrees, @rotation) { 4 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation); 5 | -webkit-transform: rotate(@degrees); 6 | -ms-transform: rotate(@degrees); 7 | transform: rotate(@degrees); 8 | } 9 | 10 | .xi-icon-flip(@horiz, @vert, @rotation) { 11 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1); 12 | -webkit-transform: scale(@horiz, @vert); 13 | -ms-transform: scale(@horiz, @vert); 14 | transform: scale(@horiz, @vert); 15 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_path.scss: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'xeicon'; 6 | src: url('#{$xi-font-path}/xeicon.eot?v=#{$xi-version}'); 7 | src: url('#{$xi-font-path}/xeicon.eot?#iefix&v=#{$xi-version}') format('embedded-opentype'), 8 | url('#{$xi-font-path}/xeicon.woff?v=#{$xi-version}') format('woff'), 9 | url('#{$xi-font-path}/xeicon.ttf?v=#{$xi-version}') format('truetype'), 10 | url('#{$xi-font-path}/xeicon.svg?v=#{$xi-version}#xeicon') format('svg'); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.4", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "dist/cdn", 10 | "speed", 11 | "test", 12 | "*.md", 13 | "AUTHORS.txt", 14 | "Gruntfile.js", 15 | "package.json" 16 | ], 17 | "devDependencies": { 18 | "sizzle": "2.1.1-jquery.2.1.2", 19 | "requirejs": "2.1.10", 20 | "qunit": "1.14.0", 21 | "sinon": "1.8.1" 22 | }, 23 | "keywords": [ 24 | "jquery", 25 | "javascript", 26 | "library" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/pagination.less: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) { 4 | > li { 5 | > a, 6 | > span { 7 | padding: @padding-vertical @padding-horizontal; 8 | font-size: @font-size; 9 | line-height: @line-height; 10 | } 11 | &:first-child { 12 | > a, 13 | > span { 14 | .border-left-radius(@border-radius); 15 | } 16 | } 17 | &:last-child { 18 | > a, 19 | > span { 20 | .border-right-radius(@border-radius); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/css/addGetHookIf.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | 3 | function addGetHookIf( conditionFn, hookFn ) { 4 | // Define the hook, we'll check on the first run if it's really needed. 5 | return { 6 | get: function() { 7 | if ( conditionFn() ) { 8 | // Hook not needed (or it's not possible to use it due 9 | // to missing dependency), remove it. 10 | delete this.get; 11 | return; 12 | } 13 | 14 | // Hook needed; redefine it so that the support test is not executed again. 15 | return (this.get = hookFn).apply( this, arguments ); 16 | } 17 | }; 18 | } 19 | 20 | return addGetHookIf; 21 | 22 | }); 23 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/ajax/parseXML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Cross-browser xml parsing 6 | jQuery.parseXML = function( data ) { 7 | var xml, tmp; 8 | if ( !data || typeof data !== "string" ) { 9 | return null; 10 | } 11 | 12 | // Support: IE9 13 | try { 14 | tmp = new DOMParser(); 15 | xml = tmp.parseFromString( data, "text/xml" ); 16 | } catch ( e ) { 17 | xml = undefined; 18 | } 19 | 20 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 21 | jQuery.error( "Invalid XML: " + data ); 22 | } 23 | return xml; 24 | }; 25 | 26 | return jQuery.parseXML; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/panels.less: -------------------------------------------------------------------------------- 1 | // Panels 2 | 3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) { 4 | border-color: @border; 5 | 6 | & > .panel-heading { 7 | color: @heading-text-color; 8 | background-color: @heading-bg-color; 9 | border-color: @heading-border; 10 | 11 | + .panel-collapse > .panel-body { 12 | border-top-color: @border; 13 | } 14 | .badge { 15 | color: @heading-bg-color; 16 | background-color: @heading-text-color; 17 | } 18 | } 19 | & > .panel-footer { 20 | + .panel-collapse > .panel-body { 21 | border-bottom-color: @border; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/wells.less: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: @well-bg; 12 | border: 1px solid @well-border; 13 | border-radius: @border-radius-base; 14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: @border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: @border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/queue/delay.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../queue", 4 | "../effects" // Delay is optional because of this dependency 5 | ], function( jQuery ) { 6 | 7 | // Based off of the plugin by Clint Helfers, with permission. 8 | // http://blindsignals.com/index.php/2009/07/jquery-delay/ 9 | jQuery.fn.delay = function( time, type ) { 10 | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; 11 | type = type || "fx"; 12 | 13 | return this.queue( type, function( next, hooks ) { 14 | var timeout = setTimeout( next, time ); 15 | hooks.stop = function() { 16 | clearTimeout( timeout ); 17 | }; 18 | }); 19 | }; 20 | 21 | return jQuery.fn.delay; 22 | }); 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Today I Learned 2 | 3 | 오늘 배운 내용을 정리하는 곳입니다. 4 | 5 | _Read this in other languages: [English](./README-en.md)_ 6 | 7 | ## 규칙 8 | 9 | - 별 것 아닌 내용이라도 조금씩 꾸준히 기록 10 | - 폴더와 문서의 이름은 기본적으로 영문 11 | - 문서는 [Github-Flavoured Markdown](https://guides.github.com/features/mastering-markdown/)으로 작성 12 | - 표현은 간결하게 짧은 문장 위주 13 | 14 | ## Inspired by 15 | 16 | 아래의 멋진 분들에게 참고하여 작성했습니다. 17 | 18 | - [Thoughtbot](https://github.com/thoughtbot/til) 19 | - [jbranchaud](https://github.com/jbranchaud/til) 20 | - [milooy](https://github.com/milooy/TIL) 21 | - [ahastudio](https://github.com/ahastudio/til) 22 | - [Hanju Jo](https://github.com/AWEEKJ/TIL) 23 | 24 | ## License 25 | 26 | 이 저장소는 [WTFPL](./LICENSE) 을 따릅니다. 27 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/rotated-filipped.less: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped 2 | 3 | .@{xi-css-prefix}-rotate-90 { .xi-icon-rotate(90deg, 1); } 4 | .@{xi-css-prefix}-rotate-180 { .xi-icon-rotate(180deg, 2); } 5 | .@{xi-css-prefix}-rotate-270 { .xi-icon-rotate(270deg, 3); } 6 | 7 | .@{xi-css-prefix}-flip-horizontal { .xi-icon-flip(-1, 1, 0); } 8 | .@{xi-css-prefix}-flip-vertical { .xi-icon-flip(1, -1, 2); } 9 | 10 | // Hook for IE8-9 11 | // ------------------------- 12 | 13 | :root .@{xi-css-prefix}-rotate-90, 14 | :root .@{xi-css-prefix}-rotate-180, 15 | :root .@{xi-css-prefix}-rotate-270, 16 | :root .@{xi-css-prefix}-flip-horizontal, 17 | :root .@{xi-css-prefix}-flip-vertical { 18 | filter: none; 19 | } -------------------------------------------------------------------------------- /backend/shell/ohmyzsh-autocomplete-bug-fix.md: -------------------------------------------------------------------------------- 1 | Title: zsh에서 vim 명령어 자동완성 오류 2 | Date: 2016-01-25 21:12 3 | Category: Shell 4 | Tags: zsh, shell, terminal, cli, sh, ohmyzsh, bug, fix, 터미널, 쉘 5 | Slug: ohmyzsh-autocomplete-bug-fix 6 | Author: CHANN 7 | 8 | 9 | 갑자기 `vim` 을 입력하고 tab을 누르니 `_arguments:450: _vim_files: function definition file not found` 라는 오류메시지가 떴다. 구글링을 해 보니 홈 폴더에서 `.zcompdump*` 파일을 지우면 대체로 잔버그가 해결된다는 답변[^1]에 꽤나 힘이 실려있었는데, 이번 경우에는 좀처럼 통하지 않았다. 알고 보니 `exec zsh` 해야 해결되었다. 아무 생각 없이 `source .zshrc` 를 치고 '어... 왜 안 고쳐지지?' 헤맸던 내가 바보같다... dotfile 은 환경설정이거늘 ㅠㅠ 10 | 11 | ## 정리 12 | ```bash 13 | $ rm ~/.zcompdump* 14 | $ exec zsh 15 | ``` 16 | 17 | [^1]: oh-my-zsh 버전이 올라갈 때마다 잔버그가 자주 나타나는 모양이다. 18 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/less/spinning.less: -------------------------------------------------------------------------------- 1 | // Spinning Icons 2 | 3 | .@{xi-css-prefix}-spin { 4 | -webkit-animation: xi-spin 2s infinite linear; 5 | animation: xi-spin 2s infinite linear; 6 | } 7 | 8 | @-webkit-keyframes xi-spin { 9 | 0% { 10 | -webkit-transform: rotate(0deg); 11 | transform: rotate(0deg); 12 | } 13 | 100% { 14 | -webkit-transform: rotate(359deg); 15 | transform: rotate(359deg); 16 | } 17 | } 18 | 19 | @keyframes xi-spin { 20 | 0% { 21 | -webkit-transform: rotate(0deg); 22 | transform: rotate(0deg); 23 | } 24 | 100% { 25 | -webkit-transform: rotate(359deg); 26 | transform: rotate(359deg); 27 | } 28 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/hide-text.less: -------------------------------------------------------------------------------- 1 | // CSS image replacement 2 | // 3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for 4 | // mixins being reused as classes with the same name, this doesn't hold up. As 5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. 6 | // 7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 8 | 9 | // Deprecated as of v3.0.1 (has been removed in v4) 10 | .hide-text() { 11 | font: ~"0/0" a; 12 | color: transparent; 13 | text-shadow: none; 14 | background-color: transparent; 15 | border: 0; 16 | } 17 | 18 | // New mixin to use as of v3.0.1 19 | .text-hide() { 20 | .hide-text(); 21 | } 22 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/css/swap.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // A method for quickly swapping in/out CSS properties to get correct calculations. 6 | jQuery.swap = function( elem, options, callback, args ) { 7 | var ret, name, 8 | old = {}; 9 | 10 | // Remember the old values, and insert the new ones 11 | for ( name in options ) { 12 | old[ name ] = elem.style[ name ]; 13 | elem.style[ name ] = options[ name ]; 14 | } 15 | 16 | ret = callback.apply( elem, args || [] ); 17 | 18 | // Revert the old values 19 | for ( name in options ) { 20 | elem.style[ name ] = old[ name ]; 21 | } 22 | 23 | return ret; 24 | }; 25 | 26 | return jQuery.swap; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/list-group.less: -------------------------------------------------------------------------------- 1 | // List Groups 2 | 3 | .list-group-item-variant(@state; @background; @color) { 4 | .list-group-item-@{state} { 5 | color: @color; 6 | background-color: @background; 7 | 8 | a&, 9 | button& { 10 | color: @color; 11 | 12 | .list-group-item-heading { 13 | color: inherit; 14 | } 15 | 16 | &:hover, 17 | &:focus { 18 | color: @color; 19 | background-color: darken(@background, 5%); 20 | } 21 | &.active, 22 | &.active:hover, 23 | &.active:focus { 24 | color: #fff; 25 | background-color: @color; 26 | border-color: @color; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_spinning.scss: -------------------------------------------------------------------------------- 1 | // Spinning Icons 2 | // -------------------------- 3 | 4 | .#{$xi-css-prefix}-spin { 5 | -webkit-animation: xi-spin 2s infinite linear; 6 | animation: xi-spin 2s infinite linear; 7 | } 8 | 9 | @-webkit-keyframes xi-spin { 10 | 0% { 11 | -webkit-transform: rotate(0deg); 12 | transform: rotate(0deg); 13 | } 14 | 100% { 15 | -webkit-transform: rotate(359deg); 16 | transform: rotate(359deg); 17 | } 18 | } 19 | 20 | @keyframes xi-spin { 21 | 0% { 22 | -webkit-transform: rotate(0deg); 23 | transform: rotate(0deg); 24 | } 25 | 100% { 26 | -webkit-transform: rotate(359deg); 27 | transform: rotate(359deg); 28 | } 29 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | .clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/breadcrumbs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/responsive-embed.less: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | } 26 | 27 | // Modifier class for 16:9 aspect ratio 28 | .embed-responsive-16by9 { 29 | padding-bottom: 56.25%; 30 | } 31 | 32 | // Modifier class for 4:3 aspect ratio 33 | .embed-responsive-4by3 { 34 | padding-bottom: 75%; 35 | } 36 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/jquery.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./selector", 4 | "./traversing", 5 | "./callbacks", 6 | "./deferred", 7 | "./core/ready", 8 | "./data", 9 | "./queue", 10 | "./queue/delay", 11 | "./attributes", 12 | "./event", 13 | "./event/alias", 14 | "./manipulation", 15 | "./manipulation/_evalUrl", 16 | "./wrap", 17 | "./css", 18 | "./css/hiddenVisibleSelectors", 19 | "./serialize", 20 | "./ajax", 21 | "./ajax/xhr", 22 | "./ajax/script", 23 | "./ajax/jsonp", 24 | "./ajax/load", 25 | "./event/ajax", 26 | "./effects", 27 | "./effects/animatedSelector", 28 | "./offset", 29 | "./dimensions", 30 | "./deprecated", 31 | "./exports/amd", 32 | "./exports/global" 33 | ], function( jQuery ) { 34 | 35 | return jQuery; 36 | 37 | }); 38 | -------------------------------------------------------------------------------- /README-en.md: -------------------------------------------------------------------------------- 1 | # Today I Learned 2 | 3 | Write down what I learned today. 4 | 5 | _Read this in other languages: [Korean](./README.md)_ 6 | 7 | ## Rule 8 | 9 | - Naming of folder and document would be English. 10 | - Write with [Github Flavoured Markdown](https://guides.github.com/features/mastering-markdown/). 11 | - Use a short sentences and phrases. 12 | 13 | ## Inspired by 14 | 15 | Learned from these respectable people. 16 | 17 | - [Thoughtbot](https://github.com/thoughtbot/til) 18 | - [jbranchaud](https://github.com/jbranchaud/til) 19 | - [milooy](https://github.com/milooy/TIL) 20 | - [ahastudio](https://github.com/ahastudio/til) 21 | - [Hanju Jo](https://github.com/AWEEKJ/TIL) 22 | 23 | ## License 24 | 25 | This repository is licensed under the WTFPL license. See [License](./LICENSE) for details. 26 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_rotated-flipped.scss: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .#{$xi-css-prefix}-rotate-90 { @include xi-icon-rotate(90deg, 1); } 5 | .#{$xi-css-prefix}-rotate-180 { @include xi-icon-rotate(180deg, 2); } 6 | .#{$xi-css-prefix}-rotate-270 { @include xi-icon-rotate(270deg, 3); } 7 | 8 | .#{$xi-css-prefix}-flip-horizontal { @include xi-icon-flip(-1, 1, 0); } 9 | .#{$xi-css-prefix}-flip-vertical { @include xi-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .#{$xi-css-prefix}-rotate-90, 15 | :root .#{$xi-css-prefix}-rotate-180, 16 | :root .#{$xi-css-prefix}-rotate-270, 17 | :root .#{$xi-css-prefix}-flip-horizontal, 18 | :root .#{$xi-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/exports/global.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../var/strundefined" 4 | ], function( jQuery, strundefined ) { 5 | 6 | var 7 | // Map over jQuery in case of overwrite 8 | _jQuery = window.jQuery, 9 | 10 | // Map over the $ in case of overwrite 11 | _$ = window.$; 12 | 13 | jQuery.noConflict = function( deep ) { 14 | if ( window.$ === jQuery ) { 15 | window.$ = _$; 16 | } 17 | 18 | if ( deep && window.jQuery === jQuery ) { 19 | window.jQuery = _jQuery; 20 | } 21 | 22 | return jQuery; 23 | }; 24 | 25 | // Expose jQuery and $ identifiers, even in AMD 26 | // (#7102#comment:10, https://github.com/jquery/jquery/pull/557) 27 | // and CommonJS for browser emulators (#13566) 28 | if ( typeof noGlobal === strundefined ) { 29 | window.jQuery = window.$ = jQuery; 30 | } 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 2" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/component-animations.less: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | .transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | tr&.in { display: table-row; } 23 | tbody&.in { display: table-row-group; } 24 | } 25 | 26 | .collapsing { 27 | position: relative; 28 | height: 0; 29 | overflow: hidden; 30 | .transition-property(~"height, visibility"); 31 | .transition-duration(.35s); 32 | .transition-timing-function(ease); 33 | } 34 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/table-row.less: -------------------------------------------------------------------------------- 1 | // Tables 2 | 3 | .table-row-variant(@state; @background) { 4 | // Exact selectors below required to override `.table-striped` and prevent 5 | // inheritance to nested tables. 6 | .table > thead > tr, 7 | .table > tbody > tr, 8 | .table > tfoot > tr { 9 | > td.@{state}, 10 | > th.@{state}, 11 | &.@{state} > td, 12 | &.@{state} > th { 13 | background-color: @background; 14 | } 15 | } 16 | 17 | // Hover states for `.table-hover` 18 | // Note: this is not available for cells or rows within `thead` or `tfoot`. 19 | .table-hover > tbody > tr { 20 | > td.@{state}:hover, 21 | > th.@{state}:hover, 22 | &.@{state}:hover > td, 23 | &:hover > .@{state}, 24 | &.@{state}:hover > th { 25 | background-color: darken(@background, 5%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/close.less: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: (@font-size-base * 1.5); 9 | font-weight: @close-font-weight; 10 | line-height: 1; 11 | color: @close-color; 12 | text-shadow: @close-text-shadow; 13 | .opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: @close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | .opacity(.5); 21 | } 22 | 23 | // Additional properties for button version 24 | // iOS requires the button element instead of an anchor tag. 25 | // If you want the anchor version, it requires `href="#"`. 26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 27 | button& { 28 | padding: 0; 29 | cursor: pointer; 30 | background: transparent; 31 | border: 0; 32 | -webkit-appearance: none; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.4", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "dist/cdn", 10 | "speed", 11 | "test", 12 | "*.md", 13 | "AUTHORS.txt", 14 | "Gruntfile.js", 15 | "package.json" 16 | ], 17 | "devDependencies": { 18 | "sizzle": "2.1.1-jquery.2.1.2", 19 | "requirejs": "2.1.10", 20 | "qunit": "1.14.0", 21 | "sinon": "1.8.1" 22 | }, 23 | "keywords": [ 24 | "jquery", 25 | "javascript", 26 | "library" 27 | ], 28 | "homepage": "https://github.com/jquery/jquery", 29 | "_release": "2.1.4", 30 | "_resolution": { 31 | "type": "version", 32 | "tag": "2.1.4", 33 | "commit": "7751e69b615c6eca6f783a81e292a55725af6b85" 34 | }, 35 | "_source": "git://github.com/jquery/jquery.git", 36 | "_target": "1.9.1 - 2", 37 | "_originalSource": "jquery" 38 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/thumbnails.less: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: @thumbnail-padding; 10 | margin-bottom: @line-height-computed; 11 | line-height: @line-height-base; 12 | background-color: @thumbnail-bg; 13 | border: 1px solid @thumbnail-border; 14 | border-radius: @thumbnail-border-radius; 15 | .transition(border .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | &:extend(.img-responsive); 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // Add a hover state for linked versions only 25 | a&:hover, 26 | a&:focus, 27 | a&.active { 28 | border-color: @link-color; 29 | } 30 | 31 | // Image captions 32 | .caption { 33 | padding: @thumbnail-caption-padding; 34 | color: @thumbnail-caption-color; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xeicon", 3 | "description": "Beautiful transformable iconic font made for the web.", 4 | "version": "2.0.0", 5 | "authors": "naver", 6 | "keywords": [ 7 | "xe", 8 | "xeicon", 9 | "xe-icon", 10 | "icon", 11 | "font" 12 | ], 13 | "homepage": "http://xpressengine.github.io/XEIcon/", 14 | "dependencies": {}, 15 | "devDependencies": {}, 16 | "license": [ 17 | "OFL-1.1", 18 | "MIT", 19 | "CC-BY-4.0" 20 | ], 21 | "main": [ 22 | "./xeicon.css", 23 | "./xeicon.min.css", 24 | "./fonts/*" 25 | ], 26 | "ignore": [ 27 | "*.json", 28 | "*.md" 29 | ], 30 | "_release": "2.0.0", 31 | "_resolution": { 32 | "type": "version", 33 | "tag": "v2.0.0", 34 | "commit": "e068464c8fb3381b1290f29ea34ceb1ccb9e9e50" 35 | }, 36 | "_source": "git://github.com/xpressengine/XEIcon.git", 37 | "_target": "~2.0.0", 38 | "_originalSource": "xeicon", 39 | "_direct": true 40 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/utilities.less: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | .clearfix(); 11 | } 12 | .center-block { 13 | .center-block(); 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | .text-hide(); 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | } 48 | 49 | 50 | // For Affix plugin 51 | // ------------------------- 52 | 53 | .affix { 54 | position: fixed; 55 | } 56 | -------------------------------------------------------------------------------- /docs/theme/bower_components/xeicon/scss/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------- 3 | 4 | @mixin xi-icon() { 5 | display: inline-block; 6 | font: normal normal normal 14px/1 xeicon; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | } 12 | 13 | @mixin xi-icon-rotate($degrees, $rotation) { 14 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}); 15 | -webkit-transform: rotate($degrees); 16 | -ms-transform: rotate($degrees); 17 | transform: rotate($degrees); 18 | } 19 | 20 | @mixin xi-icon-flip($horiz, $vert, $rotation) { 21 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}); 22 | -webkit-transform: scale($horiz, $vert); 23 | -ms-transform: scale($horiz, $vert); 24 | transform: scale($horiz, $vert); 25 | } 26 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/attributes/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | (function() { 6 | var input = document.createElement( "input" ), 7 | select = document.createElement( "select" ), 8 | opt = select.appendChild( document.createElement( "option" ) ); 9 | 10 | input.type = "checkbox"; 11 | 12 | // Support: iOS<=5.1, Android<=4.2+ 13 | // Default value for a checkbox should be "on" 14 | support.checkOn = input.value !== ""; 15 | 16 | // Support: IE<=11+ 17 | // Must access selectedIndex to make default options select 18 | support.optSelected = opt.selected; 19 | 20 | // Support: Android<=2.3 21 | // Options inside disabled selects are incorrectly marked as disabled 22 | select.disabled = true; 23 | support.optDisabled = !opt.disabled; 24 | 25 | // Support: IE<=11+ 26 | // An input loses its value after becoming a radio 27 | input = document.createElement( "input" ); 28 | input.value = "t"; 29 | input.type = "radio"; 30 | support.radioValue = input.value === "t"; 31 | })(); 32 | 33 | return support; 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/package.js: -------------------------------------------------------------------------------- 1 | // package metadata file for Meteor.js 2 | 3 | /* jshint strict:false */ 4 | /* global Package:true */ 5 | 6 | Package.describe({ 7 | name: 'twbs:bootstrap', // http://atmospherejs.com/twbs/bootstrap 8 | summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.', 9 | version: '3.3.6', 10 | git: 'https://github.com/twbs/bootstrap.git' 11 | }); 12 | 13 | Package.onUse(function (api) { 14 | api.versionsFrom('METEOR@1.0'); 15 | api.use('jquery', 'client'); 16 | var assets = [ 17 | 'dist/fonts/glyphicons-halflings-regular.eot', 18 | 'dist/fonts/glyphicons-halflings-regular.svg', 19 | 'dist/fonts/glyphicons-halflings-regular.ttf', 20 | 'dist/fonts/glyphicons-halflings-regular.woff', 21 | 'dist/fonts/glyphicons-halflings-regular.woff2' 22 | ]; 23 | if (api.addAssets) { 24 | api.addAssets(assets, 'client'); 25 | } else { 26 | api.addFiles(assets, 'client', { isAsset: true }); 27 | } 28 | api.addFiles([ 29 | 'dist/css/bootstrap.css', 30 | 'dist/js/bootstrap.js' 31 | ], 'client'); 32 | }); 33 | -------------------------------------------------------------------------------- /backend/python/upgrade-all-pip-list.md: -------------------------------------------------------------------------------- 1 | Title: 파이썬 패키지 한번에 업그레이드하기 2 | Date: 2016-04-08 21:00 3 | Category: Python 4 | Tags: python, programming, dev, scrpit, pip, regex, package 5 | Slug: upgrade-all-python-packages 6 | Author: CHANN 7 | 8 | [TIL](https://github.com/channprj/TIL)을 운영하면서 [require.io](http://requires.io) 서비스의 뱃지가 *outdated* 라는 영롱한 글자와 함께 노란불이 들어와 있는 것이 영 거슬렸음. 9 | 10 | 여러가지 방법이 있지만 요약하면 대개 아래와 같음. 11 | 12 | 1. 쉘 명령어로 해결 13 | 2. 파이썬 코드로 해결 (쉘 사용) 14 | 15 | ------ 16 | 17 | 1번의 경우 `$ pip list --outdated` 라는 쉘 스크립트와 정규표현식을 활용해서 파일을 작성 가능하지만, 쉘 스크립트와 정규표현식은 아직 내공이 좀 부족하여 파이썬으로 해결하기로 함. 18 | 19 | 그래서 2번의 경우 코드는 아래와 같음. 쉘 명령을 날리는 건 같지만 파이썬 코드로 간단히 해결 가능. 20 | 21 | ```python 22 | import pip 23 | from subprocess import call 24 | 25 | for dist in pip.get_installed_distributions(): 26 | call("pip install --upgrade " + dist.project_name, shell=True) 27 | ``` 28 | 29 | ------ 30 | 31 | ## 유의할 점 32 | 특정 버전에서만 동작하는 코드를 사용하는데 의존성 여부를 고려하지 않고 무턱대고 버전만 훅훅 올리다가는 훅 가는 수가 있음. 의존성 체크는 다음에 다루기로. 33 | 34 | ------ 35 | 36 | ## 참고 37 | 1. [Stack Overflow의 관련글](http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip) -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/exports/amd.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Register as a named AMD module, since jQuery can be concatenated with other 6 | // files that may use define, but not via a proper concatenation script that 7 | // understands anonymous AMD modules. A named AMD is safest and most robust 8 | // way to register. Lowercase jquery is used because AMD module names are 9 | // derived from file names, and jQuery is normally delivered in a lowercase 10 | // file name. Do this after creating the global so that if an AMD module wants 11 | // to call noConflict to hide this version of jQuery, it will work. 12 | 13 | // Note that for maximum portability, libraries that are not jQuery should 14 | // declare themselves as anonymous modules, and avoid setting a global if an 15 | // AMD loader is present. jQuery is a special case. For more information, see 16 | // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon 17 | 18 | if ( typeof define === "function" && define.amd ) { 19 | define( "jquery", [], function() { 20 | return jQuery; 21 | }); 22 | } 23 | 24 | }); 25 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/pager.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: @line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | &:extend(.clearfix all); 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: @pager-bg; 19 | border: 1px solid @pager-border; 20 | border-radius: @pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: @pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: @pager-disabled-color; 50 | background-color: @pager-bg; 51 | cursor: @cursor-disabled; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/core/parseHTML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "./var/rsingleTag", 4 | "../manipulation" // buildFragment 5 | ], function( jQuery, rsingleTag ) { 6 | 7 | // data: string of html 8 | // context (optional): If specified, the fragment will be created in this context, defaults to document 9 | // keepScripts (optional): If true, will include scripts passed in the html string 10 | jQuery.parseHTML = function( data, context, keepScripts ) { 11 | if ( !data || typeof data !== "string" ) { 12 | return null; 13 | } 14 | if ( typeof context === "boolean" ) { 15 | keepScripts = context; 16 | context = false; 17 | } 18 | context = context || document; 19 | 20 | var parsed = rsingleTag.exec( data ), 21 | scripts = !keepScripts && []; 22 | 23 | // Single tag 24 | if ( parsed ) { 25 | return [ context.createElement( parsed[1] ) ]; 26 | } 27 | 28 | parsed = jQuery.buildFragment( [ data ], context, scripts ); 29 | 30 | if ( scripts && scripts.length ) { 31 | jQuery( scripts ).remove(); 32 | } 33 | 34 | return jQuery.merge( [], parsed.childNodes ); 35 | }; 36 | 37 | return jQuery.parseHTML; 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/manipulation/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | (function() { 6 | var fragment = document.createDocumentFragment(), 7 | div = fragment.appendChild( document.createElement( "div" ) ), 8 | input = document.createElement( "input" ); 9 | 10 | // Support: Safari<=5.1 11 | // Check state lost if the name is set (#11217) 12 | // Support: Windows Web Apps (WWA) 13 | // `name` and `type` must use .setAttribute for WWA (#14901) 14 | input.setAttribute( "type", "radio" ); 15 | input.setAttribute( "checked", "checked" ); 16 | input.setAttribute( "name", "t" ); 17 | 18 | div.appendChild( input ); 19 | 20 | // Support: Safari<=5.1, Android<4.2 21 | // Older WebKit doesn't clone checked state correctly in fragments 22 | support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; 23 | 24 | // Support: IE<=11+ 25 | // Make sure textarea (and checkbox) defaultValue is properly cloned 26 | div.innerHTML = ""; 27 | support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; 28 | })(); 29 | 30 | return support; 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 2" 33 | }, 34 | "version": "3.3.6", 35 | "_release": "3.3.6", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.6", 39 | "commit": "81df608a40bf0629a1dc08e584849bb1e43e0b7a" 40 | }, 41 | "_source": "git://github.com/twbs/bootstrap.git", 42 | "_target": "~3.3.6", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/grunt/bs-commonjs-generator.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Grunt task for the CommonJS module generation 3 | * http://getbootstrap.com 4 | * Copyright 2014-2015 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var fs = require('fs'); 11 | var path = require('path'); 12 | 13 | var COMMONJS_BANNER = '// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.\n'; 14 | 15 | module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) { 16 | var destDir = path.dirname(destFilepath); 17 | 18 | function srcPathToDestRequire(srcFilepath) { 19 | var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/'); 20 | return 'require(\'' + requirePath + '\')'; 21 | } 22 | 23 | var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n'); 24 | try { 25 | fs.writeFileSync(destFilepath, moduleOutputJs); 26 | } catch (err) { 27 | grunt.fail.warn(err); 28 | } 29 | grunt.log.writeln('File ' + destFilepath.cyan + ' created.'); 30 | }; 31 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2015 Twitter, Inc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /docs/feeds/vcs.atom.xml: -------------------------------------------------------------------------------- 1 | 2 | Today I Learnedhttps://til.chann.kr/2016-01-20T14:28:00+09:00Git 한글 깨짐문제2016-01-20T14:28:00+09:00CHANNtag:til.chann.kr,2016-01-20:vcs/git-ko-path-name-fix<!--Summary: --> 3 | 4 | <p>인코딩 문제. 아래 한 줄이면 됨.</p> 5 | <div class="highlight"><pre><span></span>$ git config core.quotepath <span class="nb">false</span> 6 | </pre></div> 7 | 8 | 9 | <hr /> 10 | <h2>참고</h2> 11 | <ol> 12 | <li><a href="https://kldp.org/node/132431">KLDP 글</a></li> 13 | </ol> -------------------------------------------------------------------------------- /docs/feeds/editor.atom.xml: -------------------------------------------------------------------------------- 1 | 2 | Today I Learnedhttps://til.chann.kr/2016-02-08T13:00:00+09:00자주 사용하는 vim 명령어 정리2016-02-08T13:00:00+09:00CHANNtag:til.chann.kr,2016-02-08:editor/vim-frequent-command<!--Summary: --> 3 | 4 | <blockquote> 5 | <p>작성중</p> 6 | </blockquote> 7 | <hr /> 8 | <h2>참고</h2> 9 | <p>1.<a href="http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Vim/Documents/UsedVim">Joinc Wiki</a> 10 | 2. <a href="https://blog.outsider.ne.kr/540">Outsider님 블로그</a> 11 | 3. <a href="http://hyeonstorage.tistory.com/274">하이언IT님 블로그</a></p> -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/media.less: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | 23 | // Fix collapse in webkit from max-width: 100% and display: table-cell. 24 | &.img-thumbnail { 25 | max-width: none; 26 | } 27 | } 28 | 29 | .media-right, 30 | .media > .pull-right { 31 | padding-left: 10px; 32 | } 33 | 34 | .media-left, 35 | .media > .pull-left { 36 | padding-right: 10px; 37 | } 38 | 39 | .media-left, 40 | .media-right, 41 | .media-body { 42 | display: table-cell; 43 | vertical-align: top; 44 | } 45 | 46 | .media-middle { 47 | vertical-align: middle; 48 | } 49 | 50 | .media-bottom { 51 | vertical-align: bottom; 52 | } 53 | 54 | // Reset margins on headings for tighter default spacing 55 | .media-heading { 56 | margin-top: 0; 57 | margin-bottom: 5px; 58 | } 59 | 60 | // Media list variation 61 | // 62 | // Undo default ul/ol styles 63 | .media-list { 64 | padding-left: 0; 65 | list-style: none; 66 | } 67 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/image.less: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | .img-responsive(@display: block) { 10 | display: @display; 11 | max-width: 100%; // Part 1: Set a maximum relative to the parent 12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching 13 | } 14 | 15 | 16 | // Retina image 17 | // 18 | // Short retina mixin for setting background-image and -size. Note that the 19 | // spelling of `min--moz-device-pixel-ratio` is intentional. 20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) { 21 | background-image: url("@{file-1x}"); 22 | 23 | @media 24 | only screen and (-webkit-min-device-pixel-ratio: 2), 25 | only screen and ( min--moz-device-pixel-ratio: 2), 26 | only screen and ( -o-min-device-pixel-ratio: 2/1), 27 | only screen and ( min-device-pixel-ratio: 2), 28 | only screen and ( min-resolution: 192dpi), 29 | only screen and ( min-resolution: 2dppx) { 30 | background-image: url("@{file-2x}"); 31 | background-size: @width-1x @height-1x; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/event/alias.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + 7 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + 8 | "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { 9 | 10 | // Handle event binding 11 | jQuery.fn[ name ] = function( data, fn ) { 12 | return arguments.length > 0 ? 13 | this.on( name, null, data, fn ) : 14 | this.trigger( name ); 15 | }; 16 | }); 17 | 18 | jQuery.fn.extend({ 19 | hover: function( fnOver, fnOut ) { 20 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); 21 | }, 22 | 23 | bind: function( types, data, fn ) { 24 | return this.on( types, null, data, fn ); 25 | }, 26 | unbind: function( types, fn ) { 27 | return this.off( types, null, fn ); 28 | }, 29 | 30 | delegate: function( selector, types, data, fn ) { 31 | return this.on( types, selector, data, fn ); 32 | }, 33 | undelegate: function( selector, types, fn ) { 34 | // ( namespace ) or ( selector, types [, fn] ) 35 | return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); 36 | } 37 | }); 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | 4 | // Utilities 5 | @import "mixins/hide-text.less"; 6 | @import "mixins/opacity.less"; 7 | @import "mixins/image.less"; 8 | @import "mixins/labels.less"; 9 | @import "mixins/reset-filter.less"; 10 | @import "mixins/resize.less"; 11 | @import "mixins/responsive-visibility.less"; 12 | @import "mixins/size.less"; 13 | @import "mixins/tab-focus.less"; 14 | @import "mixins/reset-text.less"; 15 | @import "mixins/text-emphasis.less"; 16 | @import "mixins/text-overflow.less"; 17 | @import "mixins/vendor-prefixes.less"; 18 | 19 | // Components 20 | @import "mixins/alerts.less"; 21 | @import "mixins/buttons.less"; 22 | @import "mixins/panels.less"; 23 | @import "mixins/pagination.less"; 24 | @import "mixins/list-group.less"; 25 | @import "mixins/nav-divider.less"; 26 | @import "mixins/forms.less"; 27 | @import "mixins/progress-bar.less"; 28 | @import "mixins/table-row.less"; 29 | 30 | // Skins 31 | @import "mixins/background-variant.less"; 32 | @import "mixins/border-radius.less"; 33 | @import "mixins/gradients.less"; 34 | 35 | // Layout 36 | @import "mixins/clearfix.less"; 37 | @import "mixins/center-block.less"; 38 | @import "mixins/nav-vertical-align.less"; 39 | @import "mixins/grid-framework.less"; 40 | @import "mixins/grid.less"; 41 | -------------------------------------------------------------------------------- /backend/shell/zsh-ownership-issue-fix.md: -------------------------------------------------------------------------------- 1 | Title: zsh 소유권 문제 해결 2 | Date: 2016-06-04 20:00 3 | Category: Shell 4 | Tags: zsh, shell, terminal, cli, sh, ohmyzsh, bug, issue, fix, 터미널, 쉘, 권한, 문제해결 5 | Slug: zsh-ownership-issue-fix 6 | Author: CHANN 7 | 8 | 가끔 터미널로 작업하다 보면 아래와 같은 상황을 직면한다. 9 | 10 | ```shell 11 | Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-66-generic x86_64) 12 | 13 | * Documentation: https://help.ubuntu.com/ 14 | Last login: Sat Oct 31 15:15:36 2015 from 203.229.151.243 15 | zsh compinit: insecure directories, run compaudit for list. 16 | Ignore insecure directories and continue [y] or abort compinit [n]? 17 | ``` 18 | 19 | 이러한 상황의 문제점은 대부분 zshell과 관련된 소유권과 권한의 문제일 가능성이 큼. 특정 패키지나 라이브러리 등을 설치할 때 외부의 스크립트를 사용할 경우, 가끔 `/usr/local/share/` 의 소유권과 권한을 변경해버리기 때문. 20 | 21 | 아래의 두 가지 방법이 있음. zshell을 사용하는 OS X, Linux 모두 적용 가능. 22 | 23 | ------ 24 | 25 | ## site-functions 의 소유권 문제일 경우 26 | 27 | ```shell 28 | $ cd /usr/local/share/zsh 29 | $ sudo chown -R root:root ./site-functions 30 | ``` 31 | 32 | ------ 33 | 34 | ## zsh 권한과 소유권 문제일 경우 35 | 36 | ```shell 37 | $ cd /usr/local/share/ 38 | $ sudo chmod -R 755 zsh 39 | $ sudo chown -R root:staff zsh 40 | ``` 41 | 42 | ------ 43 | 44 | ## 참고 45 | 1. [Zsh.org의 글](http://www.zsh.org/mla/users/2012/msg00062.html) 46 | 2. [Homebrew의 이슈](https://github.com/Homebrew/homebrew/issues/7801#issuecomment-2187273) 47 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/nuget/bootstrap.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | bootstrap 5 | 3.3 6 | Bootstrap CSS 7 | Twitter, Inc. 8 | bootstrap 9 | The most popular front-end framework for developing responsive, mobile first projects on the web. 10 | http://blog.getbootstrap.com 11 | Bootstrap framework in CSS. Includes fonts and JavaScript 12 | en-us 13 | http://getbootstrap.com 14 | http://getbootstrap.com/apple-touch-icon.png 15 | https://github.com/twbs/bootstrap/blob/master/LICENSE 16 | Copyright 2015 17 | false 18 | 19 | 20 | 21 | css js less mobile-first responsive front-end framework web 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/labels.less: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label { 6 | display: inline; 7 | padding: .2em .6em .3em; 8 | font-size: 75%; 9 | font-weight: bold; 10 | line-height: 1; 11 | color: @label-color; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | border-radius: .25em; 16 | 17 | // Add hover effects, but only for links 18 | a& { 19 | &:hover, 20 | &:focus { 21 | color: @label-link-hover-color; 22 | text-decoration: none; 23 | cursor: pointer; 24 | } 25 | } 26 | 27 | // Empty labels collapse automatically (not available in IE8) 28 | &:empty { 29 | display: none; 30 | } 31 | 32 | // Quick fix for labels in buttons 33 | .btn & { 34 | position: relative; 35 | top: -1px; 36 | } 37 | } 38 | 39 | // Colors 40 | // Contextual variations (linked labels get darker on :hover) 41 | 42 | .label-default { 43 | .label-variant(@label-default-bg); 44 | } 45 | 46 | .label-primary { 47 | .label-variant(@label-primary-bg); 48 | } 49 | 50 | .label-success { 51 | .label-variant(@label-success-bg); 52 | } 53 | 54 | .label-info { 55 | .label-variant(@label-info-bg); 56 | } 57 | 58 | .label-warning { 59 | .label-variant(@label-warning-bg); 60 | } 61 | 62 | .label-danger { 63 | .label-variant(@label-danger-bg); 64 | } 65 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/nuget/bootstrap.less.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | bootstrap.less 5 | 3.3 6 | Bootstrap Less 7 | Twitter, Inc. 8 | bootstrap 9 | The most popular front-end framework for developing responsive, mobile first projects on the web. 10 | http://blog.getbootstrap.com 11 | Bootstrap framework in Less. Includes fonts and JavaScript 12 | en-us 13 | http://getbootstrap.com 14 | http://getbootstrap.com/apple-touch-icon.png 15 | https://github.com/twbs/bootstrap/blob/master/LICENSE 16 | Copyright 2015 17 | false 18 | 19 | 20 | 21 | css js less mobile-first responsive front-end framework web 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/jumbotron.less: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding-top: @jumbotron-padding; 8 | padding-bottom: @jumbotron-padding; 9 | margin-bottom: @jumbotron-padding; 10 | color: @jumbotron-color; 11 | background-color: @jumbotron-bg; 12 | 13 | h1, 14 | .h1 { 15 | color: @jumbotron-heading-color; 16 | } 17 | 18 | p { 19 | margin-bottom: (@jumbotron-padding / 2); 20 | font-size: @jumbotron-font-size; 21 | font-weight: 200; 22 | } 23 | 24 | > hr { 25 | border-top-color: darken(@jumbotron-bg, 10%); 26 | } 27 | 28 | .container &, 29 | .container-fluid & { 30 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container 31 | padding-left: (@grid-gutter-width / 2); 32 | padding-right: (@grid-gutter-width / 2); 33 | } 34 | 35 | .container { 36 | max-width: 100%; 37 | } 38 | 39 | @media screen and (min-width: @screen-sm-min) { 40 | padding-top: (@jumbotron-padding * 1.6); 41 | padding-bottom: (@jumbotron-padding * 1.6); 42 | 43 | .container &, 44 | .container-fluid & { 45 | padding-left: (@jumbotron-padding * 2); 46 | padding-right: (@jumbotron-padding * 2); 47 | } 48 | 49 | h1, 50 | .h1 { 51 | font-size: @jumbotron-heading-font-size; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/core/access.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Multifunctional method to get and set values of a collection 6 | // The value/s can optionally be executed if it's a function 7 | var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { 8 | var i = 0, 9 | len = elems.length, 10 | bulk = key == null; 11 | 12 | // Sets many values 13 | if ( jQuery.type( key ) === "object" ) { 14 | chainable = true; 15 | for ( i in key ) { 16 | jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); 17 | } 18 | 19 | // Sets one value 20 | } else if ( value !== undefined ) { 21 | chainable = true; 22 | 23 | if ( !jQuery.isFunction( value ) ) { 24 | raw = true; 25 | } 26 | 27 | if ( bulk ) { 28 | // Bulk operations run against the entire set 29 | if ( raw ) { 30 | fn.call( elems, value ); 31 | fn = null; 32 | 33 | // ...except when executing function values 34 | } else { 35 | bulk = fn; 36 | fn = function( elem, key, value ) { 37 | return bulk.call( jQuery( elem ), value ); 38 | }; 39 | } 40 | } 41 | 42 | if ( fn ) { 43 | for ( ; i < len; i++ ) { 44 | fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); 45 | } 46 | } 47 | } 48 | 49 | return chainable ? 50 | elems : 51 | 52 | // Gets 53 | bulk ? 54 | fn.call( elems ) : 55 | len ? fn( elems[0], key ) : emptyGet; 56 | }; 57 | 58 | return access; 59 | 60 | }); 61 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/badges.less: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: @font-size-small; 12 | font-weight: @badge-font-weight; 13 | color: @badge-color; 14 | line-height: @badge-line-height; 15 | vertical-align: middle; 16 | white-space: nowrap; 17 | text-align: center; 18 | background-color: @badge-bg; 19 | border-radius: @badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | 32 | .btn-xs &, 33 | .btn-group-xs > .btn & { 34 | top: 0; 35 | padding: 1px 5px; 36 | } 37 | 38 | // Hover state, but only for links 39 | a& { 40 | &:hover, 41 | &:focus { 42 | color: @badge-link-hover-color; 43 | text-decoration: none; 44 | cursor: pointer; 45 | } 46 | } 47 | 48 | // Account for badges in navs 49 | .list-group-item.active > &, 50 | .nav-pills > .active > a > & { 51 | color: @badge-active-color; 52 | background-color: @badge-active-bg; 53 | } 54 | 55 | .list-group-item > & { 56 | float: right; 57 | } 58 | 59 | .list-group-item > & + & { 60 | margin-right: 5px; 61 | } 62 | 63 | .nav-pills > li > a > & { 64 | margin-left: 3px; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /frontend/bower/how-to-use-bower.md: -------------------------------------------------------------------------------- 1 | Title: Bower 사용법 2 | Date: 2016-01-15 20:12 3 | Category: Front-End 4 | Tags: dev, bower, package manager, tool, 개발, 패키지매니져 5 | Slug: how-to-use-bower 6 | Author: CHANN 7 | 8 | 9 | [Bower](http://bower.io) 는 웹을 위한 패키지 관리도구다. 트위터에서 개발하였고, 웹 개발시 자주 쓰이는 라이브러리를 쉽고 간편하게 관리할 수 있다. `npm`, `pip`, `gem` 과는 다르게 '웹 패키지 관리도구'라서 특정 언어의 종속성을 가지고 있지 않다. 개인적으로 느낀 장단점은 아래와 같다. 10 | 11 | ## 장점 12 | * 패키지 설치 및 버전 관리, 의존성 관리 용이 13 | * HTML, CSS, JS, Font, Image 파일 등의 최적화된 패키지 14 | 15 | ## 단점 16 | * 패키지 설치장소 변경 불가, 패키지 디렉토리가 깔끔하지 않음. 17 | (예시: ~/project/bower_components/bootstrap/dist/js) 18 | * npm 에 의존적인 패키지 관리자. npm으로 bower를 설치 및 관리해야함. 19 | 20 | ------ 21 | 22 | ## 사용법 23 | ### Bower 설치 24 | 아래와 같이 설치한다. 25 | 26 | ```shell 27 | npm install -g bower 28 | ``` 29 | 30 | ------ 31 | 32 | ### 패키지 설치 33 | 패키지 설치는 `npm` 등 다른 패키지 관리도구와 비슷하다. 34 | 35 | ```shell 36 | $ bower install bootstrap 37 | ``` 38 | 39 | ---- 40 | 41 | ### 패키지 검색 42 | 아래와 같다. 43 | 44 | ```shell 45 | $ bower search bootstrap # bootstrap 패키지 전체 검색 46 | $ bower lookup bootstrap # bootstrap과 일치하는 패키지만 찾기 47 | $ bower info bootstrap # bootstrap의 버전 정보 확인 48 | ``` 49 | 50 | ---- 51 | 52 | ### 패키지 버전, 의존성 관리 53 | `node.js` 에서는 `package.json` 으로 관리하는데, bower에서도 비슷하게 `bower.json` 으로 관리를 한다. 54 | 55 | ```shell 56 | $ bower init # bower 패키지 정보를 저장 57 | ``` 58 | 59 | 패키지 설치할 때, `--save` 를 뒤에 붙여주면 설치하고 나서 `bower.json`에 자동으로 기록해준다. 60 | 61 | ---- 62 | 63 | ## 참고 64 | 1. [Bower 공식 홈페이지](http://bower.io) 65 | 2. [Bower 저장소](https://github.com/bower/bower) 66 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/bootstrap.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.6 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // Core variables and mixins 8 | @import "variables.less"; 9 | @import "mixins.less"; 10 | 11 | // Reset and dependencies 12 | @import "normalize.less"; 13 | @import "print.less"; 14 | @import "glyphicons.less"; 15 | 16 | // Core CSS 17 | @import "scaffolding.less"; 18 | @import "type.less"; 19 | @import "code.less"; 20 | @import "grid.less"; 21 | @import "tables.less"; 22 | @import "forms.less"; 23 | @import "buttons.less"; 24 | 25 | // Components 26 | @import "component-animations.less"; 27 | @import "dropdowns.less"; 28 | @import "button-groups.less"; 29 | @import "input-groups.less"; 30 | @import "navs.less"; 31 | @import "navbar.less"; 32 | @import "breadcrumbs.less"; 33 | @import "pagination.less"; 34 | @import "pager.less"; 35 | @import "labels.less"; 36 | @import "badges.less"; 37 | @import "jumbotron.less"; 38 | @import "thumbnails.less"; 39 | @import "alerts.less"; 40 | @import "progress-bars.less"; 41 | @import "media.less"; 42 | @import "list-group.less"; 43 | @import "panels.less"; 44 | @import "responsive-embed.less"; 45 | @import "wells.less"; 46 | @import "close.less"; 47 | 48 | // Components w/ JavaScript 49 | @import "modals.less"; 50 | @import "tooltip.less"; 51 | @import "popovers.less"; 52 | @import "carousel.less"; 53 | 54 | // Utility classes 55 | @import "utilities.less"; 56 | @import "responsive-utilities.less"; 57 | -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/grunt/bs-raw-files-generator.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Grunt task for generating raw-files.min.js for the Customizer 3 | * http://getbootstrap.com 4 | * Copyright 2014-2015 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var fs = require('fs'); 11 | var btoa = require('btoa'); 12 | var glob = require('glob'); 13 | 14 | function getFiles(type) { 15 | var files = {}; 16 | var recursive = type === 'less'; 17 | var globExpr = recursive ? '/**/*' : '/*'; 18 | glob.sync(type + globExpr) 19 | .filter(function (path) { 20 | return type === 'fonts' ? true : new RegExp('\\.' + type + '$').test(path); 21 | }) 22 | .forEach(function (fullPath) { 23 | var relativePath = fullPath.replace(/^[^/]+\//, ''); 24 | files[relativePath] = type === 'fonts' ? btoa(fs.readFileSync(fullPath)) : fs.readFileSync(fullPath, 'utf8'); 25 | }); 26 | return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'; 27 | } 28 | 29 | module.exports = function generateRawFilesJs(grunt, banner) { 30 | if (!banner) { 31 | banner = ''; 32 | } 33 | var dirs = ['js', 'less', 'fonts']; 34 | var files = banner + dirs.map(getFiles).reduce(function (combined, file) { 35 | return combined + file; 36 | }, ''); 37 | var rawFilesJs = 'docs/assets/js/raw-files.min.js'; 38 | try { 39 | fs.writeFileSync(rawFilesJs, files); 40 | } catch (err) { 41 | grunt.fail.warn(err); 42 | } 43 | grunt.log.writeln('File ' + rawFilesJs.cyan + ' created.'); 44 | }; 45 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/ajax/script.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../ajax" 4 | ], function( jQuery ) { 5 | 6 | // Install script dataType 7 | jQuery.ajaxSetup({ 8 | accepts: { 9 | script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 10 | }, 11 | contents: { 12 | script: /(?:java|ecma)script/ 13 | }, 14 | converters: { 15 | "text script": function( text ) { 16 | jQuery.globalEval( text ); 17 | return text; 18 | } 19 | } 20 | }); 21 | 22 | // Handle cache's special case and crossDomain 23 | jQuery.ajaxPrefilter( "script", function( s ) { 24 | if ( s.cache === undefined ) { 25 | s.cache = false; 26 | } 27 | if ( s.crossDomain ) { 28 | s.type = "GET"; 29 | } 30 | }); 31 | 32 | // Bind script tag hack transport 33 | jQuery.ajaxTransport( "script", function( s ) { 34 | // This transport only deals with cross domain requests 35 | if ( s.crossDomain ) { 36 | var script, callback; 37 | return { 38 | send: function( _, complete ) { 39 | script = jQuery(" 138 | ``` 139 | 140 | ## HTTP/2 141 | HTTP/2는 커넥션을 연결하고 한꺼번에 요청을 보내서(stream) 속도가 매우 빨라짐. simplehttp2server by google 참고. 142 | 143 | ## Lie-Fi 144 | 네트워크 인프라의 문제로 서버와의 통신이 원활하지 않음. 그럴 땐 Application Cache를 사용. 145 | 146 | ## Service Worker 147 | Background 에서 작업을 돌림. 로딩만을 위한 규격은 아님. 오프라인이나 느리게 로딩되는 것을 Service Worker 가 캐시해둠. 148 | 149 | * UI 스레드에서 분리되어 실행해야 하므로 DOM 에 대한 직접 접근/조작 불가 150 | * 자체적 글로벌 스코프 151 | * 일부 속성, API 만 허가 152 | 153 | Shared Worker는 Lifecycle을 가지고 있음. -------------------------------------------------------------------------------- /docs/theme/bower_components/bootstrap/less/mixins/grid.less: -------------------------------------------------------------------------------- 1 | // Grid system 2 | // 3 | // Generate semantic grid columns with these mixins. 4 | 5 | // Centered container element 6 | .container-fixed(@gutter: @grid-gutter-width) { 7 | margin-right: auto; 8 | margin-left: auto; 9 | padding-left: floor((@gutter / 2)); 10 | padding-right: ceil((@gutter / 2)); 11 | &:extend(.clearfix all); 12 | } 13 | 14 | // Creates a wrapper for a series of columns 15 | .make-row(@gutter: @grid-gutter-width) { 16 | margin-left: ceil((@gutter / -2)); 17 | margin-right: floor((@gutter / -2)); 18 | &:extend(.clearfix all); 19 | } 20 | 21 | // Generate the extra small columns 22 | .make-xs-column(@columns; @gutter: @grid-gutter-width) { 23 | position: relative; 24 | float: left; 25 | width: percentage((@columns / @grid-columns)); 26 | min-height: 1px; 27 | padding-left: (@gutter / 2); 28 | padding-right: (@gutter / 2); 29 | } 30 | .make-xs-column-offset(@columns) { 31 | margin-left: percentage((@columns / @grid-columns)); 32 | } 33 | .make-xs-column-push(@columns) { 34 | left: percentage((@columns / @grid-columns)); 35 | } 36 | .make-xs-column-pull(@columns) { 37 | right: percentage((@columns / @grid-columns)); 38 | } 39 | 40 | // Generate the small columns 41 | .make-sm-column(@columns; @gutter: @grid-gutter-width) { 42 | position: relative; 43 | min-height: 1px; 44 | padding-left: (@gutter / 2); 45 | padding-right: (@gutter / 2); 46 | 47 | @media (min-width: @screen-sm-min) { 48 | float: left; 49 | width: percentage((@columns / @grid-columns)); 50 | } 51 | } 52 | .make-sm-column-offset(@columns) { 53 | @media (min-width: @screen-sm-min) { 54 | margin-left: percentage((@columns / @grid-columns)); 55 | } 56 | } 57 | .make-sm-column-push(@columns) { 58 | @media (min-width: @screen-sm-min) { 59 | left: percentage((@columns / @grid-columns)); 60 | } 61 | } 62 | .make-sm-column-pull(@columns) { 63 | @media (min-width: @screen-sm-min) { 64 | right: percentage((@columns / @grid-columns)); 65 | } 66 | } 67 | 68 | // Generate the medium columns 69 | .make-md-column(@columns; @gutter: @grid-gutter-width) { 70 | position: relative; 71 | min-height: 1px; 72 | padding-left: (@gutter / 2); 73 | padding-right: (@gutter / 2); 74 | 75 | @media (min-width: @screen-md-min) { 76 | float: left; 77 | width: percentage((@columns / @grid-columns)); 78 | } 79 | } 80 | .make-md-column-offset(@columns) { 81 | @media (min-width: @screen-md-min) { 82 | margin-left: percentage((@columns / @grid-columns)); 83 | } 84 | } 85 | .make-md-column-push(@columns) { 86 | @media (min-width: @screen-md-min) { 87 | left: percentage((@columns / @grid-columns)); 88 | } 89 | } 90 | .make-md-column-pull(@columns) { 91 | @media (min-width: @screen-md-min) { 92 | right: percentage((@columns / @grid-columns)); 93 | } 94 | } 95 | 96 | // Generate the large columns 97 | .make-lg-column(@columns; @gutter: @grid-gutter-width) { 98 | position: relative; 99 | min-height: 1px; 100 | padding-left: (@gutter / 2); 101 | padding-right: (@gutter / 2); 102 | 103 | @media (min-width: @screen-lg-min) { 104 | float: left; 105 | width: percentage((@columns / @grid-columns)); 106 | } 107 | } 108 | .make-lg-column-offset(@columns) { 109 | @media (min-width: @screen-lg-min) { 110 | margin-left: percentage((@columns / @grid-columns)); 111 | } 112 | } 113 | .make-lg-column-push(@columns) { 114 | @media (min-width: @screen-lg-min) { 115 | left: percentage((@columns / @grid-columns)); 116 | } 117 | } 118 | .make-lg-column-pull(@columns) { 119 | @media (min-width: @screen-lg-min) { 120 | right: percentage((@columns / @grid-columns)); 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /docs/theme/bower_components/jquery/src/serialize.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./manipulation/var/rcheckableType", 4 | "./core/init", 5 | "./traversing", // filter 6 | "./attributes/prop" 7 | ], function( jQuery, rcheckableType ) { 8 | 9 | var r20 = /%20/g, 10 | rbracket = /\[\]$/, 11 | rCRLF = /\r?\n/g, 12 | rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, 13 | rsubmittable = /^(?:input|select|textarea|keygen)/i; 14 | 15 | function buildParams( prefix, obj, traditional, add ) { 16 | var name; 17 | 18 | if ( jQuery.isArray( obj ) ) { 19 | // Serialize array item. 20 | jQuery.each( obj, function( i, v ) { 21 | if ( traditional || rbracket.test( prefix ) ) { 22 | // Treat each array item as a scalar. 23 | add( prefix, v ); 24 | 25 | } else { 26 | // Item is non-scalar (array or object), encode its numeric index. 27 | buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); 28 | } 29 | }); 30 | 31 | } else if ( !traditional && jQuery.type( obj ) === "object" ) { 32 | // Serialize object item. 33 | for ( name in obj ) { 34 | buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); 35 | } 36 | 37 | } else { 38 | // Serialize scalar item. 39 | add( prefix, obj ); 40 | } 41 | } 42 | 43 | // Serialize an array of form elements or a set of 44 | // key/values into a query string 45 | jQuery.param = function( a, traditional ) { 46 | var prefix, 47 | s = [], 48 | add = function( key, value ) { 49 | // If value is a function, invoke it and return its value 50 | value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); 51 | s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); 52 | }; 53 | 54 | // Set traditional to true for jQuery <= 1.3.2 behavior. 55 | if ( traditional === undefined ) { 56 | traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; 57 | } 58 | 59 | // If an array was passed in, assume that it is an array of form elements. 60 | if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { 61 | // Serialize the form elements 62 | jQuery.each( a, function() { 63 | add( this.name, this.value ); 64 | }); 65 | 66 | } else { 67 | // If traditional, encode the "old" way (the way 1.3.2 or older 68 | // did it), otherwise encode params recursively. 69 | for ( prefix in a ) { 70 | buildParams( prefix, a[ prefix ], traditional, add ); 71 | } 72 | } 73 | 74 | // Return the resulting serialization 75 | return s.join( "&" ).replace( r20, "+" ); 76 | }; 77 | 78 | jQuery.fn.extend({ 79 | serialize: function() { 80 | return jQuery.param( this.serializeArray() ); 81 | }, 82 | serializeArray: function() { 83 | return this.map(function() { 84 | // Can add propHook for "elements" to filter or add form elements 85 | var elements = jQuery.prop( this, "elements" ); 86 | return elements ? jQuery.makeArray( elements ) : this; 87 | }) 88 | .filter(function() { 89 | var type = this.type; 90 | 91 | // Use .is( ":disabled" ) so that fieldset[disabled] works 92 | return this.name && !jQuery( this ).is( ":disabled" ) && 93 | rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && 94 | ( this.checked || !rcheckableType.test( type ) ); 95 | }) 96 | .map(function( i, elem ) { 97 | var val = jQuery( this ).val(); 98 | 99 | return val == null ? 100 | null : 101 | jQuery.isArray( val ) ? 102 | jQuery.map( val, function( val ) { 103 | return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; 104 | }) : 105 | { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; 106 | }).get(); 107 | } 108 | }); 109 | 110 | return jQuery; 111 | }); 112 | -------------------------------------------------------------------------------- /backend/python/unit-test.md: -------------------------------------------------------------------------------- 1 | Title: 파이썬 단위 테스트 2 | Date: 2016-07-02 19:00 3 | Category: Python 4 | Tags: python, programming, dev, scrpit, study, unittest, test, 파이썬, 프로그래밍, 개발, 스크립트, 공부, 스터디, 단위테스트, 유닛테스트 5 | Slug: unit_test 6 | Author: CHANN 7 | 8 | 파이썬은 기본적으로 제공하는 unittest(PyUnit) 모듈에서 단위 테스트를 지원. 어떤 모듈이나 함수를 작성할때 정상 작동여부를 테스트하는 과정을 거치는데, 단위 테스트를 사용하면 코드가 수정되어도 테스트를 동일하게 돌려볼 수 있음. 9 | 10 | 간단한 테스트 작성법은 아래와 같음. 11 | 12 | ```python 13 | """ 14 | unittest is the batteries-included test module in the Python standard library. Its API will be familiar to anyone who has used any of the JUnit/nUnit/CppUnit series of tools. 15 | """ 16 | import unittest 17 | 18 | def add_one(x): 19 | return x + 1 20 | 21 | # testing def have to start with 'test' word 22 | class Test_01(unittest.TestCase): 23 | def test(self): 24 | self.assertEqual(add_one(3), 5, msg="Wrong!") 25 | self.assertEqual(add_one(3), 4) 26 | 27 | # if tests are correct, return .(dot). otherwise, it returns F. 28 | class Test_02(unittest.TestCase): 29 | def test(self): 30 | self.assertEqual(add_one(4), 5) 31 | self.assertEqual(add_one(4), 5) 32 | 33 | # Run Unit test 34 | unittest.main() 35 | 36 | """Result: 37 | F. 38 | ====================================================================== 39 | FAIL: test (__main__.Test_01) 40 | ---------------------------------------------------------------------- 41 | Traceback (most recent call last): 42 | File "/Users/CHANN/git/cs-basics/test/python/unit_test.py", line 12, in test 43 | self.assertEqual(add_one(3), 5, msg="Wrong!") 44 | AssertionError: 4 != 5 : Wrong! 45 | 46 | ---------------------------------------------------------------------- 47 | Ran 2 tests in 0.001s 48 | 49 | FAILED (failures=1) 50 | """ 51 | ``` 52 | 53 | ------ 54 | 55 | ## 주로 쓰는 함수 56 | * assertEqual(A, B, msg='') : A와 B가 같은지 테스트, 같지 않은 경우 테스트가 실패하며 msg를 출력. 57 | * assertNotEqual(A, B, msg='') : A와 B가 다른지 테스트, 같은 경우 테스트가 실패하며 msg를 출력. 58 | * assertTrue(A, msg='') : A가 True인지 테스트, False인 경우 테스트가 실패하며 msg를 출력. 59 | * assertFalse(A, msg='') : A가 False인지 테스트, True인 경우 테스트가 실패하며 msg를 출력 60 | 61 | ------ 62 | 63 | ## 더 나은 방법 64 | ```python 65 | import unittest 66 | 67 | class myClass: 68 | def __init__(self): 69 | self.a = 'a' 70 | self.b = 'b' 71 | def doA(self, a): 72 | self.a = a 73 | return self.a 74 | def doB(self, b): 75 | self.b = b 76 | return self.b 77 | 78 | class testUnit (unittest.TestCase): 79 | ''' 80 | @brief test case using uniitest.TestCase 81 | ''' 82 | def setUp(self): 83 | ''' @brief this method is called before every test methods ''' 84 | pass 85 | def tearDown(self): 86 | ''' @brief this method is called after every test methods ''' 87 | pass 88 | def test001_init(self): 89 | my = myClass() 90 | self.assertTrue(my.a == 'a' and my.b == 'b') 91 | def test002_doA(self): 92 | my = myClass() 93 | a = 2 94 | # my.doA(a) 95 | self.assertTrue(my.a == a) 96 | 97 | if __name__ == '__main__': 98 | ''' 99 | test_main() 과 같이 테스트 하는 대신 100 | unittest.main() 으로 호출하여 테스트를 진행하면 전체 OK, Not OK 여부가 나오고 101 | 아래와 같이 두줄을 표시해 주면 상단의 test001_init ... ok, test002_doA ... ok 와 같이 출력됨. 102 | ''' 103 | suite = unittest.TestLoader().loadTestsFromTestCase(testUnit) 104 | unittest.TextTestRunner(verbosity=2).run(suite) 105 | ``` 106 | 107 | ------ 108 | 109 | ## 참고 110 | 1. [파이썬 공식 문서](https://docs.python.org/3/library/test.html?highlight=pyunit) 111 | 2. [파이썬 가이드 문서](http://docs.python-guide.org/en/latest/writing/tests/) 112 | 3. [Dgoon wiki](http://legacy-wiki.dgoon.net/doku.php?id=python:pyunit) 113 | 4. [지훈현서님 블로그](http://egloos.zum.com/mcchae/v/10584377) --------------------------------------------------------------------------------