Skip to content

Instantly share code, notes, and snippets.

View sokcuri's full-sized avatar

Sokcuri sokcuri

View GitHub Profile
(function(){var arr = []; document.querySelectorAll('.td_article input').forEach(i => { arr.push(i.value); }); if (confirm("댓글을 삭제하시겠습니까?")) { document.frmDelete.targetids.value = arr.join(','); document.frmDelete.submit(); } }})();
@sokcuri
sokcuri / keybase.md
Created September 15, 2018 07:55
proof

Keybase proof

I hereby claim:

  • I am sokcuri on github.
  • I am sokcuri (https://keybase.io/sokcuri) on keybase.
  • I have a public key whose fingerprint is E4FC 4B26 961D 717E EB8E 8A0A 705C A29C DEB4 AE74

To claim this, I am signing this object:

@sokcuri
sokcuri / 앞면뒷면.bat
Created August 30, 2018 16:10
Bat 파일로 60/40 확률 동전 던지기 도박 프로그램을 만들기
@echo off
SET /A test=%RANDOM% %% 100
IF %test% leq 60 (
echo 앞면
) else (
echo 뒷면
)
@sokcuri
sokcuri / twitter_night_mode.js
Last active September 1, 2017 08:39
트위터 야간모드 스크립트
(function(){if(document.cookie.indexOf('night_mode=1')==-1){if(confirm('야간 모드를 켭니다')){document.cookie='night_mode=1';}}else{if(confirm('간 모드를 끕니다')){document.cookie='night_mode=0';}}})()
@sokcuri
sokcuri / carousel.html
Created July 20, 2017 00:00
Carousel Slides for BaeminFresh
function getCurrentSlide() {
return document.querySelector('.main_slides_lst li:not([style*="display: none"])');
}
function extractSlideNumber(slideElement) {
return Number.parseInt(slideElement.className.replace(/s([0-9]+)/, '$1'));
}
function getPagination(num) {
return document.querySelector(`.slides_pagination li:nth-child(${num}) a`);
html, body {
height: 100%;
}
body {
font-family: "Spoqa Han Sans";
}
body, header, nav, section, div, footer, ul, dd {
margin: 0;
const Template = {
NavigateTab: `<div class="badge">{{clickCount}}</div><div class="content" id="{{id}}"><span>{{text}}</span></div>`,
Section: `<div class="pageHeader"><h3>{{title}}</h3></div><p>{{content}}</p>`
}
const TabInfo = [
{
id: 'position',
text: 'About me'
},
@sokcuri
sokcuri / tabUI.css
Created July 17, 2017 01:02
우아한테크캠프 Tab UI Refactoring 과제
html, body {
height: 100%;
}
body {
font-family: "Spoqa Han Sans";
}
body, header, nav, section, div, footer, ul, dd {
margin: 0;