Skip to content

Instantly share code, notes, and snippets.

View wanderingmatt's full-sized avatar
🔍
Searching for my next adventure

Matthew Anderson wanderingmatt

🔍
Searching for my next adventure
View GitHub Profile
let colors: [String] = [
"Blue",
"Green",
"Orange",
"Purple",
"Red",
"Yellow"
]
func randomBackgroundColor() -> Color? {
@wanderingmatt
wanderingmatt / ContentView.swift
Created November 2, 2019 22:12
Fading text from state change
import SwiftUI
struct ContentView: View {
@EnvironmentObject var taos: TaoStore
@State var tao: Tao
@State var showTao = false
fileprivate func toggleShowTao() {
withAnimation(.easeInOut(duration: 0.35)) {
@wanderingmatt
wanderingmatt / gulpfile.js
Last active April 17, 2021 18:57
Basic gulpfile that handles serving, watching, compiling, and deploying to GitHub Pages.
const gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
cache = require('gulp-cache'),
concat = require('gulp-concat'),
connect = require('gulp-connect'),
del = require('del'),
ghPages = require('gulp-gh-pages-with-updated-gift'),
imagemin = require('gulp-imagemin'),
imageminPngquant = require('imagemin-pngquant'),