万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    AppDelegate.swiftでURLから起動の時

        func application( _: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
            for item in options.userActivities {
                if item.activityType == NSUserActivityTypeBrowsingWeb {
                    // URLから起動の時はここにくる
                }
            }
    
            return UISceneConfiguration(
                name: "Default Configuration",
                sessionRole: connectingSceneSession.role
            )
        }

    UIProgressBarの色の変更の注意点

    UIProgressBarの色の変更

    一見、XcodebackgroundColortintColorを使うのと思ってしまうが それをやると微妙に色合いが変になる!

    こいつらは.clearとかにしておく。

    https://developer.apple.com/documentation/uikit/uiprogressview

    実際のゲージprogressTintColorと背景色trackTintColorを使おう。

    Flutter for Webでのエラー色々

    analyticsがない https://github.com/FirebaseExtended/flutterfire/issues/3017

    messagingがない https://github.com/FirebaseExtended/flutterfire/issues/7461

    <body>
      <!-- This script installs service_worker.js to provide PWA functionality to
           application. For more information, see:
           https://developers.google.com/web/fundamentals/primers/service-workers -->
      <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-app.js"></script>
      <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-analytics.js"></script>
      <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-firestore.js"></script>
      <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-auth.js"></script>
    
      <!-- Web設定 -->
      <script src="https://www.gstatic.com/firebasejs/9.0.1/firebase-messaging.js"></script>
    
      <!-- Firebase Devの設定 -->
      <script type="module">
        // Import the functions you need from the SDKs you need
        import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.2/firebase-app.js";
        import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.6.2/firebase-analytics.js";
        // TODO: Add SDKs for Firebase products that you want to use
        // https://firebase.google.com/docs/web/setup#available-libraries
    
        // Your web app's Firebase configuration
        // For Firebase JS SDK v7.20.0 and later, measurementId is optional
        const firebaseConfig = {
    自分の設定で
    
        };
    
        // こっちはダメ
        // const app = initializeApp(firebaseConfig);
        // const analytics = getAnalytics(app);
        // Initialize Firebase
        firebase.initializeApp(firebaseConfig);
        firebase.analytics();
      </script>