A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
# Set a seed | |
set.seed(500) | |
library(MASS) | |
data <- Boston | |
# Check that no data is missing | |
apply(data,2,function(x) sum(is.na(x))) | |
# Train-test random splitting for linear model |
# A method for modifying only select off-diagonal items in a matrix | |
# From "Thierry" and "Ben Bolker" | |
# At http://stackoverflow.com/a/11759744/479554 | |
# A sample matrix | |
size <- 6 | |
mat <- matrix(seq_len(size ^ 2), ncol = size) | |
print(mat) | |
# A companion matrix that indicates how "off" a diagonal is: |
Download the NeverWare's ChromeOS build from http://www.neverware.com/freedownload
Extract the *.bin.zip
Convert it to VDI. vboxmanage convertdd chromiumos_image.bin chromiumos_image.vdi
mv chromiumis_image.vdi C:\t\v\chromeos\
fread(sprintf("bzcat %s | tr -d '\\000'", filename)) |
# https://www.facebook.com/groups/632755063474501/?multi_permalinks=1910139775736017¬if_id=1542238311570480¬if_t=group_highlights&ref=notif | |
t.pdf <- function(t,v){ | |
y <- GAM((v+1)/2)/sqrt(v*pi*GAM(v/2)^2)*(1+t^2/v)^(-(v+1)/2) | |
return(y) | |
} | |
t.cdf <- function(b,n,t.pdf,v){ | |
x <- seq(0,b,length=n)[2:(n-1)] | |
m <- length(x) | |
odd <- seq(1,m,2) |
#@ ExampleData4Time2Censor = read_csv(url("https://raw.githubusercontent.com/mkim0710/tidystat/master/data/ExampleData4Time2Censor.csv")) ===== | |
library(tidyverse) | |
ExampleData4Time2Censor = read_csv(url("https://raw.githubusercontent.com/mkim0710/tidystat/master/data/ExampleData4Time2Censor.csv")) | |
ExampleData4Time2Censor %>% dput | |
ExampleData4Time2Censor %>% str(give.attr = F) #---- | |
ExampleData4Time2Censor %>% as.tibble # ---- | |
# > ExampleData4Time2Censor %>% dput | |
# structure(list(PERSON_ID = 1:20, AGE_GROUP = c(15L, 15L, 15L, | |
# 15L, 15L, 15L, 15L, 15L, 15L, 15L, 15L, 15L, 15L, 15L, 15L, 15L, |
#@ ExampleData4defineDate.MDD = read_csv(url("https://raw.githubusercontent.com/mkim0710/tidystat/master/data/ExampleData4defineDate.MDD.csv")) ===== | |
library(tidyverse) | |
ExampleData4defineDate.MDD = read_csv(url("https://raw.githubusercontent.com/mkim0710/tidystat/master/data/ExampleData4defineDate.MDD.csv")) | |
ExampleData4defineDate.MDD %>% dput | |
ExampleData4defineDate.MDD %>% str(give.attr = F) #---- | |
ExampleData4defineDate.MDD %>% as.tibble # ---- | |
# > ExampleData4defineDate.MDD %>% dput | |
# structure(list(PERSON_ID = 1:20, DTH_YM = structure(c(NA, NA, | |
# 15399, 15705, 15917, 15583, NA, NA, NA, NA, NA, NA, NA, NA, 16039, |
<NotepadPlus> | |
<UserLang name="Stata" ext="do ado" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="yes" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 00* 00/// 01 02 03/* 04*/</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |