Skip to content

Instantly share code, notes, and snippets.

@jimbrig
jimbrig / links.md
Created September 7, 2020 03:09
[helpful-links.md] A list of useful websites #links #utility #data-generator
@jimbrig
jimbrig / .gitconfig
Last active October 28, 2020 03:24
[DotFiles] A collection of my Personal Laptops Configuration and Environment DotFiles (Windows10 Dev Insider) #windows10 #dotfiles #config #setup #environment #npm #vscode #r #settings
[user]
name = Jimmy Briggs
email = [email protected]
signingKey = FFD4D9440BA44BE99337C17292832E9C1B139DB6
[core]
editor = code --wait --new-window
longpaths = true
attributesFile = ~/.config/git/.gitattributes
excludesFile = ~/.config/git/.gitignore
@jimbrig
jimbrig / r-setup-script.R
Last active September 7, 2020 03:23
[R Setup Script] A collection of scripts helpful for expiditing the initial setup and configuration of R, RStudio, RTools, and other libraries in Windows 10. #setup #r #rstudio #config #windows10 #powershell #command-line #bash #r-package
# ------------------------------------------------------------------------
#
# Title : R Configuration / Setup Script
# By : Jimmy Briggs
# Date : 2019-12-20
#
# ------------------------------------------------------------------------
# NOTE: This script should be run in RStudio as an Admin...
@jimbrig
jimbrig / collapsible-markdown.md
Last active June 6, 2025 16:40
[Collapsible Markdown] #markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
cache_list <- function() {
list.files(
cache_path(),
pattern = ".qs",
ignore.case = TRUE,
recursive = TRUE,
full.names = TRUE
)
@jimbrig
jimbrig / .gistr
Created September 18, 2020 00:54
RStudio Settings Backups via reserver R Package.
gistr
@jimbrig
jimbrig / check-full.yml
Last active October 9, 2020 11:47
Github Actions for R
# NOTE: This workflow is overkill for most R packages
# check-standard.yaml is likely a better choice
# usethis::use_github_action("check-standard") will install it.
#
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
- master
@jimbrig
jimbrig / Applying-Git-Patch.md
Last active October 13, 2020 22:45
[Useful Git Commands] A listing of common git commands I use #git #version-control #github
  • If you fix a bug or create a new feature – do it in a separate branch!
git clone git://github.com/jimbrig/repo.git
cd repo
git checkout -b bugfix_branch

Before merging or starting a PR, consider creating a patch!

@jimbrig
jimbrig / original-solution.bat
Last active October 21, 2020 04:53
Windows Terminal Context Menu
:: Thanks to blak3r for creating the part to check for admin rights
:: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights
echo OFF
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
ECHO Administrator PRIVILEGES Detected!
) ELSE (
echo ######## ######## ######## ####### ########
echo ## ## ## ## ## ## ## ## ##
msys2 vs msys vs msysgit
MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin
Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows.
MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only
need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation.
MinGW provides headers and libraries so that GCC (a compiler suite,
not just a "unix/linux compiler") can be built and used against the Windows C runtime.