Skip to content

Instantly share code, notes, and snippets.

View yamoo9's full-sized avatar
๐ŸŽ“
Blended Learning

์•ผ๋ฌด yamoo9

๐ŸŽ“
Blended Learning
  • Mentor of E.UID
  • South korea
  • X @yamoo9
View GitHub Profile
@yamoo9
yamoo9 / index.slim
Created December 19, 2012 00:06
A CodePen by ์•ผ๋ฌด. RWD Media :: jQuery Plugin - ๋ฐ˜์‘ํ˜• ์›น ๋””์ž์ธ์— ์ ์šฉ ๊ฐ€๋Šฅํ•œ ์œ ์—ฐํ•œ ๋ฏธ๋””์–ด(embed, object, iframe) ์ฒ˜๋ฆฌ jQuery ํ”Œ๋Ÿฌ๊ทธ์ธ์ž…๋‹ˆ๋‹ค.
div#page
/ vimeo ์˜์ƒ
iframe class="rwd-video" src="http://player.vimeo.com/video/48857883?title=0&byline=0&portrait=0&color=ff9933" width="400" height="300" webkitAllowFullScreen mozallowfullscreen allowFullScreen
/ youtube ์˜์ƒ
iframe class="rwd-video" width="640" height="360" src="http://www.youtube-nocookie.com/embed/rHAKK6eDsU4?list=PLvaeCFvGpjsNc9lvJ2TribIiN3-g8Bkyu&hl=ko_KR" allowfullscreen
@yamoo9
yamoo9 / _shapes.scss
Last active August 29, 2015 14:02
CSS3 ๋„ํ˜•(์›, ์‚ผ๊ฐํ˜•)์„ ๋น ๋ฅด๊ฒŒ ๊ทธ๋ฆด ์ˆ˜ ์žˆ๋Š” SASS ๋ฏน์Šค์ธ: Create Configurable CSS3 Shapes with SASS Mixins
// CSS3 ๋‘ฅ๊ทผ ํ…Œ๋‘๋ฆฌ
// https://developer.mozilla.org/ko/docs/CSS/border-radius
@mixin border-radius ($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
border-radius: $radius;
}
// CSS3 ๋ฐฐ๊ฒฝ ์œ„์น˜ ์„ค์ •
// http://www.css3.info/preview/background-origin-and-background-clip/
@yamoo9
yamoo9 / _ir+each.scss
Created June 3, 2014 04:35
์ด๋ฏธ์ง€๋Œ€์ฒด๊ธฐ๋ฒ• + SASS @each๋ฌธ ํ™œ์šฉ
// ์ด๋ฏธ์ง€ ๋Œ€์ฒด๊ธฐ๋ฒ•
// http://nicolasgallagher.com/another-css-image-replacement-technique/
// https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757c9e03dda4e463fb0d4db5a5f82d7
%ir {
font: 0/0 a;
color: transparent;
text-shadow: none;
}
// SASS ๋ฆฌ์ŠคํŠธ(Lists) ๋ฐ์ดํ„ฐ ํƒ€์ž… ์„ ์–ธ
@yamoo9
yamoo9 / _text-contrast-function.scss
Created June 3, 2014 07:55
ํ…์ŠคํŠธ/๋ฐฐ๊ฒฝ ์ƒ‰์ƒ ๋Œ€์กฐ๋ฅผ ์กฐ์ •ํ•˜๋Š” SASS ์‚ฌ์šฉ์ž ์ •์˜ ํ•จ์ˆ˜
// ๋ฐฐ๊ฒฝ์ƒ‰์ƒ์— ๋Œ€ํ•œ ๋Œ€์กฐ(contrast) ๊ธ€๊ผด ์ปฌ๋Ÿฌ๋ฅผ ์„ค์ •ํ•˜๋Š” ์‚ฌ์šฉ์ž ์ •์˜ ํ•จ์ˆ˜
@function contrast-text($bgcolor, $amount: 50%) {
$text-color: null;
// ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ
@if type-of($bgcolor) != color {
@warn "์ „๋‹ฌ๋ฐ›์€ ์ธ์ž์˜ ๋ฐ์ดํ„ฐ ํ˜•์ด ์ž˜๋ชป๋˜์—ˆ์Šต๋‹ˆ๋‹ค. color ํ˜•์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
@debug "์ „๋‹ฌ ๋ฐ›์€ ์ธ์ž $bgcolor ๊ฐ’์€ #{type-of($bgcolor)} ์ž…๋‹ˆ๋‹ค.";
}
@yamoo9
yamoo9 / config.rb
Created June 9, 2014 23:25
Compass ํ”„๋กœ์ ํŠธ config.rb
# Compass ํ”Œ๋Ÿฌ๊ทธ์ธ ์ถ”๊ฐ€
# CSS ํŒŒ์ผ ๊ธฐ๋ณธ ์ธ์ฝ”๋”ฉ(Default Encoding) ์„ค์ •
# Windows์—์„œ ํ•œ๊ธ€, ์ผ์–ด, ์ค‘๊ตญ์–ด ๋“ฑ SCSS ํŒŒ์ผ์„ CSS๋กœ ์ปดํŒŒ์ผ ์‹œ ๋ฌธ์ž ์ธ์ฝ”๋”ฉ ์—๋Ÿฌ๊ฐ€ ์ƒ๊ธธ ๊ฒฝ์šฐ
# ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์„ค์ •ํ•˜์—ฌ ๊ธฐ๋ณธ ์ธ์ฝ”๋”ฉ์„ UTF-8๋กœ ์„ค์ •ํ•˜๋ฉด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋จ.
Encoding.default_external = "utf-8"
# ํ”„๋กœ์ ํŠธ ๋‚ด ํด๋” ๊ฒฝ๋กœ ์ง€์ •
http_path = "/"
css_dir = "css"
@yamoo9
yamoo9 / improveIR.js
Last active April 22, 2016 13:22
CSS Background ์ด๋ฏธ์ง€ ๋Œ€์ฒด๊ธฐ๋ฒ•(Image Replacement Tech.) ์‚ฌ์šฉ์‹œ, ๋ฌธ์ œ๊ฐ€ ๋˜๋Š” ์ ‘๊ทผ์„ฑ์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•œ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.
/*! improveIR.js ยฉ yamoo9.net, 2014
* CSS (on), Img (off) ๋กœ์ปฌํ˜ธ์ŠคํŒ…, ์›น์„œ๋ฒ„ ํ™˜๊ฒฝ์—์„œ๋งŒ ํ…Œ์ŠคํŒ… ๊ฐ€๋Šฅ
* Windows High Contrast ๋ชจ๋“œ ํ…Œ์ŠคํŒ…์€ ๋กœ์ปฌ ํ™˜๊ฒฝ์—์„œ๋„ ๊ฐ€๋Šฅ
*/
// ์ฐธ์กฐURL
// http://blog.paciellogroup.com/2011/10/detecting-if-images-are-disabled-in-browsers/
// http://blog.paciellogroup.com/2012/08/notes-on-accessible-css-image-sprites/
// http://blog.adrianroselli.com/2012/08/css-background-images-high-contrast-mode.html
@yamoo9
yamoo9 / toggleFirstLayersVisible.jsx
Created June 23, 2014 12:10
ํฌํ† ์ƒต ์ฒซ๋ฒˆ์งธ ๋ ˆ์ด์–ด(๊ทธ๋ฃน) ํ† ๊ธ€ ์Šคํฌ๋ฆฝํŠธ
/*! toggleFirstLayersVisible.jsx(์ฒซ๋ฒˆ์งธ ๋ ˆ์ด์–ด ๋ณด์ž„/์ˆจ๊น€ ํ† ๊ธ€ ์Šคํฌ๋ฆฝํŠธ), 2013 @ yamoo9.net */
(function(docuemnt){
var firstLayers = docuemnt.layers[0];
firstLayers.visible = !firstLayers.visible;
})(activeDocument);
@yamoo9
yamoo9 / terminal_poweshell_cmd.txt
Created June 24, 2014 10:20
terminal ๋˜๋Š” powershell(installed gow) ์—์„œ Compass ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ์‹œ, ์‚ฌ์šฉ๋˜๋Š” ๋ช…๋ น์–ด
# --------------------------------------------------------------------------
# ์œˆ๋„์šฐ(Windows) CMD/Powershell + Gow(https://github.com/bmatzelle/gow/wiki)
# --------------------------------------------------------------------------
# ๊ธฐ๋ณธ ์ •๋ณด
$ whoami ์‚ฌ์šฉ์ž ์ •๋ณด๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
$ ipconfig IP ์ •๋ณด๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
$ ver windows ๋ฒ„์ „์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
# ๋‚ ์งœ/์‹œ๊ฐ„
@yamoo9
yamoo9 / Gemfile
Created June 27, 2014 10:50
bundler๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์ˆ˜์˜ gem ํŒŒ์ผ ์„ค์น˜๋ฅผ ์œ„ํ•œ Gemfile ์ฝ”๋“œ (bundle init โ†’ bundle install)
source 'http://rubygems.org'
gem 'compass', '~>1.0.0.alpha.13'
gem 'breakpoint', '~>2.4.2'
gem 'singularitygs', '~>1.2.0.rc.6'
gem 'singularity-extras', '~>1.0.0.alpha.3'
gem 'toolkit', '~>2.0.0.alpha.7'
gem 'susy', :git => 'git://github.com/ericam/susy.git', :tag => 'v1.0.rc.1'
@yamoo9
yamoo9 / grid.scss
Last active August 29, 2015 14:03
960.gs ๊ทธ๋ฆฌ๋“œ ์‹œ์Šคํ…œ ์ƒ์„ฑ๊ธฐ(Grid System Generater) Using Sass
@mixin generate-960gs (
$grid_count: 12
) {
@if($grid_count != 12 or $grid_count != 16 or $grid_count != 24) {
@warn "960 ๊ทธ๋ฆฌ๋“œ ์‹œ์Šคํ…œ์— ํ•ด๋‹นํ•˜๋Š” ์ˆซ์ž ๊ฐ’์ด ์•„๋‹™๋‹ˆ๋‹ค.";
@debug "์ž…๋ ฅํ•˜์‹  ์ „๋‹ฌ์ธ์ž $grid_count ๊ฐ’์€ #{$grid_count}(#{type-of($grid_count)}) ์ž…๋‹ˆ๋‹ค.";
}
// =======================================
// Grid Options
// =======================================