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">