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
import pandas as pd | |
import numpy as np | |
import sys | |
import time | |
loop_result = [] | |
apply_result = [] | |
# ////////////////////////////////////////////////////////////////////////////// | |
df_big = pd.DataFrame(np.random.random_sample((5000, 2)), columns=["X", "Y"]) |
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 <memory> | |
#include <vector> | |
template<typename T, typename... Args> | |
std::unique_ptr<T> make_unique(Args&&... args) | |
{ | |
return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); | |
} |
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 <chrono> | |
#include <string> | |
#include <iostream> | |
#include "CumBuffer.h" | |
typedef std::chrono::duration<int, std::milli> millisecs_t; | |
typedef std::chrono::duration<long long, std::micro> microsecs_t; | |
typedef enum _ENUM_TIME_RESOLUTION_ |
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 "CumBuffer.h" | |
CumBuffer buffering; | |
if(cumbuffer_defines::OP_RSLT_OK == buffering.Init(9)) //버퍼길이 9 byte로 초기화 | |
{ | |
return false; | |
} | |
char data [100]; |
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
//Single Producer Single Consumer lock free queue using array | |
//Non-blocking operation | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <thread> | |
#include <unistd.h> | |
#include <atomic> |
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 request = require('request') | |
var Iconv1 = require('iconv').Iconv | |
var cheerio = require('cheerio'); | |
//---------------------------------------------------------------------------------------------------------------------- | |
//detailed info | |
request({uri: 'http://cleanair.seoul.go.kr/air_city.htm?method=measure', encoding: 'binary'}, | |
function(err, response, body) { | |
var strContents = new Buffer(body, 'binary') |