Skip to content

Instantly share code, notes, and snippets.

/*******************************************
Y O U R T U R N
********************************************/
var articles = [
{
author: {
name: 'mike',
email: '[email protected]'
},
books : [
// sample1.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
//
#include "stdafx.h"
#include <iterator>
#include <utility>
#include <vector>
#include <iostream>
namespace std
// Example program
#include <iostream>
#include <boost/type_index.hpp>
using namespace std;
using namespace boost::typeindex;
template<typename T>
void fn0(const T p) {
cout << "T : " << type_id_with_cvr<T>().pretty_name() << endl;
#define BOOST_ASIO_ENABLE_CANCELIO
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
using boost::asio::ip::udp;
#include "stdafx.h"
#define BOOST_ASIO_ENABLE_CANCELIO
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <vector>
namespace my
{
namespace assign_detail
{
template< class C >
class call_push_back
#include <boost/range/concepts.hpp>
#include <boost/range/iterator_range_core.hpp>
#include <algorithm>
#include <functional>
#include <iostream>
#include <vector>
// -------------------------------------------------------------
// assign
// -------------------------------------------------------------
var kakao_showLoginModal = function () {
return new Promise(function (resolve, reject) {
// 소셜 로그인창을 띄운다.
Kakao.Auth.login({
success: function (response) {
resolve(response);
},
fail: function (error) {
reject(error);
}
function kakaoLogin(callback) {
// 소셜 로그인창을 띄운다
Kakao.Auth.login({
success: function (authObj) {
// 소셜 로그인 성공
Kakao.API.request({
url: '/v1/user/me',
success: function (response) {
// 소셜 정보 가져오기
var userName = response.properties.nickname;
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make"
echo "*****************************************"
sudo yum -y update
#sudo ln -sf /usr/share/zoneinfo/America/Los_Angeles \/etc/localtime
sudo yum -y install gcc gcc-c++ make
echo "*****************************************"