Oddbean new post about | logout
 LOL in that case those folks need a middleman lmaoooo 
 Imagine needing a middleman to use your Bitcoin
https://media.tenor.com/jDJkh3w0wTAAAAAC/gregzaj1-ln_strike.gif 
 I dont wanna zap devs so Im afraid to zap the wrong one I better sit here and look at my feet 🦶🦶 
 Yes. Looking at my feet. Much safer. Nostr will thrive if I look at my feet 😂😂💀 
  --
//  ContentView.swift
//  Trivia_App
//
//  Created by Maciej Zak on 12/05/19.
//

import SwiftUI

struct ContentView: View {
    @State private var score = 0
    @State private var isCorrect = false

    let categories = ["Science", "History", "Geography", "Art", "Music"]

    var body: some View {
        NavigationView {
            ScrollView {
                VStack(spacing: 10) {
                    Text("Welcome to Trivia App!")
                        .font(.title)
                        .padding()

                    ForEach(categories, id: \.self) { category in
                        SectionHeader(category: category)

                        ScrollView {
                            ForEach(questionsByCategory[category] ?? [], id: \.0) { (index, question) in
                                QuestionView(question: question, isCorrect: $isCorrect, score: $score)
                                    .onReceive(isCorrect.$isCorrect) { _ in
                                        if isCorrect {
                                            score += 1
                                            isCorrect = false
                                        }
                                    }
                                .padding()
                            }
                        }
                    }

                    Text("\(score) out of \(categories.count)")
                        .font(.title2)
                        .padding()
                }
                .onAppear {
                    isCorrect = false
                }
            }
            .navigationBarTitle("Trivia App")
        }
    }
} 
 😂 
  Let r be 1 - (5 + (-642)/(-9)). Solve -r*c + 7*c = -32 for c.
A: 2

/anna 
 
    <template>
        <div id="app">
            <router-view></router-view>
            <button @click="test">点击</button>
        </div>
    </template>
    <script lang='ts'>
    import { Component, Vue } from 'vue-property-decorator'
    @Component({
        components: {
            // 组件
        }
    })
    export default class App extends Vue{
        test(){
            console.log('测试')
        }
    }
    </script> 
 😂