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
@echo off | |
SET JAVA_HOME=C:\Program Files\Java\jre1.8.0_281 | |
SET PATH=%PATH%:%JAVA_HOME%\bin | |
SET TGL=%DATE:~-4%%DATE:~3,2%%DATE:~0,2% | |
SET JAM=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
SET KTR_DIR=C:\OnGoing\ | |
Kitchen.bat /norep /file=%KTR_DIR%\Test.kjb /logfile=%KTR_DIR%\logs\Test_%TGL%_%JAM%.log |
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
#!/bin/bash | |
cd ~/R/C | |
wget -c https://cran.r-project.org/src/base/R-4/R-$1.tar.gz | |
tar xf R-$1.tar.gz | |
cd R-$1 | |
./configure --prefix=$HOME/Aplikasi/R-$1 \ | |
--enable-R-shlib=yes --with-blas=yes --with-lapack=yes \ | |
--with-x=no --with-readline=no | |
make | |
make check |
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
# Library | |
######### | |
library(quantmod) | |
# Get Stock Daily | |
################# | |
getSymbols.google("IDX:TLKM", env=globalenv(), | |
from="2005-04-01") | |
# Some Setup |
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
R version 3.3.3 (2017-03-06) -- "Another Canoe" | |
Copyright (C) 2017 The R Foundation for Statistical Computing | |
Platform: x86_64-w64-mingw32/x64 (64-bit) | |
R is free software and comes with ABSOLUTELY NO WARRANTY. | |
You are welcome to redistribute it under certain conditions. | |
Type 'license()' or 'licence()' for distribution details. | |
R is a collaborative project with many contributors. | |
Type 'contributors()' for more information and |
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
library(RGtk2) | |
mainWin <- gtkWindowNew(show = FALSE) | |
mainWin["title"] <- "Data Sheet" | |
mainWin$setDefaultSize(600,600) | |
cbOpen <- function(widget, window) { | |
dialog <- gtkFileChooserDialog("Choose file", window, "open", "gtk-cancel", | |
GtkResponseType["cancel"], "gtk-open", | |
GtkResponseType["accept"]) |
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
#!/bin/bash | |
# /etc/profile.d/ | |
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libodbcinst.so | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/odbc | |
export ODBCINI=$HOME/.odbc.ini | |
export ODBCSYSINI=/etc | |
export CLOUDERAIMPALAINI=/opt/cloudera/impalaodbc/lib/64/cloudera.impalaodbc.ini |