並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 7 件 / 7件

新着順 人気順

awaitの検索結果1 - 7 件 / 7件

  • Ruby methods are colorless

    👋🏼 This is part of series on concurrency, parallelism and asynchronous programming in Ruby. It’s a deep dive, so it’s divided into 10 main parts: Your Ruby programs are always multi-threaded: Part 1 Your Ruby programs are always multi-threaded: Part 2 Consistent, request-local state Ruby methods are colorless Concurrent, colorless Ruby: Part 1, Threads Concurrent, colorless Ruby: Part 2, Fiber a

      Ruby methods are colorless
    • Private Browsing 2.0

      When we invented Private Browsing back in 2005, our aim was to provide users with an easy way to keep their browsing private from anyone who shared the same device. We created a mode where users do not leave any local, persistent traces of their browsing. Eventually all other browsers shipped the same feature. At times, this is called “ephemeral browsing.” We baked in cross-site tracking preventio

        Private Browsing 2.0
      • Playing guitar tablatures in Rust

        If you ever tried to learn guitar, chances are you are familiar with guitar tablatures. It is a simple way to visualize music for guitar, using ASCII characters to represent strings and frets as an alternative to sheet music. For instance, here are the first four measures of the song "Smoke on the Water" by Deep Purple: e|-----------------|-----------------|-----------------|-----------------| B|-

        • Pythonのデコレータってどう実装するん?ってことでフレームワーク的な実装を試してみた - Qiita

          はじめに 最近はあまり触れていないが、PythonでDiscordのBOTを作成しようとすると、discord.pyやPycordのようなライブラリを使うのが一般的と思う。 その中でよく使われる構文の中に@bot.commandのような構文を目にすることだろう。 これはデコレータと呼ばれる構文なのだが、私は中身の構造は関数型引数を実装した関数のような感じなんだろうなと予想はしながらも、なんとなしで利用していた。 そんなわけで、調べていきながら便利な使い方なんかを探してみる。 import discord from discord.ext import commands intents = discord.Intents.default() intents.members = True intents.message_content = True bot = commands.Bot( co

            Pythonのデコレータってどう実装するん?ってことでフレームワーク的な実装を試してみた - Qiita
          • Next.jsでAI Chat UIを作る(ローカルLLMとGPT-4o mini)

            はじめに GPT-4o miniが発表されたので、APIを使ってNext.js App routerにて簡単なAIチャットページを実装してみました。Vercel AI SDKを使用しています。 以前にも記事を書きましたが実装内容が古くなりましたので新たに記事にしてみました。(今回はLangChain JSは使っていません) GPT-4o mini また、今回はローカルLLM(Ollama)でも利用できる内容としています。 ※ マシンスペックが足りないなど環境がない方は、Ollamaの部分は読み飛ばしてください。 以前の記事 読者対象 Next.js開発の経験者 事前準備 OpenAI プラットフォームから API キーを作成&取得しておく。 https://platform.openai.com/ Ollamaも使いたい場合は起動しておきます。 参考ドキュメント コードを書く ステップ N

              Next.jsでAI Chat UIを作る(ローカルLLMとGPT-4o mini)
            • Reading and writing Node.js streams

              Working with large datasets in Node.js applications can be a double-edged sword. The ability to handle massive amounts of data is extremely handy, but can also lead to performance bottlenecks and memory exhaustion. Traditionally, developers tackled this challenge by reading the entire dataset into memory at once. This approach, while intuitive for smaller datasets, becomes inefficient and resource

                Reading and writing Node.js streams
              • 米国大統領選でドナルド・トランプ氏が銃撃される直前に、ジョー・バイデン氏が銃規制の必要性をうったえていたことは、危機管理能力の高さではないのか - 法華狼の日記

                2024年の大統領選をあらそう候補者では、バイデン氏が新たな銃規制を導入して、その撤廃を前大統領としてトランプ氏が目指している。2月に演説したばかりだ。 トランプ氏、バイデン政権の銃規制撤廃を表明 大統領選勝利なら | ロイター トランプ前大統領は9日、大統領在任中に銃保有の権利を守ったと強調し、返り咲けばバイデン政権が導入した銃規制を全て撤廃すると表明した。 ペンシルベニア州で開かれた全米ライフル協会(NRA)主催のイベントで演説し、「銃の所有者やメーカーに対するバイデン(大統領)の攻撃は、私の就任最初の1週間、おそらく初日に全て終わらせる」と述べた。 7月14にもツイート*1においてバイデン氏は銃規制の必要性をうったえ、トランプ氏がそれをこばんでいると指摘していた*2。 バイデンが直前に「私は銃規制をしたいが、トランプはNRA(全米ライフル協会)に現状維持を約束した」と呟いているのもま

                  米国大統領選でドナルド・トランプ氏が銃撃される直前に、ジョー・バイデン氏が銃規制の必要性をうったえていたことは、危機管理能力の高さではないのか - 法華狼の日記
                1