This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************* | |
Y O U R T U R N | |
********************************************/ | |
var articles = [ | |
{ | |
author: { | |
name: 'mike', | |
email: '[email protected]' | |
}, | |
books : [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sample1.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다. | |
// | |
#include "stdafx.h" | |
#include <iterator> | |
#include <utility> | |
#include <vector> | |
#include <iostream> | |
namespace std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
namespace my | |
{ | |
namespace assign_detail | |
{ | |
template< class C > | |
class call_push_back |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/range/concepts.hpp> | |
#include <boost/range/iterator_range_core.hpp> | |
#include <algorithm> | |
#include <functional> | |
#include <iostream> | |
#include <vector> | |
// ------------------------------------------------------------- | |
// assign | |
// ------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kakao_showLoginModal = function () { | |
return new Promise(function (resolve, reject) { | |
// 소셜 로그인창을 띄운다. | |
Kakao.Auth.login({ | |
success: function (response) { | |
resolve(response); | |
}, | |
fail: function (error) { | |
reject(error); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kakaoLogin(callback) { | |
// 소셜 로그인창을 띄운다 | |
Kakao.Auth.login({ | |
success: function (authObj) { | |
// 소셜 로그인 성공 | |
Kakao.API.request({ | |
url: '/v1/user/me', | |
success: function (response) { | |
// 소셜 정보 가져오기 | |
var userName = response.properties.nickname; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 "*****************************************" |
OlderNewer