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
#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)); |
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
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 ` |
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
tab-text-color: #000000; | |
tab-background { | |
slice: sheet.png 0 0 16 16; | |
} | |
tab-close-icon { | |
slice: sheet.png 16 0 16 16; | |
} |
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
// 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 { |
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
<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" /> |
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
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; | |
}); |
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
<!-- 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"> |
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
#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" |
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 MouseIsOver("ahk_class Shell_TrayWnd") | |
WheelUp::Send {Volume_Up} | |
WheelDown::Send {Volume_Down} | |
MouseIsOver(WinTitle) { | |
MouseGetPos,,, Win | |
return WinExist(WinTitle . " ahk_id " . Win) | |
} |
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
// The following function, "Calculate_average", will be the only | |
// public function in your library API | |
FUNCTION Calculate_average ( N1, N2, ..., NN ) | |
LOCAL VARIABLE sum = 0 | |
LOCAL VARIABLE count = 0 | |
// Define a function named "sum_and_count" that isn't public API of your library, | |
// this function is visible and usable only inside "Calculate_average" | |
LOCAL FUNCTION sum_and_count(x) | |
sum = sum + x // The key of closures: here we can modify variables that are not in the scope of sum_and_count() |
OlderNewer