Skip to content

Instantly share code, notes, and snippets.

View wush978's full-sized avatar
👶
Working with my baby

Wush Wu wush978

👶
Working with my baby
View GitHub Profile
@wush978
wush978 / CMakeLists.txt
Created January 29, 2013 08:03
CMakeLists.txt for Rcpp Package Project
cmake_minimum_required(VERSION 2.8)
project(RcppPackage)
find_package(LibR)
if(${LIBR_FOUND})
else()
message(FATAL_ERROR "No R...")
endif()
message(STATUS ${CMAKE_SOURCE_DIR})
execute_process(
COMMAND ${LIBR_EXECUTABLE} "--slave" "-e" "stopifnot(require('Rcpp'));cat(Rcpp:::Rcpp.system.file('include'))"
@wush978
wush978 / server.r
Created June 30, 2014 12:00
Show sessionInfo of shiny server
library(shiny)
shinyServer(function(input, output) {
output$sessionInfo <- renderPrint({
capture.output(sessionInfo())
})
})
%%cython --annotate --cplus --compile-args=-fopenmp --link-args=-fopenmp
cimport cython
from cython.parallel cimport prange, parallel, threadid
import numpy as np
cimport numpy as np
import scipy
cimport openmp
#cdef extern from "<algorithm>" namespace "std":
# cdef void sort[RI](RI first, RI last)

非常歡迎您光臨「R語言翻轉教室」(以下簡稱本網站),為了讓您能夠安心的使用本網站的各項服務與資訊,特此向您說明本網站的隱私權保護政策,以保障您的權益,請您詳閱下列內容:

一、隱私權保護政策的適用範圍 隱私權保護政策內容,包括本網站如何處理在您使用網站服務時收集到的個人識別資料。隱私權保護政策不適用於本網站以外的相關連結網站,也不適用於非本網站所委託或參與管理的人員。

二、個人資料的蒐集、處理及利用方式 當您造訪本網站或使用本網站所提供之功能服務時,我們將視該服務功能性質,請您提供必要的個人資料,並在該特定目的範圍內處理及利用您的個人資料;非經您書面同意,本網站不會將個人資料用於其他用途。 本網站在您使用服務信箱、問卷調查等互動性功能時,會保留您所提供的姓名、電子郵件地址、聯絡方式及使用時間等。 於一般瀏覽時,伺服器會自行記錄相關行徑,包括您使用連線設備的IP位址、使用時間、使用的瀏覽器、瀏覽及點選資料記錄等,做為我們增進網站服務的參考依據,此記錄為內部應用,決不對外公佈。 為提供精確的服務,我們會將收集的問卷調查內容進行統計與分析,分析結果之統計數據或說明文字呈現,除供內部研究外,我們會視需要公佈統計數據及說明文字,但不涉及特定個人之資料。

@wush978
wush978 / ntu1061r1_1.md
Last active September 18, 2019 13:24
台大 R程式語言入門 與 R程式語言與資料處理 的安裝作業須知

安裝作業

  1. 安裝R語言翻轉教室
  2. 安裝課程HahowRTutorial
  3. 安裝課程NTUR01

安裝R語言翻轉教室

請參考 安裝導引 的指示安裝R語言翻轉教室

@wush978
wush978 / thread_pool.cpp
Created August 9, 2013 01:30
c++ thread pool example(linux only)
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/move/move.hpp>
#include <iostream>
#include <unistd.h>
namespace asio = boost::asio;
@wush978
wush978 / README.md
Last active May 24, 2019 01:16
中原R課程的作業
  • 01-RBasic-02-Data-Structure-Vectors
  • 01-RBasic-07-Loading-Dataset
  • 02-RDataEngineer-01-Parsing
  • 02-RDataEngineer-02-XML
  • 02-RDataEngineer-06-Join

Due: 2019-06-06

class Postgis < Formula
desc "Adds support for geographic objects to PostgreSQL"
homepage "https://postgis.net/"
url "https://download.osgeo.org/postgis/source/postgis-2.5.2.tar.gz"
sha256 "b6cb286c5016029d984f8c440947bf9178da72e1f6f840ed639270e1c451db5e"
revision 2
bottle do
cellar :any
sha256 "b4249fd625f68664b121d896f9ef069ad3bf4469bc6fa0173b9d7aa0524bf160" => :mojave
@wush978
wush978 / README.md
Last active January 15, 2019 02:30

Publication List

  • Wush Chi-Hsuan Wu, Mi-Yen Yeh, Ming-Syan Chen. Deep Censored Learning of the Winning Price in the Real Time Bidding. KDD 2018.
  • Wush Chi-Hsuan Wu, Mi-Yen Yeh, Ming-Syan Chen. Predicting Winning Price in Real Time Bidding with Censored Data. KDD 2015: 1305-1314.
  • Chi-Chun Lin, Kun-Ta Chuang, Wush Chi-Hsuan Wu, Ming-Syan Chen. Combining Powers of Two Predictors in Optimizing Real-Time Bidding Strategy under Constrained Budget. CIKM 2016.
  • Jian Pei, Wush Chi-Hsuan Wu, Mi-Yen Yeh. On Shortest Unique Substring Queries. ICDE 2013.
  • Wush Chi-Hsuan Wu, Mi-Yen Yeh, Jian Pei. Random Error Reduction in Similarity Search on Time Series: A Statistical Approach. ICDE 2012: 858-869.
@wush978
wush978 / fread-demo.R
Created October 17, 2014 03:01
decompress bzfile and remove null string and read in fread
fread(sprintf("bzcat %s | tr -d '\\000'", filename))