並び順

ブックマーク数

期間指定

  • から
  • まで

361 - 400 件 / 400件

新着順 人気順

setterの検索結果361 - 400 件 / 400件

  • Meet async/await in Swift - WWDC21 - Videos - Apple Developer

    Streaming is available in most browsers, and in the Developer app. Swift now supports asynchronous functions — a pattern commonly known as async/await. Discover how the new syntax can make your code easier to read and understand. Learn what happens when a function suspends, and find out how to adapt existing completion handlers to asynchronous functions. Resources SE-0296: Async/await SE-0297: Con

      Meet async/await in Swift - WWDC21 - Videos - Apple Developer
    • Node.js — Node v19.4.0 (Current)

      Notable Changes buffer: (SEMVER-MINOR) add buffer.isUtf8 for utf8 validation (Yagiz Nizipli) #45947 http: (SEMVER-MINOR) improved timeout defaults handling (Paolo Insogna) #45778 net: add autoSelectFamily global getter and setter (Paolo Insogna) #45777 os: (SEMVER-MINOR) add availableParallelism() (Colin Ihrig) #45895 util: add fast path for text-decoder fatal flag (Yagiz Nizipli) #45803 Commits [

        Node.js — Node v19.4.0 (Current)
      • Server-side prototype pollution: Black-box detection without the DoS

        Server-side prototype pollution: Black-box detection without the DoS Published: 15 February 2023 at 16:30 UTC Updated: 28 March 2023 at 09:50 UTC Server-side prototype pollution is hard to detect black-box without causing a DoS. In this post, we introduce a range of safe detection techniques, which we've also implemented in an open source Burp Suite extension. You can shortly try these out for you

          Server-side prototype pollution: Black-box detection without the DoS
        • BigQuery テーブルチューニングに効果的なクラスタリングが、既存テーブルにも追加できるようになりました! | DevelopersIO

          BigQuery テーブルチューニングに効果的なクラスタリングが、既存テーブルにも追加できるようになりました! こんにちは、みかみです。 BigQuery で、テーブル作成後にクラスタリングカラムを追加できるようになったそうです! April 21, 2021 | BigQuery Release notes クラスタリング仕様の変更 | BigQuery ドキュメント リリースノートによると、2020/10 からサポート開始されてたんですね。(しらなんだ。。 やりたいこと BigQuery の既存テーブルにクラスタリングを追加したい Python クライアントライブラリ経由でもクラスタリングを追加できるのか確認したい クラスタリングって何? BigQuery でクラスタ化テーブルを作成すると、テーブルのスキーマ内の 1 つ以上の列の内容に基づいてテーブルのデータが自動的に編成されます。指

            BigQuery テーブルチューニングに効果的なクラスタリングが、既存テーブルにも追加できるようになりました! | DevelopersIO
          • What you need to know about SQLite

            Have you heard? SQLite is taking the web by storm. The widespread belief has been that SQLite isn’t a production-grade database for web apps. But lately, this sentiment is starting to change. SQLite is already just about everywhere else—smartphones, TVs, web browsers, desktop applications—so why now for web apps? Why now for Rails? It’s basically this: computers have gotten faster, and Rails has f

              What you need to know about SQLite
            • なぜPythonにはsetter/getterメソッドがないのか? - Qiita

              概要 JavaやC++などの他のオブジェクト指向言語ではsetter/getterメソッドの使用が推奨されているが、Pythonには存在しない。 もともとJavaやC++に触れていた僕には「なぜPythonにはsetter/getterメソッドがないのか?」がすごく疑問だった。 さらに、Javaなどの言語の資料では 「クラス内部の変数はprivateにして隠蔽せよ」 と書いてあるが、逆にPythonの資料では 「privateはなるべく使わずpublicを使え」 と書いてあることが多い。 矛盾しているのでは...? 気になったのでいろいろ調べて見た結果、そこには2つの理由があることがわかった。 さらに、Pythonでsetter/getterを使いたい場合の1つの代替案があるということもわかった。 この記事では オブジェクト指向とカプセル化について Pythonにsetter/getter

                なぜPythonにはsetter/getterメソッドがないのか? - Qiita
              • Introducing DOM Invader: DOM XSS just got a whole lot easier to find

                Introducing DOM Invader: DOM XSS just got a whole lot easier to find Of the three main types of XSS, DOM-based XSS is by far the most difficult to find and exploit. But we come bearing good news! PortSwigger just released a new tool for Burp Suite Professional and Burp Suite Community Edition that's going to make testing for DOM XSS much easier - and we think you're going to like it. Meet: DOM Inv

                  Introducing DOM Invader: DOM XSS just got a whole lot easier to find
                • とほほのJavaScript入門 - とほほのWWW入門

                  とほほのJavaScript入門 (JavaScriptリファレンス) [戻る] [索引] 基本編 JavaScript って何? JavaScript とは? JavaScript と Java の関係は? ECMAScript とは? JavaScript のバージョン ES5 の新機能 ES5.1 の新機能 ES2015(ES6) の新機能 ES2016(ES7) の新機能 ES2017(ES8) の新機能 ES2018(ES9) の新機能 ES2019(ES10) の新機能 ES2020(ES11) の新機能 ES2021(ES12) の新機能 ES2022(ES13) の新機能 ES2023(ES14) の新機能 まずは始めてみよう 準備するもの 「Hello world!!」と書いてみよう 時刻を表示してみよう 動く時計を表示してみよう JavaScript の書き方 <scr

                  • Optimizing Ruby’s JSON, Part 3

                    In the previous post, I covered how I reimplemented JSON::Generator::State#configure in Ruby and some other changes. Unfortunately, it didn’t go as well as I initially thought. Mistakes Were Made The default gems that ship with Ruby are automatically copied inside ruby/ruby’s repo. In short, there’s a bot aptly named matzbot, that replicates all the commits from the various ruby/* gems, inside rub

                    • Changelog

                      Changelog¶ Python next¶ Release date: XXXX-XX-XX Windows¶ gh-127353: Allow to force color output on Windows using environment variables. Patch by Andrey Efremov. Tests¶ gh-127906: Test the limited C API in test_cppext. Patch by Victor Stinner. gh-127637: Add tests for the dis command-line interface. Patch by Bénédikt Tran. gh-126925: iOS test results are now streamed during test execution, and the

                        Changelog
                      • 2020 Twitter account hijacking - Wikipedia

                        At least 130 accounts affected. The bitcoin addresses involved received about US$110,000 in bitcoin transactions. On July 15, 2020, between 20:00 and 22:00 UTC, 130 high-profile Twitter accounts were reportedly compromised by outside parties to promote a bitcoin scam.[1][2] Twitter and other media sources confirmed that the perpetrators had gained access to Twitter's administrative tools so that t

                          2020 Twitter account hijacking - Wikipedia
                        • Java黒本著者の「オブジェクト指向の基礎」Youtube動画が分かりやすかったのでまとめメモ - Qiita

                          Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? Oracle Certified Java Programmer認定試験の問題集(いわゆるJava黒本)の著者である志賀澄人さん(@betteroneself)が解説する「オブジェクト指向の基礎」の動画がとても分かりやすかったので、個人のメモがてら共有します。 動画の再生リストは以下でご覧になれます https://www.youtube.com/playlist?list=PL0BiAlg8j4ZuDSu9GLU73-CVFgenU8T2P なお、動画は全部で12本あるのですが、どれも6~10分ほどでサクッとみることができます。 この

                            Java黒本著者の「オブジェクト指向の基礎」Youtube動画が分かりやすかったのでまとめメモ - Qiita
                          • Unicode character class escape: \p{...}, \P{...} - JavaScript | MDN

                            JavaScriptTutorials and guidesBeginner's tutorialsYour first website: Adding interactivityDynamic scripting with JavaScriptJavaScript frameworks and librariesJavaScript GuideIntroductionGrammar and typesControl flow and error handlingLoops and iterationFunctionsExpressions and operatorsNumbers and datesText formattingRegular expressionsIndexed collectionsKeyed collectionsWorking with objectsUsing

                              Unicode character class escape: \p{...}, \P{...} - JavaScript | MDN
                            • PhpStorm 2024.3 の新機能

                              このバージョンのハイライトには以下が含まれています。 PHP 8.4 のサポート AI Assistant の改善 xdebug_notify() のサポート Laravel Herd の PHP インタープリター PhpStorm 2024.3 には、機能豊富な PHP 8.4 へのアップグレードを円滑に行うための新しいインスペクションやクイックフィックスが多数実装されています。 以下では、新しい PHP 8.4 の機能が PhpStorm のワークフローでどのようにサポートされているかを簡単に説明します。 PHP の近年の歴史において最も大きな変更の 1 つであるプロパティフックは、プロパティに get フックと set フックを実装できるようにすることで、ボイラープレートな getter と setter を排除することを意図したものです。 プロパティフック(昇格されたプロパティ内の

                                PhpStorm 2024.3 の新機能
                              • Bootiful SQL Template 2.1.0でRecord対応をしました。 - 谷本 心 in せろ部屋

                                年に一回くらい、突然Javaの話をブログに書き始めるJava Championの @cero_t です。 数年前、「Spring BootでもSQLファイルを使いたいな」と思って勢いで作った Bootiful SQL Template ですが、何気に仕事で使うことがたまにあるので細々とメンテナンスを続けています。 最近、APIを全面的に見直してFluent API化したバージョン2.0.0をリリースし、日本語のドキュメントも書き始めました。 sqltemplate/README_ja.md at main · cero-t/sqltemplate · GitHub 今回は、これをRecordに対応させたというお話です。Record対応されたバージョンは2.1.0になります。 TL;DR JdbcTemplateがRecordに対応してないから自分で対応したよ Java16から追加された C

                                  Bootiful SQL Template 2.1.0でRecord対応をしました。 - 谷本 心 in せろ部屋
                                • AM012 – Why Typing Erlang is Hard: Standard Erlang

                                  Table of ContentsIntroStandard ErlangTyping the Erlang LanguageFunctions on Untagged UnionsFunctions on Record TypesFunctions on Tagged Unions (Variants)Receive ExpressionsDynamic Dispatch and M:F(A) syntaxWhat’s NextIntroI heard before that Erlang and the BEAM did not pack a static type system because their creators “couldn’t build it”. That is nonsense. While building a sophisticated, reliable a

                                    AM012 – Why Typing Erlang is Hard: Standard Erlang
                                  • vegetarianer &&& Online Pharmacy Norge (Page 1) — De decembermoorden — Suriname Forum op Waterkant.Net

                                    Europeisk apotek vegetarianer Klikk her - http://url-qr.tk/pharmacy - Gå til apoteket - Rask levering og fullstendig privatliv - Bonuspiller og store rabatter for hver bestilling - Lav pris for medisiner av høy kvalitet - Din full tilfredshet er garantert eller pengene dine blir returnert ______________________________________________________________________________________ Online Pharmacy Norge S

                                    • røde øyne ??? Nettapotek Nice (Page 1) — De decembermoorden — Suriname Forum op Waterkant.Net

                                      Europeisk apotek røde øyne Klikk her - http://url-qr.tk/pharmacy - Gå til apoteket - Rask levering og fullstendig privatliv - Bonuspiller og store rabatter for hver bestilling - Lav pris for medisiner av høy kvalitet - Din full tilfredshet er garantert eller pengene dine blir returnert ______________________________________________________________________________________ Nettapotek Nice I irritert

                                      • 国民の僕 | Netflix

                                        '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                          国民の僕 | Netflix
                                        • Drag & Drop • by FormKit

                                          AI-Generated forms in seconds. KickStart your next FormKit form in seconds. Generate from a prompt, image, or text attachment. Copy & paste as Vue components or FormKit schema. Try it for free! IntroductionFormKit’s Drag and Drop is a small library for adding drag and drop functionality to your app. It’s simple, flexible, framework agnostic, and clocks in at only ~5kb gzipped. Drag and Drop works

                                            Drag & Drop • by FormKit
                                          • 地球外少年少女 | Netflix (ネットフリックス) 公式サイト

                                            '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                              地球外少年少女 | Netflix (ネットフリックス) 公式サイト
                                            • ReactにとってStoreライブラリなんてもんはほんまにどうでもいい - タオルケット体操

                                              まとめ なんでもいい、どうでもいいと言い出すやつはだいたい内心でどうでもよくないと考えている Storeの話をするまえに https://react.dev/learn を読んでReactの基礎を理解しよう experimental state management frameworkと一生言い続けているライブラリをプロダクションで使うべきではない experimentalと一生言い続けているライブラリをプロダクションで使うならその部分は特に気をつけて疎結合にすべき ライブラリの話をしてないでreact.dev/learnのThinking in Reactを読もう とにかくreact.dev/learnを全部読んで、Reactのstateの基礎コンセプトを理解してからStoreへ移動しよう useContextは似て非なる存在で擬似的な流用はできるがまともな代用たりえない useStat

                                                ReactにとってStoreライブラリなんてもんはほんまにどうでもいい - タオルケット体操
                                              • Blinded By the Light DOM

                                                For a while now, Web Components (which I’m not going to capitalize again, you’re welcome) have been one of those things that pop up in the general web conversation, seem intriguing, and then fade into the background again. I freely admit a lot of this experience is due to me, who is not all that thrilled with the Shadow DOM in general and all the shenanigans required to cross from the Light Side t

                                                  Blinded By the Light DOM
                                                • 不変クラスはどのように良いコードに貢献するのか | wapa5pow blog

                                                  不変クラスとは何か 前回の記事で紹介したように契約プログラミングでは以下の条件がありました。 事前条件(preconditions) 事後条件(postconditions) 不変条件(invariants) 事前条件と事後条件は想像がつくのですが不変条件はわかりにくいです。 不変条件とはメソッドが呼ばれたときの開始時と終了時に共通して保証されるべき条件です。例えば銀行口座の場合は口座の金額がマイナスにならないなどの条件です。 この不変条件をクラスに当てはめると 「守るべき条件をクラスのライフタイム(生成時・メソッド後)で必ず満たす」 不変クラス(Class invariant)になります。 不変クラスはどのように良いコードに貢献するのか 例えば銀行口座クラスがあったとします。 Dartで一番シンプルに実装すると以下のクラスになります。 「残高がマイナスにならない」というルールがあったとし

                                                    不変クラスはどのように良いコードに貢献するのか | wapa5pow blog
                                                  • ザ・グローリー ~輝かしき復讐~ | Netflix (ネットフリックス) 公式サイト

                                                    '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                      ザ・グローリー ~輝かしき復讐~ | Netflix (ネットフリックス) 公式サイト
                                                    • ウェルネス/アンウェルネス -その真偽を問う- | Netflix (ネットフリックス) 公式サイト

                                                      '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                        ウェルネス/アンウェルネス -その真偽を問う- | Netflix (ネットフリックス) 公式サイト
                                                      • サイバーパンク: エッジランナーズ | Netflix (ネットフリックス) 公式サイト

                                                        '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                          サイバーパンク: エッジランナーズ | Netflix (ネットフリックス) 公式サイト
                                                        • ハリウッドを斬る! ~映画あるある大集合~ | Netflix (ネットフリックス) 公式サイト

                                                          '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                            ハリウッドを斬る! ~映画あるある大集合~ | Netflix (ネットフリックス) 公式サイト
                                                          • 契約による設計・契約プログラミングが少しワカッタ - Neo's World

                                                            契約による設計・契約プログラミングが少しワカッタ 「契約による設計 Design By Contract」とか「契約プログラミング Programming By Contract」とか、単語は聞いたことあったけど何するもんなのかよく分かんねーなーと思ってた。 前回記事:防衛的プログラミングと契約的プログラミングの違いがイマイチ分かっていない Wikipedia の記事を抜粋するとこんな感じ。 参考:契約プログラミング - Wikipedia プログラムコードの中にプログラムが満たすべき仕様についての記述を盛り込む事で設計の安全性を高める技法。 契約は、コードの利用条件が満たされることによって成立する。 それら条件は、満たすべきタイミングと主体によって、以下の3種類に分けられる。 事前条件 (precondition) サブルーチンの開始時に、これを呼ぶ側で保証すべき性質。 事後条件 (po

                                                            • Youkiの基礎知識とcontribution環境構築 - Gekko0114 備忘録

                                                              Youkiとは runc同様、OCI runtime specである。Rustで書かれている。日本語の容器が名前の由来。 なお、OCI runtime specは、1. 隔離環境の作成, 2. コンテナ実行, 3. プロセスのKill, 4. コンテナの削除、に関する明文化された仕様を指す。 メリット Rustで実装するメリットは、Goよりsystem callを扱いやすい(Cを呼び出すオーバーヘッドが少ない、ゼロコスト抽象化などの仕様のおかげ?)、Cと比べてメモリ安全、が挙げられていた。そのおかげか、Youkiは、runcより高速に動作するらしい。 仕様 現在はLinux環境しかサポートしていない。Linux以外の環境で動かしたい場合、VagrantでVMを利用する必要がある。 Youkiは低レベル container runtimeなので、Docker, Podmanなどの高レベル c

                                                                Youkiの基礎知識とcontribution環境構築 - Gekko0114 備忘録
                                                              • WPF バインディング - Qiita

                                                                public class Student { /// <summary> /// クラスの番号 /// </summary> public int ClassId { get; set; } /// <summary> /// 出席番号 /// </summary> public int Id { get; set; } /// <summary> /// 男か女か /// </summary> public bool Gender { get; set; } /// <summary> /// 点数 /// </summary> public int Score { get; set; } } public class MainVM { public ObservableCollection<Student> ScoreList { get; set; } = new Observabl

                                                                  WPF バインディング - Qiita
                                                                • 「オブジェクト指向エクササイズ」でクセの強いコードを矯正しよう | ALTUS-FIVE

                                                                  この記事は、10年前に書いた記事なんですが、今年の新人の人たちにも、やってみてほしくて、古いblog記事から掘り起こして転載しています。 linterを使ったコーディングスタイルのチェックだけでは、スパゲッティなコードを直すことができません。 よくできたコードは、パッと見で、”なんか違う”と感じさせるところがあり、あぁ、このコードを書いた人はデキるって思わせるものです。 読みやすくて、きれいなコードを書くためには、どうしたらよいんだろうか?さらには、それを人に教えるには、どうしたら? そのヒントが「オブジェクト指向エクササイズ」にあります。 この本を読んだときに、"これだ!"と感じたことを覚えています。 以下、10年前に書いた勉強会後記です。 今回の勉強会は「ThoughtWorksアンソロジー」の第5章、「オブジェクト指向エクササイズ」の読み合わせをやりました。 エクササイズは、1000

                                                                    「オブジェクト指向エクササイズ」でクセの強いコードを矯正しよう | ALTUS-FIVE
                                                                  • Node.js — Node v16.4.0 (Current)

                                                                    Notable changes async_hooks: stabilize part of AsyncLocalStorage (Vladimir de Turckheim) #37675 deps: upgrade npm to 7.18.1 (npm-robot) #39065 update V8 to 9.1.269.36 (Michaël Zasso) #38273 dns: allow --dns-result-order to change default dns verbatim (Ouyang Yadong) #38099 Commits [d2b972ee52] - async_hooks: check for empty contexts before removing (Bryan English) #39095 [03e75fda4c] - async_hooks

                                                                      Node.js — Node v16.4.0 (Current)
                                                                    • GraphQL と Data Transfer Object は似ている - パンダのプログラミングブログ

                                                                      技術エッセイです。 EoPAA の Data Transfer Object 「技術はレイヤーだ。今の技術は、過去の技術の積み重ねの上にある」という koriym さん(PHP フレームワーク BEAR.Sunday の作者で、前職の技術顧問)の言葉を今も覚えています。 この2ヶ月間、業務でサーバーサイドエンジニアとペア・モブプログラミングをしながら PHP を書いているため、ちゃんとオブジェクト指向プログラミング(OOP)と向き合おうと「エンタープライズアプリケーションアーキテクチャパターン(通称 PoEAA)」を読んでいます。 PoEAA の邦訳の出版は2005年です。記述が古くなっているところももちろんありますが、それでも今でも開発の現場で使われている OOP の語彙を理解、説明するために有用な記述もたくさんあります。 EoPAA を通して、自分が過去に目にしてもその内容を理解しきれ

                                                                        GraphQL と Data Transfer Object は似ている - パンダのプログラミングブログ
                                                                      • [Swift]あらためて基本に立ち返ろう。Swiftソースコードでありがちなアンチパターンとそのリファクタリングポイント | DevelopersIO

                                                                        [Swift]あらためて基本に立ち返ろう。Swiftソースコードでありがちなアンチパターンとそのリファクタリングポイント 最初に CX事業本部モバイル事業部の中安です。まいどです。 今日はクラスメソッドの創立記念日ということで、ブログを1つ投稿していこうと思います。 最近はお仕事で社内外誰かのコーディングしたソースコードを見る機会が多かったのですが、 その中でソースコード自体が整理されていなかったり、Swiftらしくない記法が見受けられたり、 気になるポイントが何箇所か出てきました。 この気になるポイントはたとえばコードレビューの場であれば、アウトプットとして伝えることはできると思うのですが、 そうでない場合は自分の中で収まってしまうので、頭の中で何が気になるのかを整理しておきたいなと思いました。 この記事に書くことはある種「あたりまえ」なことを書いていくことになりますが、 Swift初学

                                                                          [Swift]あらためて基本に立ち返ろう。Swiftソースコードでありがちなアンチパターンとそのリファクタリングポイント | DevelopersIO
                                                                        • Chrome 113 beta  |  Blog  |  Chrome for Developers

                                                                          New CSS media features, the linear() easing function, and WebGPU. Unless otherwise noted, changes described below apply to the newest Chrome beta channel release for Android, ChromeOS, Linux, macOS, and Windows. Learn more about the features listed here through the provided links or from the list on ChromeStatus.com. Chrome 113 is beta as of 6 April, 2023. You can download the latest on Google.com

                                                                          • 攻殻機動隊 SAC_2045 | Netflix (ネットフリックス) 公式サイト

                                                                            '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                                              攻殻機動隊 SAC_2045 | Netflix (ネットフリックス) 公式サイト
                                                                            • Watch The Playlist | Netflix Official Site

                                                                              '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                                                Watch The Playlist | Netflix Official Site
                                                                              • functools.py が革命的に便利そうなのでまとめてみた - ぷりんの雑記帳

                                                                                こんにちは、ぷりんです。いつものようにネットサーフィン(死語)をしていると、functools.py という Python の標準モジュールがあることを知りました↓↓ docs.python.org 関数やクラスを定義するときに補助的に使うものっぽいですが、これがなかなかに「かゆいところに手が届く」感じで感動しました。公式ドキュメントを読みながら、勉強がてら自分なりにまとめてみたいと思います。 前提 cache:同じ計算を二度しない @functools.lru_cache(user_function), @functools.lru_cache(maxsize=128, typed=False) (ver3.2~; ver3.3~(typed); ver3.8~(user_function); ver3.9~(cache_parameters())) @functools.cache(u

                                                                                  functools.py が革命的に便利そうなのでまとめてみた - ぷりんの雑記帳
                                                                                • Typed useState with TypeScript

                                                                                  useState is a hook that helps us manage state in function-based components in a version of React coming soon. How do we use this with TypeScript though so that our state is strongly-typed? Let’s find out … I walked though an example of useState a few weeks ago where the state was defined as follows with useState hooks: If we hover over the variables in VSCode, we see that they are correctly to typ

                                                                                    Typed useState with TypeScript