Skip to content

Instantly share code, notes, and snippets.

@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}
//
// ContentView.swift
// DualScrollView
//
// Created by Magesh Sridhar on 1/28/23.
//
import SwiftUI
import SwiftUISnappingScrollView
import Foundation
@cemolcay
cemolcay / LiveKnob-SwiftUI.swift
Created December 16, 2021 21:24
LiveKnob SwiftUI Bridge
//
// LiveKnobSwiftUI.swift
// ControlBud-SwiftUI
//
// Created by Cem Olcay on 11/3/21.
//
import UIKit
import SwiftUI
import LiveKnob
@cemolcay
cemolcay / LiveFader-SwiftUI.swift
Created December 16, 2021 21:24
LiveFader SwiftUI Bridge
//
// LiveFaderSwiftUI.swift
// ControlBud-SwiftUI
//
// Created by Cem Olcay on 11/4/21.
//
import UIKit
import SwiftUI
import LiveFader
@SergLam
SergLam / pre-commit.sh
Created March 4, 2021 21:46
Git hooks - pre-commit check example
#!/usr/bin/env bash
set -eu
failed=0
test_pattern='\b(fdescribe|fit|fcontext|xdescribe|xit|xcontext)\b'
if git diff-index -p -M --cached HEAD -- '*Tests.swift' '*Specs.swift' | grep '^+' | egrep "$test_pattern" >/dev/null 2>&1
then
echo "COMMIT REJECTED for fdescribe/fit/fcontext/xdescribe/xit/xcontext." >&2
echo "Remove focused and disabled tests before committing." >&2
@dylangolow
dylangolow / README.md
Last active March 13, 2024 08:40
Postman Pre-Request script for Firebase Auth

Postman Pre-Request Script to fetch Firebase Auth token

This pre-request script uses environment variables to fetch an auth JWT.

This Auth JWT is used in the header of all requests when testing API endpoints that use Firebase for authorization.

@SergLam
SergLam / BubbleTriangleView.swift
Created January 11, 2021 22:04
Bubble Triangle View in Swift for iOS
import UIKit
final class BubbleTriangleView: UIView {
private var viewBorderWidth: CGFloat = 3
private var radius: CGFloat = 15
private var viewFillColor: UIColor = .supAzure
private var viewBorderColor: UIColor = .white
@slightfoot
slightfoot / expand_card.dart
Created December 21, 2020 18:12
Expading cards - by Simon Lightfoot 21/12/2020
// MIT License
//
// Copyright (c) 2020 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@SergLam
SergLam / WordsFlexView.swift
Created December 10, 2020 16:32
Hashtags colored view sample implementation using UIStackViews
import UIKit
protocol WordsFlexViewDelegate: class {
func didSelectWord(word: String, intId: Int, phraseView: WordsFlexView)
}
class WordsFlexView: UIView {
enum WordsFlexViewType {
case selectable
@bverhoeve
bverhoeve / parse_gpx.py
Created November 11, 2020 13:09
Parse GPX files to Xcode format
import logging
import os
from typing import List
import gpxpy
# Use
# Put the GPX files you want to parse in a folder 'gpx_files' next to this file
# Execute the file in a terminal: 'python3 parse_gpx.py'
# The output GPX files will be in a folder called 'parsed_files'