はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    参議院選挙2025

『Ben Alman』

  • 人気
  • 新着
  • すべて
  • Ben Alman » Partial Application in JavaScript

    8 users

    benalman.com

    Unless you've used another functional programming language such as ML or Haskell, concepts such as partial application and currying in JavaScript may be foreign to you. That being said, once you understand these concepts, you can put them to use in your own code. Note: this article originally appeared on the MSDN Script Junkie site, but has since been substantially rewritten. While that version of

    • テクノロジー
    • 2012/09/26 23:23
    • javascript
    • functional
    • programming
    • まとめ
    • Ben Alman » Fixing "Retina" Image Scaling with Gyazo

      8 users

      benalman.com

      You know the new Apple Retina MacBook Pro laptop? The one with the super-high resolution display? Well, I got one last week, and I spent all weekend updating my dotfiles to work with OS X 10.8 (Mountain Lion). And after a lot of wrangling with XCode, I finally managed to get everything working. Well, almost everything. While using Gyazo, I’ve encountered one particularly annoying “Retina” related

      • テクノロジー
      • 2012/08/14 07:34
      • retina
      • gyazo
      • screenshot
      • osx
      • あとで読む
      • Ben Alman » Why grunt? Why not something else?

        9 users

        benalman.com

        Recently, Miller Medeiros wrote a blog post called Node.js, Ant, Grunt and other build tools where he outlined some of his concerns about JavaScript build tools, focusing specifically on grunt, the task-based JavaScript build tool I’ve been developing. Instead of posting a super-long comment on his blog, I figured I’d respond to his comments here. Configuration over scripting Miller says: Descript

        • テクノロジー
        • 2012/08/06 12:55
        • grunt
        • node.js
        • Tools
        • *あとで
        • jQuery postMessage: Cross-domain scripting goodness

          4 users

          benalman.com

          This working example, complete with fully commented code, illustrates one way in which this plugin can be used.

          • テクノロジー
          • 2012/07/31 13:21
          • postMessage
          • jQuery
          • plugin
          • javascript
          • Ben Alman » Multiple var statements in JavaScript, not superfluous

            5 users

            benalman.com

            Multiple var statements in JavaScript, not superfluous I’m not sure where or when it happened, but at some point the JavaScript community decided that multiple, individual var statements were superfluous, instead opting for a single, combined var statement with a comma-separated list of variable declarations and assignments whenever possible. Just in case you don’t know what I mean, I’ll illustrat

            • テクノロジー
            • 2012/05/05 22:13
            • JavaScript
            • 文章
            • programming
            • Unit Testing with QUnit

              12 users

              benalman.com

              What is QUnit? An easy-to-use JavaScript Unit Testing framework How easy? Very easy. test("some tests", function() { expect(3); ok(true, "passes because true is true"); equal("1", 1, "passes because '1' == 1"); strictEqual("1", 1, "fails because '1' !== 1"); }); Used and Maintained by the jQuery Project Thousands of tests. Why Unit Test? Does Your Code Work? Your code is more complex than you thin

              • テクノロジー
              • 2011/07/07 11:03
              • qunit
              • jQuery
              • javascript
              • slide
              • Test
              • jQuery
              • Ben Alman » Immediately-Invoked Function Expression (IIFE)

                9 users

                benalman.com

                In case you hadn’t noticed, I’m a bit of a stickler for terminology. So, after hearing the popular, yet misleading, JavaScript term “self-executing anonymous function” (or self-invoked anonymous function) one too many times, I’ve finally decided to organize my thoughts into an article. In addition to providing some very thorough information about how this pattern actually works, I’ve actually made

                • テクノロジー
                • 2011/01/20 09:50
                • javascript
                • programming
                • Ben Alman » jQuery hashchange event » Examples » hashchange event

                  10 users

                  benalman.com

                  Ben Alman » jQuery hashchange event » Examples » hashchange event The hash, it's a-changin'... Project Home, Documentation, Source Your generous donation allows me to continue developing and updating my code! jQuery hashchange event enables very basic bookmarkable #hash history via a cross-browser window.onhashchange event. Click, and watch as the magic happens! Note that there is absolutely no Ja

                  • テクノロジー
                  • 2010/11/19 12:35
                  • jquery
                  • javascript
                  • Ben Alman » jQuery Misc plugins

                    5 users

                    benalman.com

                    This page contains a collection of minor jQuery plugins which are too small, too simple, or just not exciting enough to require individual pages. More will be added as I find the time… and the code! jQuery :attached, :detached selectors - Selectors that match elements currently attached to or detached from the DOM. jQuery each2 - If you’re going to use $(this) inside an .each loop, iterating over

                    • テクノロジー
                    • 2010/07/29 12:45
                    • jQuery
                    • misc
                    • html
                    • Programming
                    • JavaScript
                    • Ben Alman » jQuery special events

                      14 users

                      benalman.com

                      The jQuery special events API is a fairly flexible system by which you can specify bind and unbind hooks as well as default actions for custom events. In using this API, you can create custom events that do more than just execute bound event handlers when triggered—these “special” events can modify the event object passed to event handlers, trigger other entirely different events, or execute compl

                      • テクノロジー
                      • 2010/03/30 09:49
                      • jquery
                      • Manual
                      • jQuery
                      • event
                      • JavaScript
                      • js
                      • article
                      • まとめ
                      • *あとで読む
                      • Ben Alman » John Resig: JavaScript's Chuck Norris

                        3 users

                        benalman.com

                        Some of the regular irc.freenode.net #jquery guys have come to the conclusion that John Resig, creator of jQuery, is the JavaScript world’s equivalent of Chuck Norris, so we came up with some ideas and decided to pay homage to him in a blog post. Note: he might actually be Chuck Norris, we’re not entirely sure. John Resig has never made a carousel plugin.. when he goes to the carnival, ALL the rid

                        • テクノロジー
                        • 2010/03/19 10:13
                        • Ben Alman

                          3 users

                          benalman.com

                          About Me My name (as you may already have guessed) is Ben Alman, but most people call me by my nickname, “Cowboy.” I’m a thirty-something web developer living and working in the Boston area. I’m happily married to a wonderful woman and we have two very crazy, but very awesome ragdoll cats. Feel free to contact me if you have any questions or just want to say “Hi.” And if you want to send me a dona

                          • テクノロジー
                          • 2010/03/14 23:29
                          • javascript
                          • jQuery
                          • programming
                          • Ben Alman » jQuery throttle / debounce: Sometimes, less is more!

                            32 users

                            benalman.com

                            jQuery throttle / debounce: Sometimes, less is more! jQuery throttle / debounce allows you to rate-limit your functions in multiple useful ways. Passing a delay and callback to $.throttle returns a new function that will execute no more than once every delay milliseconds. Passing a delay and callback to $.debounce returns a new function that will execute only once, coalescing multiple sequential c

                            • テクノロジー
                            • 2010/03/09 00:07
                            • jQuery
                            • JavaScript
                            • plugin
                            • event
                            • jQuery
                            • プラグイン
                            • performance
                            • 後で読む
                            • Ben Alman » jQuery outside events: Why trigger an event on something, when you can trigger it on everything else?

                              4 users

                              benalman.com

                              jQuery outside events: Why trigger an event on something, when you can trigger it on everything else? With jQuery outside events you can bind to an event that will be triggered only when a specific “originating” event occurs outside the element in question. For example, you can click outside, double-click outside, mouse-over outside, focus outside (and over ten more default “outside” events). Also

                              • テクノロジー
                              • 2010/03/03 21:30
                              • jQuery
                              • event
                              • plugin
                              • JavaScript
                              • Ben Alman » jQuery hashchange event

                                88 users

                                benalman.com

                                This jQuery plugin enables very basic bookmarkable #hash history via a cross-browser HTML5 window.onhashchange event. While this functionality was initially tied to the jQuery BBQ plugin, the event.special window.onhashchange functionality has now been broken out into a separate plugin for users who want just the basic event & back button support, without all the extra awesomeness that BBQ provide

                                • テクノロジー
                                • 2010/02/09 19:29
                                • jquery
                                • hashchange
                                • plugin
                                • javascript
                                • hash
                                • jQuery
                                • library
                                • ajax
                                • history
                                • event
                                • Ben Alman » Simple PHP Proxy: JavaScript finally "gets" cross-domain!

                                  14 users

                                  benalman.com

                                  Simple PHP Proxy: JavaScript finally "gets" cross-domain! With Simple PHP Proxy, your JavaScript can access content in remote webpages, without cross-domain security limitations, even if it’s not available in JSONP format. Of course, you’ll need to install this PHP script on your server.. but that’s a small price to have to pay for this much awesomeness. Release v1.6 Download Source Follow the pro

                                  • テクノロジー
                                  • 2010/01/05 15:22
                                  • proxy
                                  • javascript
                                  • php
                                  • Ben Alman » Gyazo.. on your own server

                                    4 users

                                    benalman.com

                                    A while back, Paul Irish turned me on to gyazo, a very small, very simple, very free app that allows you to very quickly share screen captures over the web. It works by first using the operating system’s own screen capture tools to snap an image of a region you specify, then it uploads that image to gyazo.com, opening it in your web browser. The URL is even copied to the clipboard afterwards. Perf

                                    • テクノロジー
                                    • 2009/12/23 19:49
                                    • gyazo
                                    • php
                                    • Ben Alman » jQuery 1.4 $.param demystified

                                      3 users

                                      benalman.com

                                      If you’ve tried out jQuery 1.4, you might have noticed that, among other things, the $.param method has seen some significant improvements. I’d like to take a few moments to explain how request params parsing works, and how things have changed in jQuery 1.4. If you really only want to read about what’s changed in jQuery 1.4, skip ahead to the so, what does all this have to do with jQuery 1.4? sect

                                      • テクノロジー
                                      • 2009/12/21 23:49
                                      • jQuery
                                      • JavaScript
                                      • Ben Alman » jQuery BBQ: Back Button & Query Library

                                        29 users

                                        benalman.com

                                        jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods. This plugin and the jQuery urlInternal plugin supersede the URL Utils plugin. Release v1.2.1 Tested with jQuery 1.3.2, 1.4.1, 1.4.2 in

                                        • テクノロジー
                                        • 2009/10/06 10:09
                                        • jQuery
                                        • hashchange
                                        • plugin
                                        • javascript
                                        • library
                                        • Ben Alman » jQuery postMessage: Cross-domain scripting goodness

                                          9 users

                                          benalman.com

                                          jQuery postMessage enables simple and easy window.postMessage communication in browsers that support it (FF3, Safari 4, IE8), while falling back to a document.location.hash communication method for all other browsers (IE6, IE7, Opera). With the addition of the window.postMessage method, JavaScript finally has a fantastic means for cross-domain frame communication. Unfortunately, this method isn’t

                                          • テクノロジー
                                          • 2009/08/26 03:21
                                          • jQuery
                                          • plugin
                                          • javascript
                                          • Ben Alman » jQuery doTimeout: Like setTimeout, but better

                                            4 users

                                            benalman.com

                                            jQuery doTimeout takes the work out of delayed code execution, including interval and timeout management, polling loops and debouncing. In addition, it’s fully jQuery chainable! Generally, setTimeout is used in JavaScript to delay the execution of some code, which is fairly easy to do and doesn’t require much, if any additional code. Where it starts to get a little more complicated is when you wan

                                            • テクノロジー
                                            • 2009/07/16 23:00
                                            • jquery
                                            • plugin
                                            • library
                                            • JavaScript
                                            • Ben Alman » jQuery iff: A chainable "if" statement

                                              8 users

                                              benalman.com

                                              This relatively simple and very small jQuery plugin gives you the functionality and power of a standard JavaScript "if" statement, without breaking the chain. In one way, iff operates like .filter(), in that it allows you to conditionally process a subset of selected elements, but instead of allowing you to preserve or remove individual elements, it operates on the entire set of elements. Release

                                              • 暮らし
                                              • 2009/06/09 01:46
                                              • jQuery
                                              • plugin
                                              • javascript

                                              このページはまだ
                                              ブックマークされていません

                                              このページを最初にブックマークしてみませんか?

                                              『Ben Alman』の新着エントリーを見る

                                              キーボードショートカット一覧

                                              j次のブックマーク

                                              k前のブックマーク

                                              lあとで読む

                                              eコメント一覧を開く

                                              oページを開く

                                              はてなブックマーク

                                              • 総合
                                              • 一般
                                              • 世の中
                                              • 政治と経済
                                              • 暮らし
                                              • 学び
                                              • テクノロジー
                                              • エンタメ
                                              • アニメとゲーム
                                              • おもしろ
                                              • アプリ・拡張機能
                                              • 開発ブログ
                                              • ヘルプ
                                              • お問い合わせ
                                              • ガイドライン
                                              • 利用規約
                                              • プライバシーポリシー
                                              • 利用者情報の外部送信について
                                              • ガイドライン
                                              • 利用規約
                                              • プライバシーポリシー
                                              • 利用者情報の外部送信について

                                              公式Twitter

                                              • 公式アカウント
                                              • ホットエントリー

                                              はてなのサービス

                                              • はてなブログ
                                              • はてなブログPro
                                              • 人力検索はてな
                                              • はてなブログ タグ
                                              • はてなニュース
                                              • ソレドコ
                                              • App Storeからダウンロード
                                              • Google Playで手に入れよう
                                              Copyright © 2005-2025 Hatena. All Rights Reserved.
                                              設定を変更しましたx