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
myVideo= visual.MovieStim2(win, filename) #where i is the filename | |
while myVideo.status != visual.FINISHED: | |
myVideo.draw() | |
win.flip() |
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
# A shiny app for monitoring a stock portfolio and comparing stock performance | |
# January 2021 | |
# Peer Christensen | |
# [email protected] | |
library(shiny) | |
library(shinyWidgets) | |
library(shinythemes) | |
library(plotly) | |
library(tidyverse) |
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
dbutils.fs.mount( | |
source = "wasbs://<container-name>@<storage-account-name>.blob.core.windows.net", | |
mount_point = "/mnt/Input/", | |
extra_configs = {"fs.azure.account.key.<storage-account-name>.blob.core.windows.net":"<access-key>"}) | |
# Find csv files in container | |
os.chdir(r'/dbfs/mnt/Input') | |
allFiles = glob.glob("Input/*.csv",recursive=True) |
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(tidyverse) | |
library(shiny) | |
library(reticulate) | |
Sys.setenv(RETICULATE_PYTHON="/your-path/miniconda3/envs/my_env/bin/python") | |
reticulate::use_condaenv("my_env") | |
reticulate::py_run_file("python_functions.py") | |
model <- py$get_model() |
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
FROM continuumio/miniconda3 | |
# INSTALL DEPENDENCIES | |
RUN apt-get update -y; apt-get upgrade -y; \ | |
apt-get install -y vim-tiny vim-athena ssh r-base-core \ | |
build-essential gcc gfortran g++ | |
# SETUP ENVIRONMENT | |
COPY environment.yml environment.yml | |
RUN conda env create -f environment.yml |