- Individuals and interactions over processes and tools
- Working software over comprehensive documentation
- Customer collaboration over contract negotiation
- Responding to change over following a plan
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
| # --- | |
| # jupyter: | |
| # jupytext: | |
| # text_representation: | |
| # extension: .py | |
| # format_name: percent | |
| # format_version: '1.3' | |
| # jupytext_version: 1.10.3 | |
| # kernelspec: | |
| # display_name: Python 3.8.7 64-bit |
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
| #!/usr/bin/env python | |
| # # -*- coding: utf-8 -*- | |
| # %% | |
| import urllib, json | |
| import json | |
| import re | |
| import urllib.parse | |
| from colormap import hex2rgb | |
| import argparse |
- install pyenv
- install pyenv-virtualenv plugin
- Use pyenv to manage environment
pyenv install 3.8.10
pyenv virtualenv 3.8.10 example-env-name
pyenv local cognitive-reserve
Code for reproducible example around github functions
library(stringi)
library(tidyr)
library(dplyr)
library(stringr)
example <- data.frame(LP=1:10000) %>%
rowwise() %>%
A naive proof of the concept Lua filter for removing [[ wikilinks from markdown file.
function Str (str)
return (str.text:gsub('%[%[', '')
:gsub('%]%]', ''))
endWhen the filter is saved under name cleanwiki.lua it might be used with the flag --lua-filter=cleanwiki.lua
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_models <- function(datame_name, cog_vars, eeg_components) { | |
| list_models <- list() | |
| for (cogvar in cog_vars) { # ,eeg_components | |
| for (eegvar in eeg_components) { # ,eeg_components | |
| models <- glue("model1.{cogvar}.{eegvar} <- glm({cogvar} ~ GM_Normalised + {eegvar}, {datame_name}, family = gaussian) | |
| list_models[['model.{cogvar}.{eegvar}']] <- model5.{cogvar}.{eegvar}") # nolint | |
| eval(str2expression(models)) | |
| } | |
| } | |
| return(list_models) |
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
| function Str(str) | |
| return (str.text | |
| :gsub('%[%[', '') | |
| :gsub('%]%]', '')) | |
| end |