Skip to content

Instantly share code, notes, and snippets.

@chrismacke
chrismacke / libraw.sh
Created October 17, 2025 15:05
Build macOS Universal LibRaw dylib
#!/bin/bash
set -euo pipefail
LIBRAW_VERSION="${LIBRAW_VERSION:-0.21.1}"
LCMS2_VERSION="${LCMS2_VERSION:-2.15}"
DEPLOY_TARGET="${MACOSX_DEPLOYMENT_TARGET:-11.0}"
ARCHS=(arm64 x86_64)
ROOT_DIR="$(pwd)"
struct ContentView: View {
@State private var hoveredIndex: Int = 1
@State private var cellHeight: CGFloat = 50
@State private var lastCellHeight: CGFloat = 50
var body: some View {
ScrollViewReader { proxy in
ScrollView() {
VStack(spacing: 0){
1. Create variables for each form element.
2. When the post button is clicked, add the new post to your posts array as an object.
3. Using concatenation, format each post to read "Payee paid recipient amount for reason."
4. Loop through each post and append it to the div with an ID of "wall"
5. Add the jQuery template plugin to your html file.
6. In your HTML file, create a template with an ID of "postTemplate"
7. Inside your template, add HTML for each post and use placeholders for the data with ${payee}, ${amount}, etc.
8. In your JS file, add the following code:
9. Add some style to your posts by making the name of the payee and recipient bold. Then make the payment amount bold and green.
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/wall.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
<script src="js/wall.js"></script>
<title>Venmo Wall</title>
</head>
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/wall.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="js/wall.js"></script>
<title>Venmo Wall</title>
</head>
<body>