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 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
# | |
# This is a Shiny web application. You can run the application by clicking | |
# the 'Run App' button above. | |
# | |
# Find out more about building applications with Shiny here: | |
# | |
# http://shiny.rstudio.com/ | |
# | |
library(shiny) |
This file contains 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 importlib import import_module | |
def pydy(cls, src: str = 'helper'): | |
class Pydy(cls): | |
pass | |
mod = import_module(src) | |
internals = mod.__dict__.items() |
This file contains 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
#' --- | |
#' title: "How to set up a project - R script" | |
#' author: "Martin Skarzynki" | |
#' date: "`r Sys.Date()`" | |
#' output: | |
#' html_document: | |
#' keep_md: true | |
#' --- | |
#' | |
#' # Step 1: Create a package/project |
This file contains 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
echo "[pytest]\naddopts = --mypy --mypy-ignore-missing-imports --doctest-modules" > pytest.ini |
This file contains 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 git | |
repo = git.Repo() | |
untracked = repo.untracked_files | |
changed_file_lists = [ | |
[file.a_path | |
for file in repo.index.diff(None).iter_change_type(change_type)] | |
for change_type in list('DMR') |
This file contains 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 git | |
repo = git.Repo() | |
untracked = repo.untracked_files | |
changed_file_lists = [ | |
[file.a_path | |
for file in repo.index.diff(None).iter_change_type(change_type)] | |
for change_type in ('D', 'M') |
This file contains 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 git | |
repo = git.Repo() | |
untracked = repo.untracked_files | |
changed_file_lists = [ | |
[file.a_path | |
for file in repo.index.diff(None).iter_change_type(change_type)] | |
for change_type in ('D', 'M') |
This file contains 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 git | |
repo = git.Repo() | |
changed_file_lists = [ | |
[file.a_path | |
for file in repo.index.diff(None).iter_change_type(change_type)] | |
for change_type in ('D', 'M') | |
] |
This file contains 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 git | |
repo = git.Repo() | |
untracked = repo.untracked_files | |
changed_file_lists = [ | |
[file.a_path | |
for file in repo.index.diff(None).iter_change_type(change_type)] | |
for change_type in ('D', 'M') |
OlderNewer