Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
joshbuchea / markdown-details-collapsible.md
Created May 27, 2022 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.
View markdown-details-collapsible.md

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets
@joshbuchea
joshbuchea / .env
Created May 14, 2022 — forked from joshdholtz/.env
Using Dotenv and environment variables with fastlane
View .env
STUFF = this is some stuff
View emoji-favicon-example.html
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🐣</text></svg>">
@joshbuchea
joshbuchea / index.html
Last active Jun 27, 2021
HTML5 Starter
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML5 Starter</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🐣</text></svg>">
<!-- <link rel="stylesheet" href="styles.css"> -->
<!-- <style></style> -->
</head>
View swift-detect-color-scheme.swift
// https://stackoverflow.com/a/57280180/1492782
@Environment(\.colorScheme) var colorScheme: ColorScheme
var body: some View {
Button(action: {
foo()
}) {
Image(colorScheme == .light ? "lightImage" : "darkImage")
}
}
@joshbuchea
joshbuchea / swift-extend-color-init-support-hex.swift
Last active Oct 20, 2020
Swift: Extend Color.init to support hex colors
View swift-extend-color-init-support-hex.swift
// From SO answer: https://stackoverflow.com/a/56874327/1492782
extension Color {
init(hex: String) {
let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
var int: UInt64 = 0
Scanner(string: hex).scanHexInt64(&int)
let a, r, g, b: UInt64
switch hex.count {
case 3: // RGB (12-bit)
(a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17)
@joshbuchea
joshbuchea / microdata_resume_cv.html
Created Jun 14, 2020 — forked from danielantelo/microdata_resume_cv.html
HTML5 Microdata Resume (Curriculum) Template
View microdata_resume_cv.html
<!DOCTYPE html>
<html>
<head>
<!-- Meta conf -->
<meta charset="UTF-8">
<!-- Meta info -->
<title>HTML5 Microdata Resume (CV) Template</title>
<meta name="description" content="An example of how to layout a semantic html5 page for a curriculum vitae/resume">
<meta name="keywords" content="template, html, semantic, microdata, resume, cv, curriculum, vitae">
</head>
View linkedin-unfollow-everyone.js
(() => {
let count = 0;
function getAllButtons() {
return document.querySelectorAll('button.is-following') || [];
}
async function unfollowAll() {
const buttons = getAllButtons();
View ios.settings.schemes.md

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness
View cloudSettings
{"lastUpload":"2020-04-01T03:33:25.122Z","extensionVersion":"v3.4.3"}