Skip to content

Instantly share code, notes, and snippets.

View msaidf's full-sized avatar

Muhamad Said Fathurrohman msaidf

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*===============================================================================
kemendes data covid per Kabupaten
copyrigh of Sekolah stata 2020
================================================================================*/
cd "D:\Proyek\17_Kemendes\2. Data\covid"
*--------------------------------------------------------------------------------
* get data from kawal data
*--------------------------------------------------------------------------------
@msaidf
msaidf / dvtm-cheat-sheet
Created August 12, 2017 06:27 — forked from shreyasrk/dvtm-cheat-sheet
dvtm cheat sheet
`dvtm` is one simple, easy-to-use terminal multiplexer.
Commonly used Options:
-v prints version information to standard output, then exits.
-m <mod> set default modifier at runtime.
-d escdelay set the delay ncurses waits before deciding if a character that
might be part of an escape sequence is actually part of an
escape sequence.
-h nnn set the scrollback history buffer size at runtime.
@msaidf
msaidf / server.R
Created October 12, 2015 14:24 — forked from gsee/server.R
simple streaming shiny plot
set.seed(42)
dat <- rnorm(1)
shinyServer(function(input, output) {
fetchData <- reactive(function() {
invalidateLater(1000)
qt <- rnorm(1)
dat <<- c(dat, qt)
dat
})
output$plot_dat <- reactivePlot(function() { plot(fetchData(), type='l') })
@msaidf
msaidf / recode.R
Last active January 2, 2021 16:41 — forked from hadley/recode.R
recode.R
recode <- function(df, ..., match = c("first", "last")) {
match <- match.arg(match)
cases <- lapply(list(...), as.case)
if (identical(match, "last")) cases <- rev(cases)
n <- nrow(df)
out <- rep(NA, length(n)) # logical will be upcast as needed
# Simple loop-y implementation
@msaidf
msaidf / tmux-cheatsheet.markdown
Last active January 2, 2021 16:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname