Skip to content

Instantly share code, notes, and snippets.

View blongworth's full-sized avatar

Brett Longworth blongworth

View GitHub Profile
#include <Arduino.h>
#include <TimeLib.h>
#include <SD.h>
char FileName[100];
void newFilename(char* FileName1);
void newFile(char* FileName1);
File myFile;
void setup() {
@blongworth
blongworth / gist:e8b3316fd42989be4793c533df5a81ba
Created November 28, 2021 13:11
Test speed of dbAppendTable
# Testing methods for inserting data from a file into a SQLite DB
library(DBI)
db<-dbConnect(RSQLite::SQLite(),dbname=":memory")
dbExecute(db,
"CREATE TABLE TABLE1(
MARKS INTEGER,
ROLLNUM INTEGER,
#!/usr/bin/env r
# Script to get REDICS data for Kalina
library(amstools)
library(tidyverse)
con <- conNOSAMS()
data <- getRecSR(c(148044, 148045, 148043, 144633, 159579))
write_csv(data, "REDICS_stds.csv")
@blongworth
blongworth / gist:afe0869d888fbdfc7ce290d32612d9d8
Created October 30, 2017 19:34
Boxstarter windows workstation
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
cinst neovim
cinst poshgit
cinst visualstudiocode
cinst googlechrome