Consider a die. If the face of the die shows a number less than 6 (i.e., 1, 2, 3, 4, 5), you gain $10. However, if it shows a 6, you will lose $50.
Would you take this bet?
#!/bin/bash | |
# Update DNF packages | |
echo "Updating DNF packages..." | |
sudo dnf upgrade -y | |
# Update Snap packages | |
echo "Updating Snap packages..." | |
sudo snap refresh |
#!/bin/bash | |
SOURCE="/home/sanjaya/" | |
DESTINATION="/run/media/sanjaya/118b1f77-bf64-4f7a-890d-93ddf02ba531" | |
rsync -avz --delete --exclude='.*' "$SOURCE" "$DESTINATION" |
create_package_path <- function(r_version){ | |
r_version_character <- as.character(r_version) | |
new_path <- sub("/\\d+\\.\\d+$", | |
paste0("/", r_version_character), .libPaths()) | |
return(new_path) | |
} | |
get_old_packages <- function(old_r_version, path = NULL){ | |
if (is.null(path)) { | |
old_package_path <- create_package_path(old_r_version) |
import scala.sys.process._ | |
val hex_value = "grabc -hex".!! | |
val clipboard = java.awt.Toolkit.getDefaultToolkit.getSystemClipboard | |
val sel = new java.awt.datatransfer.StringSelection(hex_value) | |
clipboard.setContents(sel, sel) |
package oopPractice | |
object ObjectOrientation extends App { | |
// the extends App: public static void main(String[] args) | |
class Animal { // class | |
// creating fields | |
val age: Int = 0 | |
// define methods |
package fileReader | |
// four nice ways to read files in scala | |
import org.apache.commons.io.FileUtils | |
import java.io.File | |
import java.util.Scanner | |
import scala.io.Source |
title | author | date |
---|---|---|
Implementing INDIAVIX in R |
Sanjaya J Shetty |
2022-06-15 |
We would be referring to the NSE Website for calculating the India Vix Index.