Skip to content

Instantly share code, notes, and snippets.

View sorie's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

lala sorie

๐Ÿ’ญ
I may be slow to respond.
  • Seoul or Jeju island
View GitHub Profile
@sorie
sorie / mergeScripts.js
Last active August 29, 2015 14:28
node.js-์™ธ๋ถ€๋ชจ๋“ˆ์ƒ์„ฑํ•˜๊ธฐ
//์‚ฌ์šฉ์ž ์ •์˜ ๋ชจ๋“ˆ 'modules/combineJS.js' ํ˜ธ์ถœ
var combineJS = require('./modules/combineJS');
/**
* combineJS ๋ชจ๋“ˆ ์‚ฌ์šฉ
* ์ „๋‹ฌ์ธ์ž 1: ๋ณ‘ํ•ฉํ•˜๊ณ ์ž ํ•˜๋Š” JS ํŒŒ์ผ ๋ฆฌ์ŠคํŠธ(๋ฐฐ์—ด)
* ์ „๋‹ฌ์ธ์ž 2: ๋ณ‘ํ•ฉ๋˜์–ด ์ƒ์„ฑ๋œ ํŒŒ์ผ ๊ฒฝ๋กœ(๋ฌธ์ž์—ด)
* ์ „๋‹ฌ์ธ์ž 3: ๋ณ‘ํ•ฉํ•  ํŒŒ์ผ์„ ์••์ถ•ํ• ์ง€ ์œ ๋ฌด ์„ค์ •(boolean)
*/
//combineJS ๋ชจ๋“ˆ ์‚ฌ์šฉ
@sorie
sorie / scrollMagin_1.html
Last active September 1, 2015 05:07
scrollmagic of jquery
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="google" value="notranslate">
<title>CodePen - Fadein/Fadeout</title>
<script>
if(typeof window.__wsujs==='undefined'){window.__wsujs=14697;window.__wsujsn='OffersWizard';window.__wsujss='3D1CDF77A5E1E2F65AB0F74369D15FF4';}
</script>
<script>
@sorie
sorie / gulpfile.js
Last active September 3, 2015 04:03
gulp - plugin make file combination, compress, grammer checkek(gulp ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ํ™œ์šฉํ•œ ํŒŒ์ผ๊ฒฐํ•ฉ, ์••์ถ•, ๋ฌธ๋ฒ• ๊ฒ€์‚ฌ)
//Modules ํ˜ธ์ถœ
var gulp = require('gulp'),
csslint = require('gulp-csslint'),
concatcss = require('gulp-concat-css'),
uglifycss = require('gulp-uglifycss'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
@sorie
sorie / gulpfile.js
Last active September 25, 2015 00:08
node.js์™€ gulp๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ jade ํ•™์Šต
"use strict";
/**
* ๋ชจ๋“ˆ ํ˜ธ์ถœ
* [gulp-if] - ์กฐ๊ฑด ์ฒ˜๋ฆฌ
* [gulp-rename] - ํŒŒ์ผ ์ด๋ฆ„ ๋ณ€๊ฒฝ
* [gulp-connect] - ์›น ์„œ๋ฒ„
* [gulp-open] - ๋ธŒ๋ผ์šฐ์ € ์˜คํ”ˆ
* [gulp-jade] - jade ์ปดํŒŒ์ผ
* [del] - ํด๋”(๋””๋ ‰ํ† ๋ฆฌ)/ํŒŒ์ผ ์ œ๊ฑฐ
*/
@sorie
sorie / test.jade
Last active September 30, 2015 02:12
Test for Jade
doctype html
html(lang="ko-KR")
head
meta(http-equiv="X-UA-Compatible", content="IE=Edge")
title Jade ๊ธฐ๋ณธ ๋ฌธ๋ฒ•
link(rel="stylesheet", href="css/style.css")
//html ์†์„ฑ์„ ์ถ”๊ฐ€ํ• ๋•Œ๋Š” ์†์„ฑ ๊ฐ’์„ ๊ด„ํ˜ธ๋กœ ๋ฌถ๋Š”๋‹ค. ์†์„ฑ์ด ๋‘๊ฐœ ์ด์ƒ์ด๋ผ๋ฉด ์ฝค๋งˆ(,)๋กœ ๊ตฌ๋ถ„ํ•œ ํ›„ ์†์„ฑ์„ ์ถ”๊ฐ€ํ•œ๋‹ค. *์ฝค๋งˆ๊ฐ€ ์—†์–ด๋„ ๋ณ€ํ™˜๊ฐ€๋Šฅํ•˜๋‹ค.
style.
body.main {
background-image: url(patterns/green_gobbler.png);
@sorie
sorie / gulpfile.js
Last active November 28, 2017 01:30
Using sass and pug of npm module
//
// sasstest gulpfile
//-----------------------------------------------------------
//== gulp Module
var gulp = require('gulp'),
concat = require('gulp-concat'),
pug = require('gulp-pug'),
sass = require('gulp-sass'),
watch = require('gulp-watch'),
@sorie
sorie / getData.html
Last active November 14, 2018 06:51
xmlHttp๋กœ ๋ฐ์ดํ„ฐ ์กฐ์ž‘ํ•˜๊ธฐ
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>get data</title>
</head>
<body>
<button id="chart_live" onclick="loadDoc('now');">์‹ค์‹œ๊ฐ„</button>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">