title | author | date |
---|---|---|
Futures-Options Arbitrage Trade |
Sanjaya J Shetty |
2022-06-02 |
This file contains hidden or 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(rvest) | |
library(dplyr) | |
options(stringsAsFactors=FALSE) | |
# getting the required table from the rosetta website | |
langUrl <- "https://rosettacode.org/wiki/Rosetta_Code/Rank_languages_by_popularity/Full_list" | |
langs <- read_html(langUrl) %>% | |
html_nodes(xpath='/html/body/div/div/div[1]/div[3]/main/div[2]/div[3]/div[1]/table') %>% | |
html_table() %>% | |
data.frame() %>% |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
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) |
This file contains hidden or 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
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) |
OlderNewer