Skip to content

Instantly share code, notes, and snippets.

View jacobsapps's full-sized avatar

Jacob Bartlett jacobsapps

View GitHub Profile
@jacobsapps
jacobsapps / Jacob Bartlett.tex
Last active September 16, 2024 20:06
Resume
\documentclass[11pt, oneside]{article}
\usepackage[margin=0.5in]{geometry}
\geometry{letterpaper}
\usepackage[parfill]{parskip}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{xcolor}
\pagecolor{white}
\usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue]{hyperref}
\pagestyle{empty}
@jacobsapps
jacobsapps / vprintf.c
Created May 26, 2022 09:17
C code for vprintf
// http://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/vfprintf.c;h=fc370e8cbc4e9652a2ed377b1c6f2324f15b1bf9;hb=3321010338384ecdc6633a8b032bb0ed6aa9b19a
#include <ctype.h>
#include <limits.h>
#include <printf.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@jacobsapps
jacobsapps / printf.c
Created May 26, 2022 09:17
C code for printf
// http://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/printf.c;h=4c8f3a2a0c38ab27a2eed4d2ff3b804980aa8f9f;hb=3321010338384ecdc6633a8b032bb0ed6aa9b19a
#include <libioP.h>
#include <stdarg.h>
#include <stdio.h>
#undef printf
/* Write formatted output to stdout from the format string FORMAT. */
/* VARARGS1 */
@jacobsapps
jacobsapps / EfficientPrint.swift
Last active May 26, 2022 09:51
Efficient Print for Swift
/// An alternative to the print function which allows for better security and efficiency in release builds.
///
/// Release configurations: do nothing.
/// Debug configurations: write the textual representations of the given items into the standard output.
///
/// - Parameters:
/// - items: Zero or more items to print.
/// - separator: A string to print between each item. The default is a single
/// space (`" "`).
/// - terminator: The string to print after all items have been printed. The
public struct SkeletonableView<Content: View, Model: Collection>: View {
private var data: Model
private var placeholder: Model
@State private var timeoutRemaining: Int = 5
private let content: (Model) -> Content
private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
public init(data: Model,
placeholder: Model,