This file contains 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
@IBDesignable extension UIView { | |
/* The color of the shadow. Defaults to opaque black. Colors created | |
* from patterns are currently NOT supported. Animatable. */ | |
@IBInspectable var shadowColor: UIColor? { | |
set { | |
layer.shadowColor = newValue!.cgColor | |
} | |
get { | |
if let color = layer.shadowColor { |
This file contains 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
List { | |
Button(action: {}) { | |
Text("Add Room") | |
} | |
ForEach(store.rooms) { room in | |
RoomCell(room: room) | |
} | |
} |
This file contains 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
List(store.rooms) { room in | |
RoomCell(room: room) | |
} |
This file contains 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
var trimmedOfLinesAndSpaces: String { | |
return String(self.filter { !" \n\t\r".contains($0) }) | |
} |
This file contains 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
struct RoomDetail : View { | |
let room: Room | |
@State private var zoomed = false | |
var body: some View { | |
Image(room.imageName) | |
.resizable() | |
.aspectRatio(contentMode: .fit) | |
} | |
} |
This file contains 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 functions = require('firebase-functions'); | |
// Import Admin SDK | |
var admin = require("firebase-admin"); | |
var reqprom = require('request-promise'); | |
admin.initializeApp(functions.config().firebase); | |
exports.minutely_tick = | |
functions.pubsub.topic('minutely-tick').onPublish((event) => { | |
console.log('This job runs every 5 minutes!'); |
This file contains 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
#!/usr/bin/swift | |
import Foundation | |
struct Article: Codable { | |
let title: String | |
let description: String | |
} |
This file contains 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
// | |
// Allergen.swift | |
// SpokinModel | |
// | |
// Created by Kevin McQuown on 9/21/17. | |
// Copyright © 2017 Spokin. All rights reserved. | |
// | |
import Foundation | |
public class EmojiItem { | |
public var itemCategory: EmojiItemCategory! |
This file contains 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
// | |
// TopicsToHelpWith.swift | |
// SpokinModel | |
// | |
// Created by Kevin McQuown on 9/28/17. | |
// Copyright © 2017 Spokin. All rights reserved. | |
// | |
// swiftlint:disable force_try | |
import Foundation |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>male</key> | |
<array> | |
<dict> | |
<key>name</key> | |
<string>skinColor</string> | |
<key>displayName</key> |
NewerOlder