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
Este documento define y describe las estructuras anatómicas de la cavidad abdominal y pélvica. Explica que la cavidad abdominal se puede dividir en tres espacios: la cavidad intraperitoneal, el espacio retroperitoneal y la pelvis. Detalla las diferentes reflexiones y pliegues del peritoneo como los mesenterios, omentos y ligamentos. También describe los diferentes compartimentos de la cavidad abdo
String.prototype.indexOf() - JavaScript | MDNは、String の中の文字があったら、その文字の開始位置を返して、ない場合は「-1」を返します。 配列に対しても同様のメソッドがあり(Array.prototype.indexOf() - JavaScript | MDN)、配列の中の要素と、与えた値がマッチするか(===で比較する)どうかを調べて、マッチしたら配列の index を返して、ない場合は「-1」を返します。 たとえば、indexOf を使って、対象の文字列もしくは配列に、渡した値が存在するかどうかを確かめる場合、 var a = "foobar"; if (a.indexOf("bar") !== -1) { console.log("Matched"); } とする(RegExp.prototype.test() - JavaScr
Modern Web Best Practice: Pub/Sub Tyson Cadenhead delivers the first installment on a new ongoing series that dives into Modern Web Best Practices that are followed by appendTo. In this installment, he talks about the Publish/Subscribe Pattern and two open source libraries appendTo uses to implement this pattern By Tyson Cadenhead Introduction At appendTo, we are in the business of creating large
This posts looks beyond everyday usage of JavaScript’s objects. The fundamentals of JavaScripts objects are for the most part about as simple as using JSON notation. However, JavaScript also provides sophisticated tools to create objects in interesting and useful ways, many of which are now available in the latest versions of modern browsers. The last two topics I talk about, Proxy and Symbol, are
それほど新しい話題でもないが、FacebookがReact | A JavaScript library for building user interfacesというDOMを抽象化したようなView操作のライブラリをリリースした。 Githubが出してるエディタのAtomが実験的にReactを採用したり、Instagramが採用していたり、エディタでReactのシンタックスがサポートされ始めたり、海外では実際に使われはじめていて、実際に使ってみたら思いのほか使いやすかったので、簡単に使い方を書いていこうと思う。 まず、ReactにはJSXという、htmlをJS内で書ける言語がある。オプショナルなものだが、使ったほうがコードが綺麗になるので、この記事では使っていく。下記コードはEdit fiddle - JSFiddleなどでコンパイルなしにそのままテストできるので、適当にコピーしながら確
Full Name Comment goes here. 12 hours ago Reply Edit Delete Spam Block JavaScriptは本当にLLなのか? Presentation Transcript “JavaScript” がライトウェイト言語として 扱われていると聞いて LL Diver(ライトニングトーク) - 2014.08.18 私は、耳を疑ったのです。 JSへの愛が強すぎて辛い 他のセッションと内容が めちゃくちゃ被ってるので つい1時間前に書きかえました。 川田 寛 はじめましての方は、はじめまして と、申します。 @kawada_hiroshi html5jエンタープライズ部 部長 (HN:ふろしき) Web技術関連の記事とか いろいろと、執筆しています。 色々あって、先日ハンズラボの長谷川さんと 恵比寿で飲んでました。 LTで時間守れないよ
There are two kinds of moral wrongs a web page can do. This page describes the wrong of sending nonfree programs to run in your computer. There is also the wrong we call SaaSS, “Service as a Software Substitute” where the page invites you to send your data so it can do computing on it in the server—computing which is unjust because you have no control over what computing is done. You may be runnin
データをストリームとして表現する方法と、ストリームを変換する方法を紹介する。 ストリームはメッセージが流れる川である Pub/Subメッセージングモデルでメッセージを流すためのオブジェクトのことをストリームと呼ぶことにする。ストリームにはメッセージをPublishでき、またメッセージを受け取ったときの処理をSubscribeできる。例えばキーボードからの入力をPublishして、内容をコンソールに出力するような処理をSubscribeできる。 kamo.jsでストリームを表現する ストリームについて説明するために、kamo.jsというストリームを表現するためのライブラリをつくった。kamo.jsは、ストリームを作成するためのkamo.Streamというコンストラクタ関数を提供する。このコンストラクタ関数から作成されたオブジェクトは、publishとsubscribeというメソッド(※プロパ
複雑なアプリケーションではロギング、 トレーシング 、メトリクスといったサポートの機能により、関数にすぐ負荷がかかってしまいます。これらのコードブロックはあらゆるコードベース上でそれぞれ少し変形して繰り返し使用されるのですが、これを 横断的関心事(cross-cutting concerns) と言います。 アスペクト指向プログラミング (AOP)は、アスペクトと呼ばれるモジュール内にコードブロックを引き入れて、 関心の分離 (separation of concerns)を手助けします。 AOPの実装 Phoneクラス ^(1) 不自然な例だというのは承知の上で、 dial メソッド1つを使って簡単なPhoneクラスを構築してみました。 function Phone() {}; Phone.prototype.dial = function (friend) { var start =
JavaScript Test-Driven Development with Jasmine 2.0 and Karma This document discusses JavaScript test-driven development using Jasmine 2.0 and Karma. It introduces test-driven development principles and benefits, then covers the Karma test runner, PhantomJS browser, and features of the Jasmine testing framework including describe blocks, expectations, matchers, spies, and custom matchers. It also
setTimeout() vs ハッカー、仁義なき戦いによると function isNativeFunction(func, name) { for (var o in func) { if (o === "toString") return false; } var match = func.toString().match(/^function (\S+)\(\)\s*{\s*\[native code\]\s*}$/); return (match && match[1] === name); } setInterval = function(){}; isNativeFunction(setInterval, 'setInterval'); // false でsetIntervalが偽装されているか調べられると書いてあるが、そんなことはない。 自分が普段使っているブラウザはSa
Let's write our own pow function, to exponentiate integers. function pow(base, exponent) { var n = base; while (--exponent > 0) { n *= base; } return n; } Traditional unit testing Think of some test cases: pow(2,1) == 2 pow(2,2) == 4 pow(2,5) == 32 pow(2,8) == 256 pow(3,2) == 9 pow(10,4) == 10000 pow(1,99) == 1 Traditional unit testing Translated to BDD-style (Mocha): describe('pow', function() {
最近、Google から物理エンジンに関して面白そうなライブラリが登場したようなので jsdo.it で試してみました。 Googleがオープンソースの2D物理エンジンLiquidFun 1.1をリリース このライブラリは「Box2D」(2D の物理エンジンライブラリ)に、流体シミュレーション関連の機能を拡張したライブラリとなっているようです。 (ちなみに、JavaScript 版のライブラリは、C++ 版を Emscripten でコンバージョンしたものとなっているようです。) Wave Machine Particles Soup Soup Stirrer Impulse Rigid Particles Elastic Particles Surface Tension Theo Jansen サンプルを動かしてみるだけでも、結構楽しいので、興味がある方は試してみては如何でしょうか。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く