並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 27 件 / 27件

新着順 人気順

conditionalの検索結果1 - 27 件 / 27件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

conditionalに関するエントリは27件あります。 CSSwordpressprogramming などが関連タグです。 人気エントリには 『こわくないTypeScript〜Mapped TypeもConditional Typeも使いこなせ〜 - uhyo/blog』などがあります。
  • こわくないTypeScript〜Mapped TypeもConditional Typeも使いこなせ〜 - uhyo/blog

    TypeScriptの型システムは、ユニオン型を始めとする様々な機能を持っているのが特徴的です。 その中でも、mapped typesとconditional typesは高度な機能として知られています。 ところが、その機能の膨大さゆえ、全てを使いこなす必要はない、TypeScriptの複雑な機能を無闇に使うべきではないという言説はたびたび現れます。 そのときに槍玉に上がりやすいのがmapped typesとconditional typesなのです。 筆者は、これらの機能は使えるだけ使い倒すべきであるという考えを持っています。 主張の根幹には、高度な型を使えばより正確にインターフェースを記述することができること、そして正確なインターフェースは使いやすさや正確な型推論結果に貢献することがあります。 正確なインターフェースや型推論結果は、コードの理解速度や開発効率を促進します。 これらは型シ

      こわくないTypeScript〜Mapped TypeもConditional Typeも使いこなせ〜 - uhyo/blog
    • 業務で見つけた! Conditional Types

      LINE株式会社は、2023年10月1日にLINEヤフー株式会社になりました。LINEヤフー株式会社の新しいブログはこちらです。 LINEヤフー Tech Blog こんにちは。LINE証券フロントエンドエンジニアの鈴木です。この記事は「UIT 新春 Tech blog」シリーズ2日目の記事です。 LINE証券ではTypeScriptを使用しており、TypeScriptの力を最大限発揮させられるように日々取り組んでいます。そこで、この記事ではLINE証券のプロダクション用コードで実際にConditional Typesが使用された事例をご紹介します。Conditional TypesはTypeScript 2.8で追加された機能で、部分型関係に基づいた型レベルの条件分岐やパターンマッチができる機能です。TypeScriptの機能の中でも高度な部類であり、一部の型に凝ったライブラリや曲芸的な

        業務で見つけた! Conditional Types
      • Combining CSS :has() And HTML <select> For Greater Conditional Styling — Smashing Magazine

        While the CSS :has() pseudo-class is widely celebrated for its ability to select a parent element up the chain conditionally based on its contents, there is more conditional logic it is capable of handling when we move it up the chain, so to speak. Amit Sheen demonstrates using :has() to apply styles conditionally when a certain <option> in a <select> element is chosen by the user and how we gain

          Combining CSS :has() And HTML <select> For Greater Conditional Styling — Smashing Magazine
        • Conditional CSS - Ahmad Shadeed

          I like to think of CSS as a conditional design language. Over the years, CSS was known as a way to style web pages. Now, however, CSS has evolved a lot to the point you can see conditional rules. The interesting bit is that those CSS rules aren’t direct (i.e: there is still no if/else in CSS), but the way features in CSS work is conditional. Design tools like Figma, Sketch, and Adobe XD made a hug

            Conditional CSS - Ahmad Shadeed
          • 問合せフォームに条件分岐が設定できるプラグイン「Contact Form 7 Conditional Fields」の基本的な使い方 – ワードプレステーマTCD

            「Contact Form 7」はお問い合わせフォームが作成できる、WordPressの定番プラグインです。今回紹介する「Contact Form 7 Conditional Fields」は、Contact Form 7をカスタマイズして条件分岐を追記できるプラグインです。 例えば、お問い合わせフォームの中に設置された「資料の送付を希望しますか」という質問に「はい」と答えた場合のみ住所記入欄を表示する、といった使い方ができます。実用性が高めなフォームなので、ご利用の方は本稿の解説をご参考ください。 インストール方法 WordPressの管理画面から、「プラグイン」→「新規追加」と進み、「Contact Form 7 Conditional Fields」を検索します。もしくは、下記ボタンからダウンロードします。インストールしたら、有効化します。 プラグイン公式ページ 当然のことながら、こ

              問合せフォームに条件分岐が設定できるプラグイン「Contact Form 7 Conditional Fields」の基本的な使い方 – ワードプレステーマTCD
            • CSS 条件付き規則 (CSS Conditional Rules) Level 5 仕様 (草案) に追加された @when と @else 規則について

              CSS 条件付き規則 (CSS Conditional Rules) Level 5 仕様 (草案) に追加された @when と @else 規則について つい先日、最初の草案が公開されたばかりですが、CSS 条件付き規則 (CSS Conditional Rules) の Level 5 仕様に、新たに加わった @when、および @else 条件付き規則について面白そうだったので簡単に紹介。 つい先日、最初の草案が公開されたばかりですが、CSS 条件付き規則 (CSS Conditional Rules) の Level 5 仕様に、新たに @when、および @else 条件付き規則が加わりました。 CSS Conditional Rules Module Level 5 - W3C First Public Working Draft, 21 December 2021 CSS

                CSS 条件付き規則 (CSS Conditional Rules) Level 5 仕様 (草案) に追加された @when と @else 規則について
              • Conditional JavaScript - JavaScript - Dev Tips

                JavaScript: Conditional JavaScript, only download when it is appropriate to do so Last updated: 16th December 2020 Intro In this post, I'd like to share a few techniques which you can use for selectively downloading/executing resources such as JavaScript. As an example, if the users device does not have a lot a RAM, you could decide to skip the downloading (and in turn, the parse + execution costs

                • Conditional Border Radius In CSS

                  A while ago, I was inspecting facebook.com home page feed to learn and see how they build things out. I’m always curious to see how people write CSS. I noticed a very, very interesting border-radius value for the card component in the main feed. I shared the following tweet about this little discovery. Then, I received this reply from Miriam Suzanne: is it always 8px? That math looks like a toggle

                    Conditional Border Radius In CSS
                  • The 1975『Notes On A Conditional Form』に潜む〈エモ=アンビエント〉というコンセプト | Mikiki by TOWER RECORDS

                    2020年最大の話題作のひとつであるThe 1975の『Notes On A Conditional Form』。グレタ・トゥーンベリの真摯な訴えに始まり、バンド・メンバーへの愛を捧げて終わるこのアルバムは、その多彩な音楽性と長大さから、さまざまな評価がなされている。 今回はそんな『Notes On A Conditional Form』について、新進の批評家で批評 × 旅行誌「LOCUST」の編集長である伏見瞬に執筆を依頼した。伏見が〈アンビエント〉と〈エモ〉、そして〈車〉というキーワードから導き出す本作の一貫したコンセプトとは? *Mikiki編集部 『Notes On A Conditional Form』はカオティックで散漫なアルバムか? 2020年の5月22日にリリースされた一つの作品について、多くのメディアやリスナーが〈カオティック〉とか〈断片的〉とか〈散漫〉とかいった言葉を口

                      The 1975『Notes On A Conditional Form』に潜む〈エモ=アンビエント〉というコンセプト | Mikiki by TOWER RECORDS
                    • Visual Studio 16.7 & 16.8 Preview 1 リリース / C# 9.0 の新機能3つ(module initializers, static lambda, target-typed conditional)

                      5日に、Visual Studio 2019 の 16.7 と、16.8 Preview 1 がリリースされました。 Visual Studio 2019 v16.7 and v16.8 Preview 1 Release Today! ということで、先週、ライブ配信もしていました。 16.7 が正式リリースになった記念に、Preview の頃に触れてた話題を改めてちょこっと振り返ったのと、16.8 Preview 1 で新たに追加された C# 9.0 の3つの機能の話でした。 C# 9.0 に今回追加されたのは以下の3つです。 Module Initializers Static anonymous functions Target-Typed Conditional Expression 今日は主にこの3つについて説明。 Module Initializers モジュール(exe (ア

                        Visual Studio 16.7 & 16.8 Preview 1 リリース / C# 9.0 の新機能3つ(module initializers, static lambda, target-typed conditional)
                      • Monorepo with CircleCI Conditional Workflows

                        UPDATE: There is a new experimental script that allows conditioning workflows on specific path changes using advanced pathspec. See v2 for more details. Monorepos bring simplicity to the development process, but raise the complexity of automated builds and deploy. When we first started migration to monorepo in a large project that had over 12 repositories, we faced the challenge of configuring Cir

                          Monorepo with CircleCI Conditional Workflows
                        • WordPress Contact Form 7 Conditional Fieldsの使い方

                          WordPress Contact Form 7 Conditional Fields Contact Form 7 でフォームで選択した内容によって次に表示させる内容を変更・決定できる条件分岐機能を追加するプラグイン Contact Form 7 Conditional Fields の基本的な使い方やサンプルです。 Contact Form 7 Conditional Fields の概要 Contact Form 7 Conditional Fields はお問い合わせフォームのプラグイン Contact Form 7 に機能を追加するプラグインなので、Contact Form 7 がインストールされている必要があります。 Contact Form 7 Conditional Fields を使うと、お問い合わせフォームでユーザがチェックボックスやラジオボタン、セレクトメニューなどの

                          • GitHub - salesforce/ctrl: Conditional Transformer Language Model for Controllable Generation

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                              GitHub - salesforce/ctrl: Conditional Transformer Language Model for Controllable Generation
                            • Optimal Transport Conditional Flow Matching - 拡散モデルに取って代わる次世代の生成技術?

                              こんにちは!Fusic 機械学習チームの鷲崎です。最近、音声や言語処理に興味がありますが、機械学習モデルの開発からMLOpsまでなんでもしています。もし、機械学習で困っていることがあれば、気軽にDMください。 本記事では、Flow Matching (FM)と、その発展版であるOptimal Transport Conditional Flow Matching (OT-CFM)を解説します。最近の生成AIでは、拡散モデルがよく使用されていますが、Flow Matchingは、拡散モデルに取って代わる可能性がある生成技術と考えています。 おもに、Improving and Generalizing Flow-Based Generative Models with Minibatch Optimal Transportという論文を参考に解説していきたいと思います。また、本記事の図は、論文か

                                Optimal Transport Conditional Flow Matching - 拡散モデルに取って代わる次世代の生成技術?
                              • Conditional Fields for CF7: フォームを条件分岐できるWordPressプラグイン

                                Conditional Fields for CF7 は「Contact Form 7」のお問い合わせフォームに条件分岐を追加できるWordPressプラグインです。 メールフォームの選択項目に合わせて、フォームの入力フィールドを条件分岐させて表示することができます。難しいプログラミングのスキルは不要です。 フォームの選択項目の内容に合わせて、入力フォームを条件分岐させることにより、お問い合わせフォームを利用者に合わせて最適化させることができます。 ちなみに、このプラグインを利用するには「Contact Form 7」が必要になります。 事前にインストールして設定を済ませておいて下さい。 はじめに このプラグインが優れていること メールフォームの内容を条件分岐させる機能を追加できる。(プログラミング不要) 「Contact Form 7」の機能を拡張するプラグインです。 フォームの選択項目

                                  Conditional Fields for CF7: フォームを条件分岐できるWordPressプラグイン
                                • Hierarchical Text-Conditional Image Generation with CLIP Latents

                                  Contrastive models like CLIP have been shown to learn robust representations of images that capture both semantics and style. To leverage these representations for image generation, we propose a two-stage model: a prior that generates a CLIP image embedding given a text caption, and a decoder that generates an image conditioned on the image embedding. We show that explicitly generating image repre

                                  • John Cho: Coronavirus reminds Asian Americans belonging is conditional

                                    I called my parents a few nights ago to tell them to be cautious when stepping out of the house, because they might be targets of verbal or even physical abuse. It felt so strange. Our roles had flipped. My plea mirrored the admonitions I received from them as a child growing up in Houston. The world, they cautioned, was hostile and it viewed us as strangers. So they warned me to stick close to my

                                      John Cho: Coronavirus reminds Asian Americans belonging is conditional
                                    • conditional GAN - Qiita

                                      Conditional GAN とは?? DCGANでは、mnistデータを学習に用いることで、綺麗な手書き文字の生成に成功しました。しかしながら、この生成器を実際に用いようとなると用途が限られてしまします。なぜなら、例えば「7」と言う手書き文字を作りたいと思っても、DCGANだと生成する文字を指定できないので、7が偶然生成されるまで生成器を動かし続ける必要があるからです。 ここでは、Conditional GANを導入することで、「7」を作りたい!と思った時に一発で「7」を生成できる生成器、つまり生成するクラスを指定できる生成器を実装していきます。 CGANの全体アーキテクチャ CGNAの生成器 生成器は、乱数ベクトルzとラベルyを入力とし、偽のサンプルx*|yを生成する。生成器は与えられたラベルに対応し、できる限りリアルな見た目になるようにする。 じゃあ具体的にどうやって乱数ベクトルz

                                        conditional GAN - Qiita
                                      • 3D-aware Conditional Image Synthesis

                                        We propose a 3D-aware conditional generative model for controllable photorealistic image synthesis. Given a 2D label map, such as a segmentation or edge map, our model synthesizes a photo from different viewpoints. Existing approaches fail to either synthesize images based on a conditional input or suffer from noticeable viewpoint inconsistency. Moreover, many of them lack explicit user control of

                                          3D-aware Conditional Image Synthesis
                                        • GitHub - ditdot-dev/vue-flow-form: Create conversational conditional-logic forms with Vue.js.

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                            GitHub - ditdot-dev/vue-flow-form: Create conversational conditional-logic forms with Vue.js.
                                          • お問い合わせフォームで、選択した内容に応じて入力項目を表示させる条件分岐プラグイン「Conditional Fields for Contact Form 7」 – wordpressのカスタマイズなどWordPress情報ならWPLab

                                            お問い合わせフォームで、選択した内容に応じて入力項目を表示させる条件分岐プラグイン「Conditional Fields for Contact Form 7」 お問い合わせフォームで、選択した内容に応じて入力項目を表示させる条件分岐プラグイン「Conditional Fields for Contact Form 7」のご紹介。 お問い合わせフォームで、選択した内容に応じて入力項目を表示させるプラグイン「Conditional Fields for Contact Form 7」のメリット お問い合わせフォームのプラグインContact Form 7をもっと活用するプラグインの1つとして、「Conditional Fields for Contact Form 7」というプラグインがあります。 このプラグインは以下のような状況の時に役に立つプラグインです。 実際のデモページはこちら 名前

                                              お問い合わせフォームで、選択した内容に応じて入力項目を表示させる条件分岐プラグイン「Conditional Fields for Contact Form 7」 – wordpressのカスタマイズなどWordPress情報ならWPLab
                                            • The 1975の新作『Notes on a Conditional Form』を海外メディアはどう評価したのか?そして2020年に求められる理由とは

                                                The 1975の新作『Notes on a Conditional Form』を海外メディアはどう評価したのか?そして2020年に求められる理由とは
                                              • 論文まとめ:(DALL・E 2論文)Hierarchical Text-Conditional Image Generation with CLIP Latents

                                                タイトル:Hierarchical Text-Conditional Image Generation with CLIP Latents リンク:https://cdn.openai.com/papers/dall-e-2.pdf 所属:OpenAI コード:DALL・E 2の前の段階のGLIDEは公開されているが、これは非公開(2022年4月時点) ざっくりいうと 訓練済みCLIPと拡散モデルを使った、テキスト→画像による生成モデル CLIPの画像埋め込み特徴を生成するような、拡散モデルベースの事前分布モデルを開発 先行研究のGLIDEの改良という位置づけだが、多様性に富む画像生成に成功 要旨 2段階のモデルを提案 テキストキャプションを与えてCLIP画像埋め込みを生成する事前処理 画像埋め込みを条件として画像を生成するデコーダ 画像表現を明示的に生成することで、写実性とキャプションの

                                                  論文まとめ:(DALL・E 2論文)Hierarchical Text-Conditional Image Generation with CLIP Latents
                                                • GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding

                                                  Neural network scaling has been critical for improving the model quality in many real-world machine learning applications with vast amounts of training data and compute. Although this trend of scaling is affirmed to be a sure-fire approach for better model quality, there are challenges on the path such as the computation cost, ease of programming, and efficient implementation on parallel devices.

                                                  • Recoilの階層的なkey管理とMapped Types、Conditional Types、Template Literal Types

                                                    Recoilの階層的なkey管理とMapped Types、Conditional Types、Template Literal Types Recoil React用の状態管理ライブラリとして、RecoilというMeta(旧Facebook)が開発中の比較的新しいライブラリがあります。 記事執筆時点での最新バージョンはまだv0.6.1で"experimental"という位置づけですが、GitHubのスター数は約16,000あり、巷でも最近よく名前を聞くようになってきたと個人的には感じます。 Recoilでは状態の起点をatomとして定義します。さらにatomの値をもとに純粋な関数によって計算可能な値をselectorとして定義することもできます。同様に他のselectorの値をもとにして計算可能な値もまたselectorとして定義できます。 Recoilの基本的なAPIの使い方等は公式ド

                                                      Recoilの階層的なkey管理とMapped Types、Conditional Types、Template Literal Types
                                                    • Documentation - Conditional Types

                                                      At the heart of most useful programs, we have to make decisions based on input. JavaScript programs are no different, but given the fact that values can be easily introspected, those decisions are also based on the types of the inputs. Conditional types help describe the relation between the types of inputs and outputs.

                                                      • [css-conditional] [css-contain] Fleshing out @container queries with single-axis containment · Issue #5796 · w3c/csswg-drafts

                                                        Update: As feedback comes in from various channels, I've been updating & maintaining a full explainer with a changelog. Intro Media-queries allow an author to make style changes based on the overall viewport dimensions -- but in many cases, authors would prefer styling modular components based on their context within a layout. Earlier this year, David Baron & Brian Kardell proposed two complementa

                                                          [css-conditional] [css-contain] Fleshing out @container queries with single-axis containment · Issue #5796 · w3c/csswg-drafts
                                                        1

                                                        新着記事