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
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
2009年03月09日00:30 カテゴリLightweight LanguagesTips regexp - ^$でなくて\A\zを使おう まずは回答から。 正規表現で「制御文字以外」のチェック - ockeghem(徳丸浩)の日記 文字エンコーディングの妥当姓 制御文字(\x00〜\x1f, \x7f)のチェック 文字列長のチェック このうち後ろ二つを正規表現として書くにはどうすればいいかを考えていました。 こういう時には、「全文字がOKならOK」と考えるのではなく、「一文字でもNGならNG」と考えると楽になります。それは「スペースと非制御文字以外」なのですから、/[^ \S]/が求めていた正規表現で、=~ではなく!~が使うべき演算子ということになります。全角スペースもOKにしたければ、/[^ \x{3000}\S]/。[追記参照] [Run via Codepad] #!perl -
Run This: seeing is believing! Add a button to let your readers run snippets of code directly from your blog and see the results interactively. Run This is built upon Ideone web services. Right now, supported languages are: Ada, Assembler, AWK, Bash, bc, Brainf**k, C, C#, C++, CLIPS, Clojure, COBOL, Common Lisp, D, Erlang, Forth, Fortran, Go, Haskell, Icon, Intercal, Java, JavaScript, Lua, Nemerl
repl.enter(content.wrappedJSObject) を実行すれば普通に「$」とかにアクセスできるようになることが分かった。 このコマンドは Firefox3 用のもので、Firefox2 では代わりに repl.enter(content)とすればいけるらしい。 例えばprototype.js の公式ページにいって 以下のようにコマンドを実行すると repl> repl.enter(content.wrappedJSObject) [object Window] repl> repl.whreAmI() [object Window] - Document title: "Prototype JavaScript framework: Easy Ajax and DOM manipulation for dynamic web applications" repl> r
id:amachang わーい \(^o^)/ JS で書ける IRC ボットライブラリできたよー (Rhino) たのしー \(^o^)/ というのに当てられて、タイトルですでにネタバレしているとおり、JSRuby を Rhino で試せるようにしてみました(笑)。 といっても、id:tokuhirom さんが commit してくれた repl.js をちょこっといじっただけですが(笑)。 (1) CodeRepos から JSRuby をぱしっと取ってくる。 (2) Java(5 以上?)や Rhino もいれておく (3) jsruby の trunk の下で下記実行 ( js.jar のパスは適宜指定 ) java -cp ./js.jar org.mozilla.javascript.tools.shell.Main tools/jjsruby.js これで対話的に Rhino
■ [ruby][git] JRubyがgitに移行 JRubyのリポジトリがsvnからgitに移行したそうな。 Headius: JRuby Moves to Git オフィシャルなリポジトリはkenai.comにあり、githubの方はミラーだそうです。 jrubyさんのアカウント。 活発にコミットがあります。 なぜgitを選んだかについては、 長いこと分散SCMを検討していて、Mercurialかgitにしようと思っていた KenaiはsvnとMercurialしか使えなかったんだけど、最近gitがサポートされた githubにリポジトリ置いた方がRubyistの援助を集めやすいんじゃね? そうこうする間にgitが気に入ってきた まあ結局、Ruby界でgitが人気だからgitにした。もしJythonの開発をやってたらMercurialの方を選んだだろうね とのこと。 ■ [ruby]
The other day at LA RubyConf during the Johnson presentation, I showed a few slides which I don’t think were given the time that they deserve. Not that we didn’t have enough time, I just don’t think I made as big a deal about them as I should have. Those particular slides demonstrated HTML Document Object manipulation executed in JavaScript outside any web browser. Those particular slides, and tha
In my last post about Johnson, I said that next time I would talk about the JavaScript parse tree that Johnson provides. Well, I changed my mind. Sorry. I want to write about a rails plugin that I added to Johnson. Brohuda Katz wrote an ERb type parser in JavaScript, and added it to the (yet to be released) Johnson distribution. With that in mind, and looking at the new template handlers in edge r
Sup bros. I need to post in this thing more often. Yesterday, someone tipped over my scooter again. I’m getting kind of tired of that. Anyway, its time for me to write about this. RKelly is pretty much dead. For the past few months, John and I have been working on RKelly’s replacement called Johnson. Basically we’re now putting a ruby wrapper around Mozilla’s Spidermonkey. The project is coming al
こんなものがあった。 http://github.com/jbarnette/johnson/tree/master http://tenderlovemaking.com/2008/04/23/take-it-to-the-limit-one-more-time Firefox が使っている javascript エンジン http://www.mozilla.org/js/spidermonkey/ の ruby bridge のようだ。 README.txt に書いてあるとおりに gem install jhonson できなかったので、 git clone git://github.com/jbarnette/johnson.git cd johnson rake irb で試すとこんな感じ irb -I./lib -rjohnson >> Johnson.evaluate("va
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く