var xhr = new XMLHttpRequest();
xhr.open('POST', 'someURLForTheUpload', true); //my url had the ID of the item that the blob corresponded to
xhr.responseType = 'Blob';
xhr.setRequestHeader("x-csrf-token",csrf); //if you are doing CSRF stuff
xhr.onload = function(e) { /*irrelevant code*/ };
xhr.send(blob);
dd if=/dev/вашдиск of=файл или диск status=progress conv=notrunc
procedure TFormMain.FormCreate(Sender: TObject);
begin
Engine := TD2EngineCore.Create(800, 600);
Engine.LoopedWorld := True;
Engine.CreateTest;
Engine.Run;
end;
procedure TFormMain.FormDestroy(Sender: TObject);
begin
Engine.Free;
end;
procedure TFormMain.FormPaint(Sender: TObject);
begin
Canvas.StretchDraw(ClientRect, Engine.Buffer);
end;
procedure TFormMain.FormResize(Sender: TObject);
begin
Canvas.StretchDraw(ClientRect, Engine.Buffer);
end;
procedure TFormMain.TimerRepaintTimer(Sender: TObject);
begin
Invalidate;
end;
{ "keys": ["enter"], "command": "insert", "args": {"characters": "\n\t"}, "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.css" }
]
}
{
поведение будет аналогичным. Как в случае пустых скобок:.test {
}
.test // нажимаем здесь {
width: 40px;
.test {
width: 40px;} // автоматически подставляется }
<nav class="nav" role="nav">
<ul class="nav-list">
<li class="nav-item"><a href="#" class="nav-link">Item-1</a></li>
<li class="nav-item"><a href="#" class="nav-link">Item-2</a></li>
<li class="nav-item"><a href="#" class="nav-link">Item-3</a></li>
<li class="nav-item"><a href="#" class="nav-link">Item-4</a></li>
</ul>
</nav>
nav
поддерживался старыми браузерами, подключаем скриптик<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>.