- 飲食は可能です
- キレイに使ってください
- 食べこぼしの多そうなものは、なるべく避けてくれると嬉しいです
- 電源はあります
- 足りない場合は譲り合って使ってください
- 私物のタップを使ってくれると助かります
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
/** | |
* > if foo: | |
* > | <= The cursor is here and hit delCharOrIndent command, it willbe | |
* > | <= here | |
* | |
* This command will delete at most 4 spaces before, if text before charactor is all spaces. | |
* If not on the case, this command will delete charactor as usual. | |
*/ | |
(function(mod) { |
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
from dataclasses import dataclass, field as dc_field | |
# Library | |
def field(default, verbose_name="", help_text=""): | |
return dc_field( | |
default=default, | |
metadata={ |
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
> class F { | |
... constructor (a) { | |
..... if (a > 0) { | |
....... this.child = new F(a-1) | |
....... } | |
..... } | |
... } | |
undefined | |
> new F(3) | |
F { child: F { child: F { child: F {} } } } |
pip install falcon
pip install requests
pip install gunicorn
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
""" Detect changes of Django Models. | |
""" | |
class ChangeDetector: | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self._dirty_fields = {f: False for f in self._get_field_names()} | |
self._inited = True |
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
module.exports = function(Vue) { | |
Vue.directive('auto-bottom', { | |
update: function() { | |
this.el.scrollTop = this.el.scrollHeight; | |
} | |
}) | |
}; |
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
// This way didn't work. | |
// Cause this custom.js or nbextensions files will be loaded after initializing JupyterNotebookApp. | |
// It means this code won't affect to it's initializing Ajax requests. | |
// Sending token on each XHRs too. | |
// Because Safari won't handle Cookie and localStorage | |
// on iframes. | |
// Jupyter Client expects it's cookie, so it will be forbidden | |
// Instead, sending "token" by manually on each XHRs. |
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
from block.chain import chain, MaybeF | |
def fib(ctx, x): | |
x.append(x[-2] + x[-1]) | |
return x | |
print chain.chain.do(fib).do(fib).do(fib).do(fib).value(MaybeF(), [1, 1]) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.