Skip to content

Instantly share code, notes, and snippets.

View yht's full-sized avatar
🎯
Focusing

Yudha Ha Te yht

🎯
Focusing
View GitHub Profile
@yht
yht / Kitchen_.bat
Created May 17, 2021 09:20
Kettle Pan & Kitchen Template
@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
@yht
yht / compile-r.sh
Created June 15, 2020 04:01
Compile R and Build Desktop RStudio Env based on compiled R
#!/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
# Library
#########
library(quantmod)
# Get Stock Daily
#################
getSymbols.google("IDX:TLKM", env=globalenv(),
from="2005-04-01")
# Some Setup
@yht
yht / Output.txt
Last active May 9, 2017 05:38
Loop Time Test
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
@yht
yht / RGtk2-Sample.R
Last active February 18, 2017 05:50
Sample Apllication on Journal of Statistical Software Issue 8, Volume 37, December 2010. RGtk2: A Graphical User Interface Toolkit for R.
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"])
@yht
yht / odbc.sh
Created November 16, 2016 10:29
ImpalaODBC Pre-Load
#!/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