Skip to content

Instantly share code, notes, and snippets.

View ibare's full-sized avatar
๐Ÿ˜ƒ
I'm happy!!

Kim Mintae ibare

๐Ÿ˜ƒ
I'm happy!!
  • Day1Company
  • Dubai, UAE
  • 22:45 (UTC +04:00)
View GitHub Profile
@ibare
ibare / google-oauth-example.js
Created July 11, 2016 09:11
Google OAuto Example
let express = require('express');
let google = require('googleapis');
let app = express();
const CLIENT_ID = 'client-id';
const CLIENT_SECRET = 'client-secret';
const REDIRECT_URL = 'redirect-url';
let OAuth2 = google.auth.OAuth2;
let oauth2Client = new OAuth2(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL);
var etLanList = {
๋ณ€์ˆ˜ : '๋ณ€์ˆ˜๋Š” ๊ฐ’์˜ ์œ„์น˜๋ฅผ ๊ธฐ์–ตํ•˜๋Š” ์ €์žฅ์†Œ์ด๋‹ค',
์กฐ๊ฑด๋ฌธ : '์กฐ๊ฑด๋ฌธ์€ ๊ฐ’์„ ๋น„๊ตํ•˜์—ฌ ์‹คํ–‰ ํ๋ฆ„์„ ๋ณ€๊ฒฝํ•˜๋Š” ๊ธฐ๋Šฅ์„ ํ•œ๋‹ค',
๋ฐ˜๋ณต๋ฌธ : '๋ฐ˜๋ณต๋ฌธ์€ ๊ฐ™์€ ํŒจํ„ด์„ ๋ฐ˜๋ณต๋˜๋Š” ์กฐ๊ฑด์—์„œ ์‹คํ–‰ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ํ•œ๋‹ค',
๋ฐฐ์—ด : '๋ฐฐ์—ด์€ ํ•˜๋‚˜์˜ ์ด๋ฆ„์„ ๊ณต์œ ํ•˜๋Š” ์—ฐ์†๋œ ๊ฐ’๋“ค์˜ ๋ชฉ๋ก์ด๋‹ค',
๊ฐ์ฒด : '๊ฐ์ฒด๋Š” ์ด๋ฆ„์„ ๊ณต์œ ํ•˜๋Š” ์—ฐ์†๋˜์ง€ ์•Š์€ ๊ฐ’๋“ค์˜ ๋ชฉ๋ก์ด๋‹ค',
ํ•จ์ˆ˜ : 'ํ•จ์ˆ˜๋Š” ์ฝ”๋“œ์˜ ๋ฌถ์Œ์ด๊ณ  ์ด๋ฆ„์„ ํ˜ธ์ถœํ•˜์—ฌ ์‹คํ–‰ํ•œ๋‹ค'
};
/*
@ibare
ibare / show.js
Last active August 29, 2015 14:16
HTML ์˜ Body ์— ๋กœ๊ทธ๋ฅผ ๋‚จ๊ธฐ๊ธฐ
function show(msg, containerTag) {
var containerTag = containerTag || 'div';
var bodyElement = document.getElementsByTagName('body')[0];
var containerElement = document.createElement(containerTag);
var textNode = document.createTextNode(msg);
containerElement.appendChild(textNode);
bodyElement.appendChild(containerElement);
}
function quarter(a) {
return div(a, 4);
}
function double(a) {
return add(a, a);
}
function add(a, b) {
return a + b;
}
function sub(a, b) {
return a - b;
}
function multi(a, b) {
return a * b;
@ibare
ibare / bs.Dom-Agenda.md
Created August 7, 2014 00:53
bs.Dom ๋ฌธ์„œ ๋ชฉ์ฐจ

bs.Dom

Overview

  • bs.Dom์€ ๋ฌด์—‡์ธ๊ฐ€ ์„ค๋ช…

๊ฐ„๋‹จํžˆ ์‹œ์ž‘ํ•˜๊ธฐ (Getting started)

  • bsJSํŒ ํ—ฌ๋กœ ์›”๋“œ