Skip to content

Instantly share code, notes, and snippets.

View riix's full-sized avatar

Park, Soon-Ghil riix

View GitHub Profile
@riix
riix / 20.01 JSON 객체.markdown
Created May 30, 2016 06:31
20.01 JSON 객체
@riix
riix / Atom
Last active September 23, 2015 03:10
automatic update by http://atom.io/packages/sync-settings
Atom
@riix
riix / getStyleObjec.html
Created October 29, 2013 06:15
스타일쉬트 조작하기
<!DOCTYPE html>
<html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<head>
<style type="text/css">
<!--
#foo {
padding: 10px;
background: #fff;
border: solid 10px #ff0000;
@riix
riix / url encode decode.js
Created June 21, 2013 08:14
url encode decode.js
/**
*
* URL encode / decode
* http://www.webtoolkit.info/
*
**/
var Url = {
// public method for url encoding
@riix
riix / infiniteScroll.js
Created June 20, 2013 02:28
무한 스크롤 구현
(function(){
// 목록 마지막 요소 흐림처리
$('ul.list-a').addClass('infinite-scroll');
});
var count = 2;
// 스크롤 이벤트
$(window).on('scroll',function () {
infiniteScroll();
@riix
riix / ui.mobile.js
Created April 26, 2013 07:04
ui.mobile.js
/*************************************************************************************************
* ui.mobile.js
*
* @Author : 박순길
* @Version 0.5
*
* @Searching List
* browser : Browser Detect
*
************************************************************************************************/
@riix
riix / ui.defer.js
Last active December 15, 2015 06:49
ui.defer.js
var deferCount = 0; // 중복 실행 방지
$(window).on('load', function(){
if(deferCount < 1) defer();
++deferCount;
});
function defer(){
@riix
riix / thumbs_gallery.php
Last active August 5, 2016 02:51
PHP Single Page Gallery With Thumbnails
@riix
riix / timsStamp.js
Last active December 11, 2015 12:29
Get Cache Buster Using Time Stamp
var timeStamp = new Date().getTime();
document.write('<script type="text/javascript" src="../js/ui.js?timeStamp='+timeStamp+'" charset="utf-8"><\/script>');
// or
document.write('<script type="text/javascript" src="../js/ui.js?timeStamp='+Math.floor(+new Date()/1000)+'" charset="utf-8"><\/script>');
@riix
riix / jsCacheBuster.js
Created January 23, 2013 02:09
Javascript Cache Buster
<script type="text/javascript">document.write('<script type="text/javascript" src="../js/ui.js?rand='+(parseInt(Math.random()*1000))+'" charset="utf-8"><\/script>');</script>