Set gmail username and password.
sudo vi /etc/postfix/sasl_passwd
Enter username and password using the following format: [smtp.gmail.com]:587 [email protected]:PASSWORD
.l-wrap | |
width: 100% | |
max-width: 1196px | |
margin: 0 auto | |
.l-grid | |
display: grid | |
grid-gap: 52px | |
grid-template-columns: repeat(6, 1fr) |
Set gmail username and password.
sudo vi /etc/postfix/sasl_passwd
Enter username and password using the following format: [smtp.gmail.com]:587 [email protected]:PASSWORD
// | |
// ModalSegue.swift | |
// HabitTracker | |
// | |
// Created by Eivind Lindbråten on 03.09.2017. | |
// Copyright © 2017 Eivind Lindbråten. All rights reserved. | |
// | |
import UIKit |
tell application "iTunes" | |
set the sound volume to 50 -- Sett volume | |
set selected of AirPlay device "🐼 TV" to true -- Velg AirPlay device | |
open location "http://lyd.nrk.no/nrk_radio_p3_mp3_h" -- Putt inn egen radio URL | |
end tell |
import UIKit | |
protocol HabitsViewDelegate: class { | |
func habitsView(_ habitsView: HabitsView, didSelectAddButton button: UIButton) | |
} | |
class HabitsView: UIView { | |
weak var delegate: HabitsViewDelegate? |
$ xcrun scntool --verbose
| Current SceneKit version is 4.560000
| Running scntool (compiled on Jul 1 2018 01:01:55)
usage: scntool --convert file --format format [--output file]
000084a8: 7363 7269 7074 696f 6e00 2d2d 7461 7267 6574 2d70 6c61 7466 :scription.--target-platf
const [suggestions, setSuggestions] = useState([]) | |
useEffect(() => { | |
const query = `*[_type == "suggestion"] { | |
content, _id, category, | |
author->{"avatarUrl": image.asset->url, name, _id}, | |
likes[]->{_id, image{..., asset->}}, | |
comments, replied | |
}` | |
const subscription = API.listen(query, {}, {events: ['welcome', 'mutation']}) | |
.subscribe(item => { |
import SwiftUI | |
struct Model { | |
var title: String | |
var body: String | |
} | |
struct ContentView : View { | |
@State var models : [Model] = [ | |
Model(title: "First Entry", body: "first body"), |
import SwiftUI | |
struct GameDetail: View { | |
@State var nowDate = Date() | |
private var refDate: Date { | |
let formatter = DateFormatter() | |
formatter.dateFormat = "YYYY-MM-dd HH:mm:ss" | |
let rDate = formatter.date(from: "20019-10-11 12:12:12") | |
return rDate! |