js_of_ocaml が熱い。 Google の Dart とか、そんな場合じゃない!! OCaml で書かれたプログラムがなぜか JavaScript に変換され、それがブラウザで動く。 JS で型がついていないオブジェクトでも何となく型をつけて OCamlで型安全に呼び出せる! 既存の JS ライブラリ資産が、ほとんど手間をかけずに、そのまま関数型言語パラダイムで使える! え?よくわからない? http://ocsigen.org/js_of_ocaml/manual/ の demo を試してご覧なさい。これが全部 OCaml で書かれている…! そんなわけで、 js_of_ocaml 体験記。だいたい実際に行っていった Hack を(行き止まりになった失敗枝は刈り去って)なぞっている。あ、ちなみに当方 JavaScript に関してはほとんど知識が無い。JS に関しては用語とか間違
JstableSys_jsTyped_arrayCSSDomDom_eventsDom_htmlDom_svgEventSourceFileFirebugFormGeolocationJsonMutationObserverRegexpUrlWebGLWebSocketsWorkerXmlHttpRequestJs_of_ocaml_lwt – API ReferenceLwt_jsonpLwt_xmlHttpRequestLwt_fileLwt_js_eventsLwt_jsLwt logger - API ReferenceLwt_log_jsGraphics - API ReferenceGraphics_jsDeriving - API ReferenceDeriving_JsonPa_deriving_JsonTyxml - API ReferenceTyxml_jsTyxml_
Presentation resources View the slides for this presentation on SlideShare Download the PDF Read my article on Large-Scale JavaScript Application Architecture Read 'Essential JavaScript Design Patterns For Beginners' if new to patterns Introduction Welcome to the resource page for my talk on Scalable JavaScript Design Patterns last presented at Web Directions (South). It's an extended version of t
Jasmine Headless WebKit Run your Jasmine specs at sonic boom speed! Jasmine is great. I love it. But running Jasmine when you need to test code that will run in a browser environment can be problematic and slow: The Jasmine gem's server makes getting up and testing very fast, but F5-ing your browser for each test run is distracting. Jasmine CI uses Selenium, which speeds up the process a bit, but
VBAでJScriptのArrayオブジェクトのメソッドを使ってみるサンプルです。 サンプルではSliceメソッドを使用してみています。 Sub JSArraySample() Set objJS = CreateObject("ScriptControl") With objJS .Language = "JScript" .AddCode "function JSSplit(s,d){return s.split(d);}" .AddCode "function JSArrayLength(a){return a.length;}" End With 文字列 = "a,b,c,d,e" Set b = objJS.CodeObject.JSSplit(文字列, ",") Cells(1, 1).Value = b.slice(0, 1) Cells(1, 2).Va
Understanding JavaScript OOP —Prototypical inheritance on awesomeness! JavaScript is an object oriented language, with its roots in the Self programming language, however (sadly) designed to look like Java. This makes the language's really powerful and sweet features stay covered by some pretty ugly and counter-intuitive work-arounds. One of such affected features is the implementation of prototyp
http://d.hatena.ne.jp/yosuke_furukawa/20111002/1317572377で知って、原文を読んでみたら罵倒しまくってて面白かったので全文翻訳してみました。 原文はNode.js is Cancerです。 ウェブデベロッパー逹は伝統的なやり方よりも冴えたやり方が大好きだが、伝統的なやり方がなぜ伝統になってるかというと動きやがるからだ。Node.jsのナンセンスな振る舞いにはしばらくムカついてたが、Node.js作者のRyan Dahlによるこのポストを読むまでは相手しないようにしてた。「UNIX難しいよぅ」とか弱音を吐くよく居るタイプのマヌケに肩をすくめていただけだ。 でも、家族連れのミニバンをガサ入れしたら50kgの上物ヘロインを見つけてしまった警官が世の中間違ってると感じるように、こいつの弱々しいすすり泣きの何が間違ってるのか考えた。たぶん、たぶん
A JavaScript unit testing framework Jarvis is a unit testing framework written in JavaScript. It’s based heavily off of the API of NUnit, which is a rewrite of a port of JUnit which is a port of SUnit. Eventually, there will be no new code: just rewrites of old code. Download Node: npm install jarvis-test -g Browser: v2.0.3 Source code: https://github.com/tmont/jarvis Example Here is a quick taste
とてつもなく基本的なことでありながらいつも忘れてしまうのでここにメモしておく。 Program → Statement → Expression が基本的な流れ。これ以外の代表的な要素としては…。 Block は Statement の下。さらに Statement を含める(複文を作れる)。 Expression の下に AssignmentExpression 、 AssignmentExpression は LeftHandSideExpression AssignmentOperator AssignmentExpression 。 LeftHandSideExpression が NewExpression か CallExpression 。 NewExpression の下に MemberExpression がいて、その下にやっと PrimaryExpression や F
jsPerf — JavaScript performance playground What is jsPerf? jsPerf aims to provide an easy way to create and share test cases, comparing the performance of different JavaScript snippets by running benchmarks. For more information, see the FAQ. Create a test case Login with GitHub to Create Test Cases
Pemeliharaan Terjadwal: Dream Gaming pada 04-Jul-2025 dari 05:00:00 sampai 07:30:00. Selama waktu ini, Dream Gaming permainan tidak akan tersedia. Kami memohon maaf atas ketidaknyamanan yang mungkin ditimbulkan. Pemeliharaan Terjadwal: Spinix pada 01-Oct-2024 dari 23:00:00 sampai 31-Dec-2025 23:59:59. Selama waktu ini, Spinix permainan tidak akan tersedia. Kami memohon maaf atas ketidaknyamanan ya
ウェブブラウザには、RFC で定義されている URI を処理するためのルーチンが組み込まれています。Mozilla Firefox や Opera は、そのうちの一つである RFC2397 で決められている data URL スキームを処理できます。このスキームは、html などのファイルの中に、通常リソースへのリンクを指定する場所に、直接データを埋め込むためのスキームです。そのため、複数のファイルを扱う必要がなくなるという利点が生まれます。具体的な書式は次のとおりです。 data:[MEDIATYPE][;base64],DATA ここで、MEDIATYPE は、インターネットでよく用いられている image/png や text/plain;charset=US=ASCII などで表現されているメディアを指定する文字列です。;charset=US=ASCII などのオプションも指定可能
今日初めて知ったのだが、data スキームを使えば URIにデータを組み込めるそうだ。 以下のようにすれば、 dataスキームで、任意の画像を表示させる事が出来る。 <img src="data:image/gif;base64,BASE64データ"> たとえば、 google のロゴを dataスキーム を 利用して表示したかったら、 $ curl -s http://www.google.com/images/logo_sm.gif | openssl base64 | tr -d '\n' こんな感じで base64 化したロゴ画像データを 該当部分に、貼付ければ良い。 <img src="data:image/gif;base64,ここに貼付ける。"> 該当RFC: http://www.ietf.org/rfc/rfc2397.txt
Windows 8 開発者プレビューでの開発を試していたところ、非同期プログラミングを簡単に書ける await キーワードが面白かったので紹介します。Windows 8 用に Metro アプリを開発する場合、WinRT(Windows Runtime)というフレームワークを使ってプログラミングします。WinRT では、UI 応答速度を上げるための工夫として、少しでも時間がかかる可能性のある処理は、非同期の API のみが提供されています。なんかめんどくさそうですよね。いえいえ、そんなことはありません。.NET 5 から導入される async/await キーワードでとても簡単に書けてしまいます。HelloWorld アプリケーションのサンプルたとえば、HelloWorld アプリケーションでは次のようなサンプルが紹介されています。 // UI を表示するページのコンストラクタ // UI
Inside Google, Javascript is the 4 largest language (in terms of lines of code) but one the fastest growing. Developing fast, robust and high quality Javascript is however a challenge within the industry. Unlike C++ or Java, the availability of high quality development, debugging and testing tools for Javascript is still lagging industry standards. Google has developed several unique tools to help
Revisions You can edit these tests or add even more tests to this page by appending /edit to the URL. Revision 1: published proudlygeek on 2011-6-6 Revision 2: published on 2011-8-10 Revision 3: published on 2011-9-27 Revision 4: published on 2011-9-27 Revision 5: published on 2011-9-27 Revision 6: published on 2011-9-27 Revision 9: published on 2011-9-27 Revision 10: published on 2011-9-27 Revisi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く