並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 21 件 / 21件

新着順 人気順

"Code Golf"の検索結果1 - 21 件 / 21件

  • 【JS体操】JavaScript で頭の体操をしよう!〜第1問 44文字 解説編〜 - KAYAC Engineers' Blog

    こんにちは!カヤック面白プロデュース事業部のおばらです。 普段は受託案件、特にインタラクティブな WebGL や Canvas2D を駆使する案件のデザイン&実装を担当しています。 先日出題したJS体操 第1問目、挑戦してくださったみなさまありがとうございました! 早速ですが最短文字数の回答は 44文字 でした! export default x=>x-(x%=.2)+.2-(.04-x*x)**.5 みごと44文字を達成した方は、 halwhite さん koyama41 さん sugyan さん tkihira さん たつけん さん の5名!(※ Unicode コードポイント順) おめでとうございます!! 最短文字数を狙った正統派の回答以外にも、裏技的な面白アプローチがたくさんありました笑 このアプローチは面白い、ぜひ紹介したい!という回答がいくつかあったので、解説記事は2回に分けて

      【JS体操】JavaScript で頭の体操をしよう!〜第1問 44文字 解説編〜 - KAYAC Engineers' Blog
    • Linux Pipes are Slow | Quentin Santos

      vmsplice is too fast Some programs use a particular system call “vmsplice” to move data faster through a pipe. Francesco already did a deep dive on using vmsplice to make things fast. However, while experimenting with it, I noticed that, when not using vmsplice, Linux pipes are slower than what I would have expected. Since you cannot always use it, I wanted to understand exactly why that was, and

      • Extreme Explorations of TypeScript's Type System | Learning TypeScript

        TypeScript's type system is Turing Complete: meaning it has conditional branching (conditional types) and works with an arbitrary huge amount of memory. As a result, you can use the type system as its own programming language complete with variables, functions, and recursion. Developers have pushed the bounds of type operations possible in the type system to write some pretty incredible things! Th

          Extreme Explorations of TypeScript's Type System | Learning TypeScript
        • 焼き鳥屋で刑法学者と意気投合してコインハイブ事件について書き出すだけの難儀なお仕事 - 白のカピバラの逆極限 S.144-3

          JavaScript で仮想通貨を採掘するコインハイブというライブラリがありました。 コインハイブ事件というのは、この仮想通貨をマイニングするプログラムコードを自身の管理するウェブサイトに設置したところ、不正指令電磁的記録保管罪(刑法168条の3)に問われたというものです。 このコインハイブ事件に関して、「アプリ開発の実務を踏まえた不正指令電磁的記録に関する罪の一考察 -コインハイブ事件を契機としてー」というタイトルで千葉大学の紀要に書き、千葉大学のページ上で PDFでも公開されました。 https://opac.ll.chiba-u.jp/da/curator/900119535/S09127208-36-1-P056.PDF https://opac.ll.chiba-u.jp/da/curator/900119535/ 内容に入る前に、まずは、この事件に関わっている、被告人、弁護士、

            焼き鳥屋で刑法学者と意気投合してコインハイブ事件について書き出すだけの難儀なお仕事 - 白のカピバラの逆極限 S.144-3
          • jq 1.7 | Hacker News

            This is great, JQ is brilliant.I love JQ so much we implemented a subset of JQ in Clojure so that our users could use it to munge/filter data in our product (JVM and browser based Kafka tooling). One of the most fun coding pieces I've done, though I am a bit odd and I love writing grammars (big shoutout to Instaparse![1]). I learned through my implementation that JQ is a LISP-2[2] which surprised

            • Simply Parse in C

              by Chloe Kudryavtsev People are terrified of parsers and parsing. To the point of using magical libraries with custom syntaxes to learn just to get started. In the hopes of completely shattering this preconception, I will write a parser for the “ini” file format in about 150 lines of pure and readable ISO C99. Furthermore, this parser will be something that's nice to use and has error correcting f

                Simply Parse in C
              • Code Golf

                Code Golf is a game designed to let you show off your code-fu by solving problems in the least number of characters. Since this is your first time here, we suggest starting with something simple like Fizz Buzz. Also visit our Discord server for some advice.

                  Code Golf
                • The Fastest FizzBuzz Implementation

                  I have 15 years of consulting & hands-on build experience with clients in the UK, USA, Sweden, Ireland & Germany. Past clients include Bank of America Merrill Lynch, Blackberry, Bloomberg, British Telecom, Ford, Google, ITV, LeoVegas, News UK, Pizza Hut, Royal Mail, T-Mobile, Williams Formula 1, Wise & UBS. I hold both a Canadian and a British passport. My CV, Twitter & LinkedIn. The following is

                  • A Modern CSS Reset

                    Andy Bell Posted on Oct 1, 2019 • Originally published at hankchizljaw.com on Oct 1, 2019 I think about and enjoy very boring CSS stuff—probably much more than I should do, to be honest. One thing that I’ve probably spent too much time thinking about over the years, is CSS resets. In this modern era of web development, we don’t really need a heavy-handed reset, or even a reset at all, because CSS

                      A Modern CSS Reset
                    • FizzBuzzを1byteで実装する

                      初歩的なプログラミングの例題としてよく例に出されるものとしてFizzBuzz問題というものがあります。このFizzBuzz、人類の知識を結集すると、どれくらい簡単に書けるのでしょうか? この記事の内容をざっくり2行で: 様々なプログラミング言語の最小のFizzBuzzコードを比較する 最短で1バイトで実装できる (注) この記事は以前Qiitaに投稿されたFizzBuzzを1byteで実装すると同一の内容になります。 Code Golf とは 問題の条件を満たすプログラムをできるだけ短い文字数で実現する競技は Code Golf と呼ばれます。 スポーツとしてのゴルフと同じように、スコアが小さいほど優れています。 Code Golfのスコアとは、文字数(=何バイトか)で、空白や改行なども1文字としてカウントされます。 *コードゴルフはコンピュータプログラミング・コンテストの一種。参加者は与

                        FizzBuzzを1byteで実装する
                      • Squeezing a sokoban game into 10 lines of code

                        If you’re only interested in seeing or playing the game, you can find it on my GitHub. The occasion The Haskell Tiny Game Jam is a game jam which challenges participants to write a video game in Haskell using 10 lines of 80 characters. I happen to love Haskell and code golf (abusing a programming language to produce disgustingly short code for fun) so I decided to enter the Feb ‘23 jam. My journey

                        • Why We Use Julia, 10 Years Later

                          Exactly ten years ago today, we published "Why We Created Julia", introducing the Julia project to the world. At this point, we have moved well past the ambitious goals set out in the original blog post. Julia is now used by hundreds of thousands of people. It is taught at hundreds of universities and entire companies are being formed that build their software stacks on Julia. From personalized me

                            Why We Use Julia, 10 Years Later
                          • The largest number representable in 64 bits

                            ┬─┬─────────┬─┬─┬ ┬─┬── └─┤ ──┬──── │ │ │ ┼─┼─┬ │ ──┼─┬── │ │ │ │ ├─┘ │ ┬─┼─┼─┬ │ │ │ ├─┘ │ └─┤ │ │ │ │ │ │ │ └─┤ │ │ │ │ │ │ ├─┘ │ │ │ │ └─────┤ │ │ │ │ └───┤ │ │ │ └─┤ │ │ └─┤ │ └─┘ Most people believe 264-1 = 18446744073709551615, or 0xFFFFFFFFFFFFFFFF in hexadecimal, to be the largest number representable in 64 bits. In English, it’s quite the mouthful: eighteen quintillion four hundred forty-

                            • Golfing language extensions

                              Those 73 characters require 21 language extensions to compile correctly! This blog post aims to quickly explain what that code does by showing how to require various language extensions with the least amount of code. Before we get started, a couple notes: The challenge was to require the most language extensions with the fewest characters. I would be happy to be proven wrong, but I think you can't

                                Golfing language extensions
                              • Interactive Learning Tools For Front-End Developers — Smashing Magazine

                                We learn better by playing games. So we’ve collected interactive coding tools and games to help you learn CSS, JavaScript, SQL, React, Vim, regular expressions, Jamstack and pretty much everything in-between. Because this industry moves so quickly, learning new skills is a regular thing for most of us. Over the last little while, I’ve been able to collect links to several interactive coding tools

                                  Interactive Learning Tools For Front-End Developers — Smashing Magazine
                                • 週刊Railsウォッチ: Rubyガベージコレクション高速化、RubyコードゴルフQ&Aほか(20230831後編)|TechRacho by BPS株式会社

                                  週刊Railsウォッチについて 各記事冒頭には🔗でパーマリンクを置いてあります: 社内やTwitterでの議論などにどうぞ 「つっつきボイス」はRailsウォッチ公開前ドラフトを(鍋のように)社内有志でつっついたときの会話の再構成です👄 お気づきの点がありましたら@hachi8833までメンションをいただければ確認・対応いたします🙏 TechRachoではRubyやRailsなどの最新情報記事を平日に公開しています。TechRacho記事をいち早くお読みになりたい方はTwitterにて@techrachoのフォローをお願いします。また、タグやカテゴリごとにRSSフィードを購読することもできます(例:週刊Railsウォッチタグ) 🔗Ruby 🔗 "Code Golf Stack Exchange"(Ruby Weeklyより) 元記事: code golf - Tips for g

                                    週刊Railsウォッチ: Rubyガベージコレクション高速化、RubyコードゴルフQ&Aほか(20230831後編)|TechRacho by BPS株式会社
                                  • 【競技プログラミング】目指せ全完!!!yosupo judgeの解説記事まとめ - Qiita

                                    はじめに yosupo judge データ構造やアルゴリズムが沢山集まる場所ですが、どうしてもハードルが高いので、初心者でも取っ掛かりやすいようにまとめます 間違いがあったり追加してほしい記事があればtwitterまで報告してくれると嬉しいです(Qiitaのプルリクでもいいです) テストケースを見たい方はこちらを参考にしてください yosupo judgeのテストケースを見る方法 目次 Sample Data Structure Graph Tree Math Convolution Polynomial Matrix String Sample A + B APG4b Many A + B fastIO(Codeforces) 高速I/O処理 - yaketake08's 実装メモ Data Structure Associative Array 恐らくfixed universe pr

                                      【競技プログラミング】目指せ全完!!!yosupo judgeの解説記事まとめ - Qiita
                                    • Funny Programming Languages

                                      January 19, 2023 Funny Programming Languages One of the weirdest and most wonderful things about people is that they can make a joke out of anything. For any human discipline there's people making jokes about that discipline. In programming, that starts with memes like "how do I exit vim" (as typified in places like r/programmerhumor), or funny examples of awful code (such as from TheDailyWTF).1 T

                                        Funny Programming Languages
                                      • Editors (Vim)

                                        Writing English words and writing code are very different activities. When programming, you spend more time switching files, reading, navigating, and editing code compared to writing a long stream. It makes sense that there are different types of programs for writing English words versus code (e.g. Microsoft Word versus Visual Studio Code). As programmers, we spend most of our time editing code, s

                                        • PHPerKaigi2020に4名のメンバーが登壇・プラチナスポンサーとして協賛しました - BASEプロダクトチームブログ

                                          この度は、2/9(日)~2/11(火)に練馬区の産業プラザ Coconeri ホールにて開催されたPHPerKaigi2020にプラチナスポンサーとして協賛し、また4名のメンバーが登壇しました。 今回は上記メンバーの他に一般聴講者として参加した4名のメンバーからの参加レポートをお届けします! 参加レポート(栗田) 概要 Service Dev Sectionに所属しています栗田です。 2020年2月9日(日)〜2月11日(火・祝)に開催されたPHPerKaigi 2020に聴講者として参加しました。 この記事は2日目の 2月10日(月)の参加レポートとなります。 当日は弊社から2名のトークセッションがあったりと、自分の知り合いのトークセッションがあり 盛りだくさんでした。 セッションを聞いたり、おかしをもぐもぐしたり、参加者と交流したり 茶会に参加したりなど充実した1日を過ごしました! 本

                                            PHPerKaigi2020に4名のメンバーが登壇・プラチナスポンサーとして協賛しました - BASEプロダクトチームブログ
                                          • The Art of Code - Dylan Beattie

                                            Software and technology has changed every aspect of the world we live in. At one extreme are the ‘mission critical’ applications - the code that runs our banks, our hospitals, our airports and phone networks. Then there’s the code we all use every day to browse the web, watch movies, create spreadsheets… not quite so critical, but still code that solves problems and delivers services. But what ab

                                              The Art of Code - Dylan Beattie
                                            1