並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 48件

新着順 人気順

sortの検索結果1 - 40 件 / 48件

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

sortに関するエントリは48件あります。 プログラミングPythonJavaScript などが関連タグです。 人気エントリには 『Amazon裏技の検索コマンド「&sort=salesrank」ほかで絞り込み』などがあります。
  • Amazon裏技の検索コマンド「&sort=salesrank」ほかで絞り込み

    Amazonで商品を探そうとしても、どこのメーカーかも分からずに「最新版」をうたうヘッドセットなど、見るからに怪し過ぎるアイテムが次々と出てきます。闇市化しているAmazonでは、説明文の日本語がおかしいこともしばしばです。 実際、Amazonの本から「ラジオ」で検索すると、スポンサー表示であるラジオ機器が先頭に表示されます。そこで、Amazon裏技の検索コマンド「&sort=salesrank」を追加して絞り込みすると、公式「ベストセラー」表示の付いた書籍が表示されました。 Amazonには検索結果URLの末尾に特定の検索コマンドを追加すると、表示される商品を絞り込める裏技があります。例えば、インチキベストセラーを除去するには、Amazon裏技の検索コマンド「&sort=salesrank」を追加。これでAmazonが本当のベストセラー順に絞り込み検索表示が変わります。 実際にAmazo

      Amazon裏技の検索コマンド「&sort=salesrank」ほかで絞り込み
    • 巨大テキストファイルをsortコマンドでソートしてみる

      巨大なテキストファイルをソートする問題について、sortコマンドの挙動を中心にAmazon EC2インスタンス上で検証を行いました。その結果を記事にまとめたものです。 お題の説明 先日のTwitterでこんな話題がありました。論旨としては、非常に大きくメインメモリに収まらないサイズのテキストファイルをソートしたい場合にどうすればよいか、というものです。 解法はさまざまなものがありえると思いますが、この記事ではsortコマンドによるソートを試してみました。 一般論としての解法 stackoverflowなどを軽く眺める限りだと「普通のsortコマンドが最良ではないか」「GNUのsortは入力が大きい場合は外部ソートをしてくれる」などの回答が見つかります。 https://unix.stackexchange.com/questions/120096/how-to-sort-big-files

        巨大テキストファイルをsortコマンドでソートしてみる
      • 松竹梅はsortしても松竹梅になる - Lambdaカクテル

        物事の順位付けをするとき、松竹梅という雅な表現がよく使われる。自分もよく使う。 blog.3qe.us コンピュータにとってもそうなのだろうか?そう考えた私は実際にソートしてみることにした。 % echo $LANG ja_JP.UTF-8 % sort --version sort (GNU coreutils) 9.3 Copyright (C) 2023 Free Software Foundation, Inc. ライセンス GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permit

          松竹梅はsortしても松竹梅になる - Lambdaカクテル
        • フィルタ不要で並び替えができる夢のようなSORT関数【Googleスプレッドシート/Excel】 | 株式会社LIG(リグ)|DX支援・システム開発・Web制作

          SORT関数 使い方 関数の説明はこちらです。 ※記事内の画像はGoogleスプレッドシートで作成し、数式の表記もスプレッドシートをメインとしています。Excelでも部分的に同じように利用することができます。 関数 Googleスプレッドシート =SORT(範囲, 並べ替える列, 昇順(TRUE)or降順(FALSE) [ , 並べ替える列2 , 昇順or降順2 , …] ) ※[ ]は条件を2つ以上指定する場合です。カッコは入力しません。 Excel(Excel for Microsoft 365以降で対応) =SORT(範囲, 並べ替える列, 昇順(1)or降順(-1) ) ※Excelの場合、指定できる条件は1つです。 SORT関数は、指定した範囲のデータを、指定した列で昇順もしくは降順で並べ替えて、別の場所に表示することができる関数です。スプレッドシートでは複数の条件を指定すること

            フィルタ不要で並び替えができる夢のようなSORT関数【Googleスプレッドシート/Excel】 | 株式会社LIG(リグ)|DX支援・システム開発・Web制作
          • GitHub - trivago/prettier-plugin-sort-imports: A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.

            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 - trivago/prettier-plugin-sort-imports: A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
            • Changing std::sort at Google’s Scale and Beyond

              TL;DR; We are changing std::sort in LLVM’s libcxx. That’s a long story of what it took us to get there and all possible consequences, bugs you might encounter with examples from open source. We provide some benchmarks, perspective, why we did this in the first place and what it cost us with exciting ideas from Hyrum’s Law to reinforcement learning. All changes went into open source and thus I can

                Changing std::sort at Google’s Scale and Beyond
              • GitHub - syscolabs/kasaya: A "WYSIWYG" (sort of) scripting language and runtime for browser automation

                Kasaya (beta) A "WYSIWYG" (well, kind of) scripting language and runtime for browser automation Write test scripts using English-like statements. NO coding required to implement those statements. Not dependent on HTML IDs or XPaths. Write the same way you would instruct another human being sitting in front of the browser. NOT like Cucumber. NOT like Selenium IDE. You can: Do your initial dev test

                  GitHub - syscolabs/kasaya: A "WYSIWYG" (sort of) scripting language and runtime for browser automation
                • GitHub - ashvardanian/StringZilla: Up to 10x faster strings for C, C++, Python, Rust, and Swift, leveraging SWAR and SIMD on Arm Neon and x86 AVX2 & AVX-512-capable chips to accelerate search, sort, edit distances, alignment scores, etc 🦖

                  The world wastes a minimum of $100M annually due to inefficient string operations. A typical codebase processes strings character by character, resulting in too many branches and data-dependencies, neglecting 90% of modern CPU's potential. LibC is different. It attempts to leverage SIMD instructions to boost some operations, and is often used by higher-level languages, runtimes, and databases. But

                    GitHub - ashvardanian/StringZilla: Up to 10x faster strings for C, C++, Python, Rust, and Swift, leveraging SWAR and SIMD on Arm Neon and x86 AVX2 & AVX-512-capable chips to accelerate search, sort, edit distances, alignment scores, etc 🦖
                  • We Made Puma Faster With Sleep Sort

                    Puma 5 (codename Spoony Bard1(When Puma gets a new ‘supercontributor’ that submits lots of important work to the project, we let them name the next release. This release features a lot of code from Will Jordan, who named this release ‘Spoony Bard’. Will said: ‘Final Fantasy IV is especially nostalgic for me, the first big open-source project I ever worked on was a fan re-translation of the game ba

                      We Made Puma Faster With Sleep Sort
                    • JavaScriptのアロー関数で定義したsort()の−1とか1とか0について - Qiita

                      最初に 個人的なメモです sort()中の返り値での挙動の理解に手間取ったのでメモとして残します Array.sort((n, m) => (n > m ? -1 : 1)) について考える sort(n,m)はnとmの比較結果を 0 :(優先度が同じ) 1 :(nがmより優先度が低かったので) -1:(nがmより優先度が高かったので) で返す ここでの優先度とは? 優先度は高いほど配列の前に並ぶ -1は前に 1は後ろに 0はそのまま 自分が混乱したのは1の挙動 以下自分の解釈 nとmを比較する際にmより後ろにあるnをどうするかという話 なので 今、mより優先度の低い扱いを受けているnを、mより優先度を高くするの?という問いかけが n 比較演算子 m ? -1 : 1 なので 返り値1の場合は もともとmより優先度が低い扱いを受けているnにあらためてmより優先度が低いよと伝えているだけ な

                        JavaScriptのアロー関数で定義したsort()の−1とか1とか0について - Qiita
                      • GitHub - whitequark/unfork: unfork(2) is the inverse of fork(2). sort of.

                        A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

                          GitHub - whitequark/unfork: unfork(2) is the inverse of fork(2). sort of.
                        • 5 Intuitive Chrome Extensions to Manage and Sort Too Many Open Tabs

                          Too many open tabs in Chrome can hit browser performance and your own productivity. Make it easier with these excellent tab management extensions. As surely as the sun rises in the morning, so continues mankind's struggle with managing too many tabs in Google Chrome. Fret not, here are some free extensions to soothe your worries. Chrome might be the most popular browser in the world today, but it'

                            5 Intuitive Chrome Extensions to Manage and Sort Too Many Open Tabs
                          • 【無課金ポイ活】Colorwood Sort レベル2000達成 - 引きこもり専業主婦 すなこの日々

                            以前の【Love water】では途中リタイアいたしましたが、今回は同じカラーソート系でリベンジです٩( 'ω' )و ポイント獲得条件・クリア日数 warauからポイ活案件【Colorwood Sort】をやりました。 1.ポイント獲得条件 アプリインストール後、インストール日から30日以内に最大レベル2000クリア 2.クリア日数 クリア日数:20日 レベル2000=2000ステージクリアしないといけません。1日100ステージクリアを目標にプレイして予定通りの達成(^-^)v ライフ制度なし。やればやるほど早く達成することとができます。 Colorwood Sort ゲーム内容 【Colorwood Sort】は並び替え系のゲーム。 1つのコラム(囲み)に、いろいろな色のキューブが混ざっているので、空きコラムを利用して整えていきましょう。 コラムに空き容量があっても、同じ色でないとキュ

                              【無課金ポイ活】Colorwood Sort レベル2000達成 - 引きこもり専業主婦 すなこの日々
                            • sort: use pdqsort · golang/go@72e77a7

                              - Across all benchmarks, pdqsort is never significantly slower than the previous algorithm. - In common patterns, pdqsort is often faster (i.e. 10x faster in sorted slices). The pdqsort is described at https://arxiv.org/pdf/2106.05123.pdf This CL is inspired by both C++ implementation and Rust implementation. - C++ implementation: https://github.com/orlp/pdqsort - Rust implementation: https://docs

                                sort: use pdqsort · golang/go@72e77a7
                              • こういう単純なゲームって本当に時間泥棒【Ball Sort Puzzle】 - LetLifeLoose

                                いろんな名前でいろんなところからほぼ同じゲームが出ているみたいですが こういう単純だけど頭を使うゲームってホントはまると抜け出せなくなります。 Ball Sort Puzzle - Apps on Google Play Ball Sort Puzzle IEC GLOBAL PTY LTD ゲーム 無料 apps.apple.com ゲーム内容はいたって単純 適当に積み上げられたカラフルなボールを入れ替えて 一つの筒に同じ色が積み重なるようにするだけ ただし、ボールはからの筒か、同じ色のボールにしか置けない。 結構適当にやると詰むんですよね 特に難易度が上がっていくとなおさら。 コツっていうわけではないですが、 常に1本からにできないかを考えながらやっていく あるいは、全部埋めちゃっても、1本空くようなルートがないかを意識する と、突然目の前に道が開かれて行って気持ちいですね。 上の状態

                                  こういう単純なゲームって本当に時間泥棒【Ball Sort Puzzle】 - LetLifeLoose
                                • How to Sort Your Gmail Inbox by Sender, Subject, and Label

                                  There's no one-click way to sort your Gmail by sender, but you can do it. Learn how to sort your inbox with filters like subject, sender, and labels. Gmail is a great tool, but it falls short in terms of offering intuitive ways of sorting your inbox. Fortunately, there are easy workarounds that give you more control over finding messages. Let's look at how to organize and sort Gmail by sender, sub

                                    How to Sort Your Gmail Inbox by Sender, Subject, and Label
                                  • Amazon Redshift の新機能「Auto Vacuum & Auto Sort」の徹底検証 #reinvent | DevelopersIO

                                    先週、AWS re:Invent 2019で発表のあった「Auto Vacuum & Auto Sort」は、機械学習を使用してクエリのパターンを分析した結果に基づき、VACUUMを自動実行する機能です。なんかいい感じで暇な時に自動でVACUUMしてくれる、というニュアンスが伝わってくるのですが、本当のところどうかという点が気になります。そこで、この「機械学習を使用してクエリのパターンを分析」とは何かという点に着目して、実際の動作を確認してみました。 Auto Vacuum & Auto Sort とは これまでのRedshiftのAuto Vacuum Delete は論理削除した領域の開放のみなので、ソートキーを設定したテーブルは別途VACUUMを実行が必要でした。「Auto Vacuum & Auto Sort」は、Auto Vacuum で データのソートも自動実行されるようになり

                                      Amazon Redshift の新機能「Auto Vacuum & Auto Sort」の徹底検証 #reinvent | DevelopersIO
                                    • Bubble sort slower with -O3 than -O2 with GCC

                                      I made a bubble sort implementation in C, and was testing its performance when I noticed that the -O3 flag made it run even slower than no flags at all! Meanwhile -O2 was making it run a lot faster as expected. Without optimisations: time ./sort 30000 ./sort 30000 1.82s user 0.00s system 99% cpu 1.816 total -O2: time ./sort 30000 ./sort 30000 1.00s user 0.00s system 99% cpu 1.005 total -O3: time .

                                        Bubble sort slower with -O3 than -O2 with GCC
                                      • 思った通りに sort されない (LC_COLLATE=en_US.UTF-8 の罠) | ず@沖縄

                                        ls -l | sort したら、思った通りの順番に並ばないという相談を受けた。その方のLinux環境では、このように並ぶらしい。 一見して変だ。各行の先頭の文字は通常は - d t の順序(ASCIIコード順)に並ぶのだが、 これは d – t の順にならんでいる。 d t – でもないのが怪しさを増している。 $ ls -l /var/log | sort drwx------ 2 root root 4096 Jul 12 2021 private drwxr-sr-x+ 2 root systemd-journal 4096 Jun 4 2021 journal drwxr-x--- 2 root adm 4096 Jul 22 2020 unattended-upgrades drwxr-xr-x 2 landscape landscape 4096 Jul 12 2021 la

                                          思った通りに sort されない (LC_COLLATE=en_US.UTF-8 の罠) | ず@沖縄
                                        • まだ sort して uniq してるの?

                                          ※この記事は以下書籍の内容を参考に書いています。 書籍:「シェル芸」に効く!AWK処方箋 intro エンジニアであれば、ログ調査でセッション一覧を出力する時など 『多数ある要素から重複を排除する』シーンは多いかと思います。 私の身の回りではsortしてuniqしている人が多いように感じますが awkのほうが便利で速いです。 awkとは awk[1]はUNIXで開発されたプログラミング言語で、テキスト処理に長けています。 awkを使いこなせると、コマンドで出来ることがより"多く"なります(激寒) awkの記法

                                            まだ sort して uniq してるの?
                                          • jaspervdj - Lazy Sort: Counting Comparisons

                                            How good is Haskell's lazy sort actually? Published on September 17, 2020 under the tag haskell Haskell’s laziness allows you to do many cool things. I’ve talked about searching an infinite graph before. Another commonly mentioned example is finding the smallest N items in a list. Because programmers are lazy as well, this is often defined as: This happens regardless of the language of choice if w

                                            • key指定でtuple配列のsortを高速化 - Qiita

                                              はじめに 競プロ精進中に「計算量的には間に合いそうなのにTLEする...」と悩んでいたところ、前準備のsort部分がボトルネックになっていたと発覚。 ハマったポイントを共有します。 tupleの配列のsort key指定あり/なしの違いについて、簡潔に説明します。 key指定あり a = [(3,3), (2,2), (3,1), (4,2)] a.sort(key=lambda x: x[0]) print(a) # => [(2, 2), (3, 3), (3, 1), (4, 2)] 指定したkeyの大小によって、sortを行います。keyの要素が等しければ、その順序は保持されます。 sort() メソッドは安定していることが保証されています。ソートは、等しい要素の相対順序が変更されないことが保証されていれば、安定しています。(公式ドキュメント) sort(key=lambda x:

                                                key指定でtuple配列のsortを高速化 - Qiita
                                              • jq で IP アドレスを sort_by しようと思ったがうまくいかなかったので大人しく sort -V を使った | DevelopersIO

                                                コンバンハ、千葉(幸)です。 AWS サービスの IP レンジの確認にip-ranges.jsonを jq でフィルタリングすることがしばしばあります。 そのまま実行すると IP プレフィックスは整列されていない状態で出力されるため、ソートしたいと考えました。 jq の機能に sort が含まれているため、そちらでなんとかできないかと思い試してみました。 まとめ jq の sort_byを使用すると文字列としてソートされるため期待した並びにならない jq でソートするのは諦めてパイプしてsortを使用しよう sortを使用する場合は-Vオプションを使用しよう (追記)jq だけでも split() や map() を使用すれば実現できる……! ip-ranges.json に jq を使用する AWS サービスが使用する IP アドレス範囲は、ip-ranges.jsonとして公開されてい

                                                  jq で IP アドレスを sort_by しようと思ったがうまくいかなかったので大人しく sort -V を使った | DevelopersIO
                                                • 【JavaScript入門】sort()による配列・文字列・オブジェクトのソート方法 | 侍エンジニアブログ

                                                  今回は、JavaScriptで数値や文字列などを昇順・降順で並び替えることができる「sort()」メソッドについて学習していきましょう! sort()とは? sort()は、JavaScriptで並び替えを実現するメソッドになります。文字列順や数字の大小などによる昇順・降順で対象の値を並び替えることができるようになるので、データの操作などでよく使われます。 また、配列に格納されたバラバラの値やオブジェクトのキー(プロパティ)を対象にして並び替えることも可能なので、活用範囲はとても広いと言えます。 ただし、sort()は元の配列データを変更してしまう破壊的メソッドでもある点には注意が必要です。本記事ではこのような注意点も含めて基本から応用まで解説していきますので、ぜひ参考にしてみてください! 文字列の「sort()」について この章では、文字列が格納された配列のソート方法について見ていきまし

                                                    【JavaScript入門】sort()による配列・文字列・オブジェクトのソート方法 | 侍エンジニアブログ
                                                  • GitHub - gustavo-depaula/stalin-sort: Add a stalin sort algorithm in any language you like ❣️ if you like give us a ⭐️

                                                    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 - gustavo-depaula/stalin-sort: Add a stalin sort algorithm in any language you like ❣️ if you like give us a ⭐️
                                                    • sort -u と sort | uniq は同じじゃないよ ~ 文字の順番とロケールとPOSIXと現実の実装のめんどくさい話 - Qiita

                                                      sort -u と sort | uniq は同じじゃないよ ~ 文字の順番とロケールとPOSIXと現実の実装のめんどくさい話ShellScriptBashLinuxUNIXPOSIX はじめに sort コマンドの -u オプションは重複行を取り除くオプションです。-u は 1979 年の Vesion 7 Unix のときからある古いオプションで、シェルスクリプトに詳しいと自負している人でこのオプションを知らなければモグリでしょう。uniq コマンドは重複行を取り除くコマンドです。「現在のすべての問題が解決された場合」は sort -u と sort | uniq はほぼ同じになるのですが、実際には異なる結果を返すことがあります。この記事ではその問題について解説します。 前提知識: sort-u と uniq の正しい理解 この記事の話とは少し異なりますが前提知識として sort コマ

                                                        sort -u と sort | uniq は同じじゃないよ ~ 文字の順番とロケールとPOSIXと現実の実装のめんどくさい話 - Qiita
                                                      • JavaScriptのsort関数で日本語を50音順に並べたい - Qiita

                                                        目的 JavaScriptで日本語でのソートを行う際、意図した挙動にならなかったため自分なりに調べた結果をまとめました。 今回はこんな感じで単純な文字列をソートしていきます。 const array = ["う", "い", "あ", "ウ", "イ", "ア", "宇", "井", "亜", "a", "i", "u"];

                                                          JavaScriptのsort関数で日本語を50音順に並べたい - Qiita
                                                        • GitHub - stormwarning/stylelint-config-recess-order: 🗂️ Recess-based property sort order for Stylelint.

                                                          A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

                                                            GitHub - stormwarning/stylelint-config-recess-order: 🗂️ Recess-based property sort order for Stylelint.
                                                          • [解決!Python]リスト(配列)をソートしたり、逆順にしたりするには(sort/reverseメソッド、sorted/reversed関数)

                                                            [解決!Python]リスト(配列)をソートしたり、逆順にしたりするには(sort/reverseメソッド、sorted/reversed関数):解決!Python sortメソッドやsorted関数でリスト(配列)の要素をソートしたり、reverseメソッドやreversed関数で要素を逆順に並べたりする方法を紹介する。 # リストの要素をソートする(インプレース) mylist = [18, 0, 16, 6, 15, 7, 9, 1, 2, 5] mylist.sort() print(mylist)  # [0, 1, 2, 5, 6, 7, 9, 15, 16, 18] # リストの要素をソートした新しいリストを作成する mylist = [18, 0, 16, 6, 15, 7, 9, 1, 2, 5] newlist = sorted(mylist) print('mylis

                                                              [解決!Python]リスト(配列)をソートしたり、逆順にしたりするには(sort/reverseメソッド、sorted/reversed関数)
                                                            • 【Moving Out 2】(スナックモア編) 11. Sort-N-Sweet - Cou氏の徒然日記

                                                              ■ Moving Out 2 (ムービングアウト2) ★ スナックモア編 Stage 11. Sort-N-Sweet 4箇所のパイプから出てくるお菓子(一部、家具?)を、決まった場所に分類していくステージ。 関係ないものや間違ったものは、ベルトコンベアに乗せてゲートを通した時に消滅するだけで、特にペナルティはなさそう。 そのため、どんどん乗せて送ってしまえばよさそうです。 ■ ボーナス目標 ■ シャーベット爆弾に当たるな お菓子の操作卓を5個搬入しろ 3秒以内に3個のくまグミを搬入しろ ボーナス目標ですが・・・ 1つ目の目標は簡単。 パイプから、キャンディーも出てきますが、それはしばらくすると爆発するので、キャンディーが出てきたら避ければいいだけ。 ただ、後半になるとパイプから飛んでくる荷物が増えるので、たまに埋まっていて見えなくて不意な爆発に巻き込まれることがあるので、それだけ注意が必

                                                                【Moving Out 2】(スナックモア編) 11. Sort-N-Sweet - Cou氏の徒然日記
                                                              • Ubuntu (Pop!_OS) で ls -l の出力を sort に食わせたらアルファベットの間に記号が来た。壊れてるのは誰だ。 - はてなの鴨澤

                                                                学生に sort コマンドを教えた日の講義録を作っていて妙な現象にぶち当たった。 kmf@pop-os:~$ ls -l /var/log/ | sort drwx------  2 root              root                4096  2月 19 16:27 private drwx------  2 speech-dispatcher root         4096  1月  9 09:53 speech-dispa (中略) -rw-rw-r--  1 root              utmp               11520  5月 13 23:02 wtmp -rw-rw-r--  1 root              utmp              292292  5月 13 23:02 lastlog total 9102

                                                                  Ubuntu (Pop!_OS) で ls -l の出力を sort に食わせたらアルファベットの間に記号が来た。壊れてるのは誰だ。 - はてなの鴨澤
                                                                • JSONの表現形式を変えずにキーでソートするsort-json-by-object-keyを作った - エムスリーテックブログ

                                                                  エムスリー エンジニアの岩本です。 3年前になりますが、弊社の滝安(@juntaki)が投稿した下記の記事にあるGolden file testingが現在もプロダクトに組み込まれてメンテナンスされています。 www.m3tech.blog このGolden file testingを扱いやすくするためのツールを作ったので紹介します。 www.npmjs.com ソートのイメージ 背景 アプリケーションの仕様を変更したときに数多くのGolden file testingが変更されてしまいます。 意図した変更だけがGolden fileに適用されていることを確認するためにGitのdiffを使って確認しようとしますが、 JSONを出力すると以前と異なる順番のキーで出力されてしまいます。 例えば下記のようなjsonが結果として出力されていたものがあった場合に、 { "a": "1234", "b

                                                                    JSONの表現形式を変えずにキーでソートするsort-json-by-object-keyを作った - エムスリーテックブログ
                                                                  • GitHub - christianmemije/sortify: Sort Spotify playlists

                                                                    A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

                                                                      GitHub - christianmemije/sortify: Sort Spotify playlists
                                                                    • Spring BootのPageableで一定量以上のoffsetや意図しないSortを防ぐ - grep Tips *

                                                                      動作確認環境 Java 11 Spring Boot 2.5.5 一定量以上のoffsetや意図しないSortによる問題 一定量以上のoffset Spring Bootによるpage, sizeへの制限 Spring BootのPageableをControllerの引数にセットすればpage, size等のクエリパラメータを解釈してPageableにセットしてくれる。 OutOfMemoryを防ぐために、Spring Bootのデフォルト設定でsizeに2,000件以上設定しても2,000件になるようになっている(docs.spring.ioか日本語訳spring.pleiades.ioのspring.data.web.pageable.max-page-sizeを参照)。つまりPageableの1ページの件数はセーフガードが入ってる。 しかしpageには上限の設定がない。確かにJav

                                                                        Spring BootのPageableで一定量以上のoffsetや意図しないSortを防ぐ - grep Tips *
                                                                      • Hoare’s Rebuttal and Bubble Sort’s Comeback

                                                                        Editor’s note: For this blog entry I welcome my friend and colleague Gerben Stavenga as a guest author. Recently Andrei Alexandrescu published an interesting post about optimizing QuickSort using the Lomuto partition scheme. The essence of that post is that for many situations the performance of QuickSort is completely dominated by branch mispredicts and that a big speed up can be achieved by writ

                                                                        • a calls concentration for high It's level of of sort that the work | ならべかえ 英語 リスニング

                                                                          a calls concentration for high It's level of of sort that the work

                                                                            a calls concentration for high It's level of of sort that the work | ならべかえ 英語 リスニング
                                                                          • 数値を含む文字列のリストを数値順でソート (numerical sort, python) - ろぐれこーど

                                                                            pythonにはリストをソートするための関数sorted()がありますが、数値を含む文字列のリストをソートすると意図しないものとなります。 l = [ "test2", "test1", "test12", "test4", "test10" ] sorted(l) # ["test1", "test10", "test12", "test2", "test4"] となる これは数値が文字列として解釈されてしまうためです。これを数値順にソートする(numerical sortとか言うらしい)方法を調べたのでメモしておきます。 結論 補足説明あれこれ reによる文字列分割 natural_keys()の処理について 引数key まとめ 結論 以下のサイトまんまです。 stackoverflow.com 関数を定義し、sort()の引数keyを指定します。文字列のパースに正規表現を使うため、r

                                                                              数値を含む文字列のリストを数値順でソート (numerical sort, python) - ろぐれこーど
                                                                            • Rubyのsortとsort_byを理解してマルチソートをしよう - Qiita

                                                                              Rubyの配列を並び替えるときはArray#sortかArray#sort_byを使うことになるかと思います。 data = (1..10).to_a.shuffle p data.sort # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] require 'date' data = [ {id: 1, name: '吉田(A)', ruby: 'yoshida', join_date: Date.new(2009, 4, 1)}, {id: 2, name: '鈴木', ruby: 'suzuki', join_date: Date.new(2015, 4, 1)}, {id: 3, name: '吉田(B)', ruby: 'yoshida', join_date: Date.new(2009, 4, 1)}, {id: 4, name: '佐藤', ruby: 's

                                                                                Rubyのsortとsort_byを理解してマルチソートをしよう - Qiita
                                                                              • Speeding up sort performance in Postgres 15

                                                                                This post by David Rowley about Postgres 15 was originally published on the Microsoft TechCommunity Blog. In recent years, PostgreSQL has seen several improvements which make sorting faster. In the PostgreSQL 15 development cycle—which ended in April 2022—Ronan Dunklau, Thomas Munro, Heikki Linnakangas, and I contributed some changes to PostgreSQL to make sorts go even faster. Each of the improvem

                                                                                  Speeding up sort performance in Postgres 15
                                                                                • Type-level Bubble Sort in Rust: Part 1

                                                                                  In this series of articles, we are going to implement bubble sort algorithm on the type level using (abusing) Rust's type system, which is Turing-complete. The goal I want to accomplish by these articles is to help you understand what type level programming feels like, try to clear what's behind of all these "traits" and "impls", and to show what Rust's type system is capable of. Before jumping in

                                                                                    Type-level Bubble Sort in Rust: Part 1

                                                                                  新着記事