ブログ記事用
WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP
| var rx = /^ビッグブラザー[はが]あなたを(見て|見守って)いる$/; | |
| _.all([ | |
| 'ビッグブラザーはあなたを見ている', | |
| 'ビッグブラザーがあなたを見ている', | |
| 'ビッグブラザーはあなたを見守っている', | |
| 'ビッグブラザーがあなたを見守っている', | |
| ], function(text, index) { | |
| return rx.test(text); | |
| }); |
| /** | |
| * HTML文字列中から危険なものを取り除く。 | |
| * | |
| * @example | |
| * var src = safeHtml('[<'+'script>alert(1)<'+'/script>]'); | |
| * var dest = '[]'; | |
| * console.assert(src===dest, 'script'); | |
| * | |
| * @example | |
| * var src = safeHtml('<img src="404" onerror="alert(1)">'); |
| // About API: | |
| // https://www.dropbox.com/developers/core/docs#oa2-authorize | |
| // https://www.dropbox.com/developers/core/docs#oa2-token | |
| var config = require('./config.json'); | |
| // OR... | |
| // var config = { | |
| // 'appKey': 'xxxxxxxxxxxxxxx', | |
| // 'secretKey': 'xxxxxxxxxxxxxxx' | |
| // }; |
| $ RAILS_ENV=test rake db:migrate 2>&1 /dev/null | grep -v "\\.gem" |
| Fetching... | |
| https://ja.wikipedia.org/wiki/%E3%82%AE%E3%83%AA%E3%82%B7%E3%82%A2%E7%A5%9E%E8%A9%B1 | |
| OK | |
| # ギリシア神話 - Wikipedia | |
| - サカナーソ | |
| - サカナウティカ | |
| - サカナトリア | |
| - サカナトス | |
| - サカナパイアイ | |
| - サカナパイアー |
| copy('0. ['+document.querySelector('article h1').textContent.replace(/(.*/, '')+']('+location.href+')'); |
| { | |
| "latitude":49.2604, | |
| "longitude":-123.1134, | |
| "timezone":"America/Vancouver", | |
| "offset":-8, | |
| "currently":{ | |
| "time":1455756144, | |
| "summary":"Light Rain", | |
| "icon":"rain", | |
| "nearestStormDistance":0, |