- 公開する仕組みがない
- wiki
- イントラブログ
- GHE+gist
- 検索機能がない
- 使いやすいのあるかな……
- 公開しても見返りがない
- 論文の参考文献みたいに参照件数をカウントしてみては
- 公開した結果、無知を晒すのが怖い
- 公開した結果、他人が得するのが面白くない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.nested-fields | |
= f.input :file, as: :image_preview, input_html: { 'data-url' => work_images_path, 'data-form-data' => "{\"token\":\"#{@work.token}\"}" } | |
= f.input :caption | |
= link_to_remove_association t('simple_form.cocoon.remove_link'), f, class: 'right' |
- Canvas [MDN] [Spec (WHATWG)]
- SVG [MDN (en)] [Spec (W3C)]
- CSS 3
- Video, Audio [MDN] [Spec (WHATWG)]
- Form Validation [MDN] [Spec (WHATWG)] (?)]
- HTML Editing APIs (RTE)] [MDN] [Spec (W3C)]
- Drag & Drop [MDN] [[Spec (WHATWG)](http://www.whatw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rx = /^ビッグブラザー[はが]あなたを(見て|見守って)いる$/; | |
_.all([ | |
'ビッグブラザーはあなたを見ている', | |
'ビッグブラザーがあなたを見ている', | |
'ビッグブラザーはあなたを見守っている', | |
'ビッグブラザーがあなたを見守っている', | |
], function(text, index) { | |
return rx.test(text); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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)">'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ RAILS_ENV=test rake db:migrate 2>&1 /dev/null | grep -v "\\.gem" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// any codes | |
$('#time').text(new Date().toString()); | |
// call own self | |
var INTERVAL = 10; | |
setTimeout(arguments.callee, INTERVAL); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
var s = parseObject(data); | |
console.log(s); | |
*/ | |
function parseObject(data) { | |
function f(data, indent, result) { | |
for (var p in data) { | |
var s = indent + p + ':'; | |
if (typeof data[p] != 'object') { | |
result[result.length] = s + data[p]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
gistと連携したと聞いて。 | |
</p> |
OlderNewer