This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import PlaygroundSupport | |
| struct Screen: View { | |
| @State var size: CGSize = .zero | |
| var body: some View { | |
| //Lets Start with our Tinder Home Screen Recreate | |
| //First, we need entire background to be gray-ish color. ZStack puts different views on top of each other. | |
| ZStack { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import PlaygroundSupport | |
| struct Screen: View { | |
| var body: some View { | |
| TabView { | |
| InstagramHome().tabItem { | |
| Image(systemName: "house.fill") | |
| } | |
| Text("Instagram").tabItem { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import PanModal | |
| struct ExampleView: View { | |
| @State var detail: AnyView? = nil | |
| @State var items: [String] = ["Detail 1", "Detail 2", "Detail 3"] | |
| var body: some View { | |
| NavigationView { |
This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.
It's built for the Hugo static site generator, but could be adopted to function with any json index.
To see it in action, go to craigmod.com and press CMD-/ and start typing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Seven different types of CSS attribute selectors | |
| // This attribute exists on the element | |
| [value] | |
| // This attribute has a specific value of cool | |
| [value='cool'] | |
| // This attribute value contains the word cool somewhere in it | |
| [value*='cool'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState } from "react" | |
| import PropTypes from "prop-types" | |
| import { useSpring } from "react-spring" | |
| import Header from "./header" | |
| import Nav from "./nav" | |
| import "./layout.css" | |
| const Layout = ({ children }) => { | |
| const [navOpen, toggleNavOpen] = useState(false) |
โน๏ธ Enable iCloud end-to-end encryption:
- Nobody knows that, but iCloud actually supports end-to-end encryption (see โAdvanced Data Protection for iCloudโ) but itโs disabled by default. If you care about data privacy, you should turn it on.
System settingsโApple IDโiCloudโ SetAdvanced Data ProtectiontoOn.System settingsโApple IDโiCloudโ DisableAccess iCloud Data on the Web.
- It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path') | |
| const ogs = require('open-graph-scraper') | |
| const prompts = require('prompts') | |
| const low = require('lowdb') | |
| const FileSync = require('lowdb/adapters/FileSync') | |
| const selectDB = [ | |
| { | |
| type: 'select', | |
| name: 'db', |
