View demo1.cpp
#include <iostream> | |
#include "miniapp/miniapp.h" | |
using namespace miniapp; | |
int main() | |
try { | |
Window w; | |
w.on_paint = [](Canvas& canvas) { | |
canvas.fill_rect(rgb(255, 255, 255), Rect(0, 0, 255, 255)); |
View create-vms.ps1
azure network reserved-ip create vmname1-reserved-ip "West Europe" | |
azure vm create ` | |
--location "West Europe" ` | |
--userName username ` | |
--ssh 22 ` | |
--ssh-cert mypublickey.pem ` | |
--no-ssh-password ` | |
--reserved-ip vmname1-reserved-ip ` | |
--vm-size Small ` | |
--vm-name vmname1 ` |
View gist:06b2af2839c31bdab3fb
tab-text-color: #000000; | |
tab-background { | |
slice: sheet.png 0 0 16 16; | |
} | |
tab-close-icon { | |
slice: sheet.png 16 0 16 16; | |
} |
View generated_pref_types.h
// Don't modify, generated file from /aseprite/data/pref.xml | |
#ifndef GENERATED_PREF_TYPES_H_INCLUDED | |
#define GENERATED_PREF_TYPES_H_INCLUDED | |
#pragma once | |
#include <string> | |
namespace app { | |
namespace gen { |
View zoom.aseprite-keys
<keyboard version="1"> | |
<commands> | |
<key command="Zoom" shortcut="Ctrl++ Pad"> | |
<param name="action" value="in" /> | |
</key> | |
<key command="Zoom" shortcut="Ctrl++"> | |
<param name="action" value="in" /> | |
</key> | |
<key command="Zoom" shortcut="Ctrl+- Pad"> | |
<param name="action" value="out" /> |
View lower_bound.cpp
CelIterator LayerImage::findCelIterator(frame_t frame) | |
{ | |
auto first = getCelBegin(); | |
auto end = getCelEnd(); | |
first = std::lower_bound( | |
first, end, nullptr, | |
[frame](Cel* cel, Cel*) -> bool { | |
return cel->frame() < frame; | |
}); |
View main_window.xml
<!-- Aseprite --> | |
<!-- Copyright (C) 2001-2015 by David Capello --> | |
<gui> | |
<window id="main_window" noborders="true" desktop="true"> | |
<vbox noborders="true" expansive="true"> | |
<hbox noborders="true" id="menu_bar_placeholder" /> | |
<hbox noborders="true" id="tabs_placeholder" /> | |
<splitter id="color_bar_splitter" | |
horizontal="true" expansive="true" | |
by="pixel"> |
View file.json
{ "frames": { | |
"file 0.ase": { | |
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, | |
"rotated": false, | |
"trimmed": false, | |
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | |
"sourceSize": { "w": 32, "h": 32 }, | |
"duration": 100 | |
}, | |
"file 1.ase": { |
View file.json
{ "frames": [ | |
{ | |
"filename": "file 0.ase", | |
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, | |
"rotated": false, | |
"trimmed": false, | |
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | |
"sourceSize": { "w": 32, "h": 32 }, | |
"duration": 100 | |
}, |
View test.h
#pragma once | |
#include <cstdlib> | |
#include <iostream> | |
template<typename T, typename U> | |
inline void expect_eq(const T& expected, const U& value, | |
const char* file, const int line) { | |
if (expected != value) { | |
std::cout << file << ":" << line << ": failed\n" |
OlderNewer