/*global casper*/ casper.test.begin('Test Sample', 2, function(test) { var selectbox = '#lang-chooser'; var lang = 'fr'; casper.start('https://www.google.com/doodles'); casper.then(function() { var params = {}; test.comment('change the value of the select box'); params[selectbox] = lang; this.fillSelectors('#language-menu',params); test.assertEvalEquals( function(selector) { return document.queryS
What is Sqids? Sqids (pronounced "squids") is an open-source library that lets you generate short unique identifiers from numbers. These IDs are URL-safe, can encode several numbers, and do not contain common profanity words. Read more. This is what they look like: Use Cases The main use of Sqids is purely visual. If you'd like to use IDs instead of numbers in your project, Sqids could be a good c
Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. Scriptable Inject your own scripts into black box processes. Hook any function, spy on crypto APIs or trace private application code, no source code needed. Edit, hit save, and instantly see the results. All without compilation steps or program restarts. Portable Works on Windows, macOS, GNU/Linux, iOS, wa
GoogleReaderが終焉し、SmartNews,Gunosyなど寝ててもおすすめコンテンツが降ってくるサービスが注目を集めている今、ここでひとつ自分もなんか気の利いたものを作ってみたい。 というわけで、はてブの人気エントリーから記事を引っ張ってきて、 ズバリ一行に要約するプログラムを書いてみた。 はいこれ。 要約くん http://xiidec.appspot.com/markov.html これを使うと・・・ けだるい猫ライオンがこの国でエリートコースに乗れると日本の真相。 こんな感じで なぜ高学歴の差別発言が求められるのかって生産性を欲しがった話をどうするか。 今話題のニュースがごちゃ混ぜになって一行に要約される。 浜崎あゆみの件、原子炉に十分届かず 炉心溶融の差別発言が続出。 Webの今が1行で分かる! 仕組み サーバサイド(Python)で、はてなブックマーク人気エントリーの
Welcome to Read the Docs¶ This is an autogenerated index file. Please create a /home/docs/checkouts/readthedocs.org/user_builds/pythonjs/checkouts/latest/doc/index.rst or /home/docs/checkouts/readthedocs.org/user_builds/pythonjs/checkouts/latest/doc/README.rst file with your own content. If you want to use another markup, choose a different builder in your settings.
Clover¶ Clover is a build tool that dynamically compiles JavaScript and Closure Template code. Simplifies development with the closure compiler, library and templates. Compiles javascript and soy templates on the fly Closure unit testing framework support Command line and web based test runners. * Selenium support to run tests in various drivers. Javascript internationalization support Sourcemap s
I'm Director of Engineering & Product at Close. I'm interested in startups, programming, UX, SaaS, and building great web products. More about me. On Close.io we originally implemented Filepicker.io to allow for file uploads while sending emails. While it was a quick way to get started with file uploading initially, after several minutes of downtime of their API and then an unannounced change in t
2012-11-25 Django で JSON.stringify された POST データを受け取る Backbone.js とか Spine はデフォルトで Content-Type: application/json & JSON.stringify されたデータを送信してくるので、Django の request.POST.get('hoge') で受け取る事ができず不便です。 Class base view のメソッドをいくつか継承して自前デコード + 分解してあげることで疑似 POST データを作ってあげるといいのかなーとおもいました。 Django の FormView は get_form_kwargs の戻り値を get_form に渡して form を生成しているので、get_form_kwargs をちょっといじります。urlencode しているのは json.l
言語女子会: undefとnullは両方必要?の続編です。 varは必要なの? とあるプログラミング言語が集う女子会にて: Python: JavaScriptちゃんってさ、なんでvarだらけなの? JavaScript: えっ、変? Python: varなんかいらなくない?私ぜんぜん持ってないよ? JavaScript: えー、じゃあ変数をどうやって宣言するの? Python: 宣言っていうか…「x = 1」みたいな代入文があれば変数xが必要なのって自明じゃない?宣言とか必要? Ruby: 必要ないよね。っていうか変数宣言とか古臭くない? JavaScript: そうかなー。 Python: 少しダサイかも。ほら断舎離ブームだし要らないものは捨てなきゃ! JavaScript: 要らないかなぁ、変数宣言。Pythonちゃんは関数がネストしているときに外側のスコープの変数に代入するのって
Twitterのタイムラインが面白すぎて、ついうっかり言語を擬人化して脳内で言語女子会なるものを開いてしまいました。なお、登場人物と実在の人物は1対1に対応しません。 undefinedとnullの両方必要なの? とあるプログラミング言語が集う女子会にて: Perl: そういえばさ、なんでJavaScriptちゃんってundefinedとnullの両方もってるの? JavaScript: えっ、未定義の変数にアクセスした時undefined返したいじゃない? Python: 例外投げて死ねばいいじゃん Ruby: 例外投げて死ねばいいよね Python & Ruby: ねー♡ Java: いやそこは参照型ならnull、数値型なら0で初期化すべきでしょ C: これだから最近の若い子は…初期化にだってコストが掛かるんだからね!デフォルトで初期化するなんて無駄遣いよ!必要な人だけが責任をもって初
みんなのIoT/みんなのPythonの著者。二子玉近く160平米の庭付き一戸建てに嫁/息子/娘/わんこと暮らしてます。月間1000万PV/150万UUのWebサービス運営中。 免責事項 プライバシーポリシー JavaScriptでPython風にクラスを定義できるClassyというのを発見した。 まず「<script type="text/javascript" src="classy.js"></script>」しておいて var Animal = Class.$extend({ __init__ : function(name, age) { this.name = name; this.age = age; this.health = 100; }, die : function() { this.health = 0; }, eat : function(what) { this.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く