Skip to content

Instantly share code, notes, and snippets.

View kbjarkefur's full-sized avatar
🌱
seeding

Kristoffer Bjärkefur kbjarkefur

🌱
seeding
View GitHub Profile
@rcarroll901
rcarroll901 / env-notes.md
Last active May 12, 2021 05:06
Pipenv Notes

Pipenv + .env

Note that any code following a $ (e.g. $ pipenv install) should be run in the Terminal (Mac)/Command Prompt (Windows)/Command Line (Linux) in the appropriate directory.


Section 1: Pipenv

Motivation: We want our research to be reproducible. Reproducibilty requires both that the person reproducing your research (1) has access to the same version of the code and (2) uses the exact same version of the packages needed in this code. To satisfy these requirements, GitHub is used to allow the reproducer to use the exact versions of the code and

@bbdaniels
bbdaniels / Notes:
Last active July 28, 2023 18:05
Pandoc tex to docx
- Copy in cover page
- Move up references
- Remove images if necessary
@michalmikolajczyk
michalmikolajczyk / syncLoop.js
Created December 31, 2012 10:22
The syncLoop() function creates a recursive, synchronous loop executed for each element of a given array and accepts callbacks. Example appliance: wait for user input before proceeding to the next element, without the need to execute the loop asynchronously (useful for dynamic code / metaprogramming) Notice that tail recursion isn't optimized in…
/*
* The syncLoop() function creates a synchronous loop
* that executes recursively for each element of a given array
* and accepts callbacks.
*
* I needed to wait for user input inside the loop and
* could not use process the elements asynchronously
* thus, here is the syncLoop()
*/