Code Monkey home page Code Monkey logo

drawer's Introduction

Drawer

A place to keep all my fast-taken notes about R, python, bash and other dev stuff.

Objective

Things here are just notes. These are not blogposts.

Notes here are mean to be raw unedited notes that I usually take quickly while working solving things related to programming.

If there is material for a blogpost, I can use the information to create and edit a new document in this repo

Workflows

There are two workflows: from RStudio and using .Rmd files or usin nvim.

From RStudio and .Rmd

  • Include the Rmd or md file
  • Load docmaker package (The package is in this repository)
  • To render all documents and publish in just one step: make_all_docs(T)

With nvim and .md files

  • Open terminal and type d (alias to move to drawer repo)
  • Type w and the name of the file to be written. (If it's new, remember to include the .md)
  • If there is a md file at the moment I need to copy this one to docs/
  • Run mkb (alias for mkdocs build --config-file=mkdocs.yml)
  • When done with the changes, run ghd (alias for mkdocs gh-deploy --strict --force)

Things to remember

  • If its something fast, open terminal and type dw. It will move to drawer repo and open a new file.

References

drawer's People

Contributors

ronnyhdez avatar

Stargazers

María Montero-Sánchez avatar

Watchers

James Cloos avatar  avatar

drawer's Issues

Series on how to use git for researchers

So, you are new to git and want to incorporate this tool in your workflow. If you are here probably you already now that git can give you ..

Start a series of post giving some advice on using git and github for researcher who are starting to work with this tools.

Given that I have seen things like:

  • Downloading repo and making a new one instead of forking the repo. Downside is that this does not respect the history and contributions.
  • Using branches and issues
  • using the github workflow
  • the use of the .gitignore file
  • Files to avoid including in the version control
  • Manage a collaborative project

document ggplot function and map to iterate columns

# plot_points_time <- function(variable) {
#   sr_fluxes %>% 
#     ggplot(aes(x = date, y = {{variable}}, color = tower)) +
#     geom_jitter(alpha = 0.6, size = 1.8) +
#     scale_color_manual(values = c("kaku" = "#FF3A1D", "principe" = "#75AADB")) +
#     scale_x_date(date_labels = "%b%Y", breaks = "months") +
#     theme_linedraw(base_size = 12) +
#     theme(axis.text.x = element_text(angle = 70, h = 1)) +
#     labs(x = "Date",
#          color = "Tower")
# }
# 
# sr_fluxes %>% 
#   select(-date, -time, -tower) %>% 
#   map(~plot_points_time(.))

Crear sección sobre silver searcher

ag para buscar en la terminal

silver search

ag dplyr --r : solamente en archivos R

ag dplyr -B4 -r : para que muestre las 4 lineas antes de que encuentre la palabra dplyr

notes about refactoring code to have DRY

How can I make this code with less typing:

bor <- borden_daily_500 %>% 
  select(ends_with(c("_mean")),
         gpp_dt_vut_ref, total_obs) %>% 
  mutate(site = "borden")

bar <- bartlett_daily_500 %>% 
  select(ends_with(c("_mean")),
         gpp_dt_vut_ref, total_obs) %>% 
  mutate(site = "bartlett")

mich <- michigan_daily_500 %>% 
  select(ends_with(c("_mean")),
         gpp_dt_vut_ref, total_obs) %>% 
  mutate(site = "michigan")

Take notes on new configurations for vim

There are already some notes that I kept in a lost folder in my computer, so I can take this ones, review them and organize a little bit better the information.

python notes

In the bash notes, I have mixed notes with python about conda. I should create a new file to trasladate this and also include notes that I already have for my researchand working with images.

Update notes about nvim

I have two files about vim. One of them is about the installation, but this was the first time using vimrc. Nowadays I'm using lua to configure everything so this needs to be updated.

Also, I have a second file with the most common commands that I have been using, but the formatting is a little bit confusing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.