Skip to content

Instantly share code, notes, and snippets.

View tallguyjenks's full-sized avatar
🌱
Growing useful code

Bryan Jenks tallguyjenks

🌱
Growing useful code
View GitHub Profile
@tallguyjenks
tallguyjenks / package_load.R
Created August 31, 2020 16:01
Easily Load R Packages programmatically
# Package names
packages <- c('tidyverse', 'runes', 'patchwork')
# Install packages not yet installed
installed_packages <- packages %in% rownames(installed.packages())
if (any(installed_packages == FALSE)) {
install.packages(packages[!installed_packages])
}
# Packages loading
@tallguyjenks
tallguyjenks / fcpx_markers_import.py
Last active May 22, 2023 00:32 — forked from tin2tin/fcpx_markers_import.py
Grab Marker time stamps and text from Final Cut Pro X XML export and format for youtube timestamps in an output text file
#!/usr/bin/env python
import sys, datetime
from xml.etree.ElementTree import parse
xmlfile = raw_input()
if xmlfile == "":
exit()
# Converts the '64bit/32bits' timecode format into seconds
def parseFCPTimeSeconds (timeString):
---
title: "Rmarkdown"
author: "me"
date: "7/17/2020"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
#!/usr/bin/env bash
#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#
# Grab a field
# echo "hello world this is Bryan" | awk '{print $1,$5}'
#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#
# Grab a column
@tallguyjenks
tallguyjenks / examples.sh
Created May 24, 2020 05:58
Introduction to Bash Scripting
#!/usr/bin/env bash
##!/bin/bash
#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===#===
# Variables
#var1="hello"
#echo $var1
#var2="hello"