2015-05-06から1日間の記事一覧
conpass http://hotasm.connpass.com/event/14435/ 本の公式URL: http://kozos.jp/books/asm/ スタックは後のほうが都合が良い。 p257 ・MIPS チェーンスロット jal命令を呼ぶ raは勝手に書き換えることがある blr リンクジスタに対して反映 ipはテンポラリ…
http://django.connpass.com/event/14219/ ・Python 3.4.3 https://www.python.org/downloads/release/python-343/ Python 3.4.3 was released on February 25th, 2015. 現在最新 ・Django 1.8 現在最新。1.8ちょうど。 pyenvのインストール(あまりつかわな…
Androidのトースト的なやつの、JS版があった。 http://codeseven.github.io/toastr/ .zipのをDLして、toastr.cssとtoastr.jsだけ使うので、 toastrディレクトリを作り、 その中にtoastr.cssとtoastr.jsを入れた。 僕はDjangoで使ってるので、 <link href="{{ MEDIA_URL }}toastr/toastr.css" rel="stylesheet"/> <script src="{{ MEDIA_URL }}toastr/toastr.js"></script> あとは toast</link>…
今はこのようにformをHTMLで作っている。(Djangoのテンプレートなので変なのも含まれてるのはご勘弁) <form name="ban_fm" action="{% url 'ajax_ban' %}" method="post"> {% csrf_token %} <input type="hidden" name="user_profile_id" value="{{ item.id }}" /> <button class="btn btn-sm btn-danger btn" type="submit"> 無視{% able_ban user item.user %}</button></form>