ポエム
-
いかなる時も UI はブロックされず、ユーザーは自由である
- 押せるボタンはすべて押すものとして設計する
- フォームの送信ボタンを押した瞬間にフォームの要素は適切に readonly あるいは disabled になるべきである
-
ユーザーの操作を UI だけで制限してはいけない
-
tab キーよるフォーカス移動などによって不可視な要素に対してイベントを発行できる
| // THIS CODE IS LICENCED UNDER WTFPL | |
| var qs = { | |
| get: function () { | |
| return qs.parse(window.location.search.substring(1)); | |
| }, | |
| parse: function (str) { | |
| return str.split('&').map(function (value) { return value.split('='); }) | |
| .reduce(function (obj, pair) { | |
| obj[pair[0]] = decodeURIComponent(pair[1]); |
| var A = /* put your answer here */, | |
| B = /* put your answer here */; | |
| if (B/A !== A/B && A === B && 1/A > 2/B) console.log('congrats!'); |
| var CSS_IDENT = /-?(?:[_a-z]|[\240-\377]|(?:(:?\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))(?:[_a-z0-9-]|[\240-\377]|(?:(:?\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*/; |
| pi@raspberrypi ~/qpuinfo $ make run | |
| sudo ./qpuinfo | |
| mapmem.c:46: pagesize: 4096 | |
| mapmem.c:52: offset_from_v3d: 0 | |
| p: 0xb6f6b000 | |
| p[0]: 0x55555555 | |
| V3D Technology Version: 85 | |
| V3D Id String: 0x55 0x55 0x55 | |
| V3D Id String: UUU | |
| VPM Memory Size: 5 |
| Linux raspberrypi 3.12.33+ #724 PREEMPT Wed Nov 26 17:55:23 GMT 2014 armv6l GNU/Linux | |
| Linux raspberrypi 3.18.5-v7+ #225 SMP PREEMPT Fri Jan 30 18:53:55 GMT 2015 armv7l GNU/Linux |
| pi@raspberrypi ~/qpuinfo $ git log -1 -p | |
| commit d3d4745808231202a19365458e283d730e3d1a2e | |
| Author: Terminus <[email protected]> | |
| Date: Sun Feb 8 05:06:01 2015 +0900 | |
| change to point physical address, not bus address | |
| Special thanks to @KOBA789 ! | |
| diff --git a/mapmem.c b/mapmem.c |
| pi@raspberrypi ~/qpuinfo $ git pull | |
| Already up-to-date. | |
| pi@raspberrypi ~/qpuinfo $ make run | |
| sudo ./qpuinfo | |
| mapmem.c:46: pagesize: 4096 | |
| mapmem.c:52: offset_from_v3d: 0 | |
| p: 0xb6fc5000 | |
| p[0]: 0xdeadbeef | |
| V3D Technology Version: 222 | |
| V3D Id String: 0xad 0xbe 0xef |
| mapmem.c:46: pagesize: 4096 | |
| mapmem.c:52: offset_from_v3d: 0 | |
| p: 0xb6ff3000 | |
| p[0]: 0x00000000 | |
| V3D Technology Version: 0 | |
| V3D Id String: 0x00 0x00 0x00 | |
| V3D Id String: | |
| VPM Memory Size: 0 |
| var Obj = function() { | |
| this.func = function() { | |
| return something.f().then(this._a, this._b); | |
| } | |
| this._a = function() { | |
| //something...(終わったらhoge実行) | |
| } | |
| this._b = function() { |