Skip to content

Instantly share code, notes, and snippets.

@demun
demun / scss-lint.yml
Created August 4, 2016 04:35
SCSS 파일을 검사하는 scss lint 설정파일
# https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
# exclude 는 제외할 파일을 지정
# scss_files: "**/*.scss"
# Default severity of all linters.
severity: warning
linters:
# ! 플래그에 간격에 대한설정
BangFormat:
@demun
demun / gist:41a508c6990ac601b72d
Created July 13, 2015 03:41
서브라임텍스트 자주사용하는 플러그인 목록
Emmet
SublimeLinter
SideBarEnhancements
BracketHighlighter
SublimeCodeIntel
Alignment
SFTP
Git
jQuery
Sass
@demun
demun / config.rb
Last active February 13, 2018 12:03 — forked from yamoo9/config.rb
# Compass 플러그인 추가
# CSS 파일 기본 인코딩(Default Encoding) 설정
# Windows에서 한글, 일어, 중국어 등 SCSS 파일을 CSS로 컴파일 시 문자 인코딩 에러가 생길 경우
# 아래 코드를 설정하여 기본 인코딩을 UTF-8로 설정하면 문제가 해결됨.
Encoding.default_external = "utf-8"
# 프로젝트 내 폴더 경로 지정
http_path = "/"
css_dir = "css"
# --------------------------------------------------------------------------
# 윈도우(Windows) CMD/Powershell + Gow(https://github.com/bmatzelle/gow/wiki)
# --------------------------------------------------------------------------
# 기본 정보
$ whoami 사용자 정보를 보여줍니다.
$ ipconfig IP 정보를 보여줍니다.
$ ver windows 버전을 보여줍니다.
# 날짜/시간
@demun
demun / Preferences.sublime-settings
Created June 14, 2015 05:41
서브라임텍스트 설정
{
"font_face": "Monaco",
"font_size": 11,
// beautify 플러그인 설치후
"ignored_packages": [
"HTML-CSS-JS Prettify",
"Handlebars",
"Vintage",
"Jade",
"SublimeLinter"
@demun
demun / SideBarEnhancements
Created February 5, 2014 04:28
sublime text SideBarEnhancements
[{
"id": "side-bar-files-open-with",
"children": [
// Chrome
{
"caption": "Chrome",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
@demun
demun / index.html
Created November 7, 2013 05:12
서브라임텍스트 관련 팁
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sublime text tip</title>
</head>
<body>
<h3>Less.sublime-build</h3>
<code>
{
@demun
demun / reset.min.css
Created January 8, 2013 09:12
Eric Meyer's Reset CSS 2.0 min
/* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
--------------------------------------------------------------------------------------- */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
@demun
demun / jquery.fitvids.min.js
Created November 30, 2012 04:41
동영상을 반응형으로 만들어주는 자바스크립트
/*!
* FitVids 1.0
*
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
* Date: Thu Sept 01 18:00:00 2011 -0500
*/
(function(a){a.fn.fitVids=function(b){var c={customSelector:null};var e=document.createElement("div"),d=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];e.className="fit-vids-style";e.innerHTML="<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";d.parentNode.insertBefore(e,d);if(b){a.extend(c,b)}return this.each(function(){var f=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[s
@demun
demun / css3-mediaqueries.min.js
Created November 25, 2012 05:25
css3-mediaqueries.min.js
if(typeof Object.create!=="function"){Object.create=function(b){function a(){}a.prototype=b;return new a()}}var ua={toString:function(){return navigator.userAgent},test:function(a){return this.toString().toLowerCase().indexOf(a.toLowerCase())>-1}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1];ua.webkit=ua.test("webkit");ua.gecko=ua.test("gecko")&&!ua.webkit;ua.opera=ua.test("opera");ua.ie=ua.test("msie")&&!ua.opera;ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight==="undefined";ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!=="undefined"&&typeof XDomainRequest==="undefined";ua.ie8=ua.ie&&typeof XDomainRequest!=="undefined";var domReady=function(){var b=[];var a=function(){if(!arguments.callee.done){arguments.callee.done=true;for(var c=0;c<b.length;c++){b[c]()}}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,false)}if(ua.ie){(function(){try{document.documentEl