Implementations of the Action-Model-View pattern:
- with PDCurses
- with Win32
| # Copyright (c) 2017 Alain Martin | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all |
| # Copyright (c) 2017 Alain Martin | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all |
| https://github.com/balandinodidonato/MyoMapper | |
| https://github.com/bassjansson/basslive/tree/v3.0/master | |
| https://github.com/jonathonracz/AudioFilePlayerPlugin | |
| https://git.iem.at/audioplugins/IEMPluginSuite |
| function(get_fizzbuzz in out) | |
| math(EXPR off3 "${in} % 3") | |
| math(EXPR off5 "${in} % 5") | |
| if(NOT off3 AND NOT off5) | |
| set(${out} FizzBuzz PARENT_SCOPE) | |
| elseif(NOT off3) | |
| set(${out} Fizz PARENT_SCOPE) | |
| elseif(NOT off5) | |
| set(${out} Buzz PARENT_SCOPE) |
| function(get_fizzbuzz in out) | |
| math(EXPR off3 "${in} % 3") | |
| math(EXPR off5 "${in} % 5") | |
| if(NOT off3 AND NOT off5) | |
| set(${out} FizzBuzz PARENT_SCOPE) | |
| elseif(NOT off3) | |
| set(${out} Fizz PARENT_SCOPE) | |
| elseif(NOT off5) | |
| set(${out} Buzz PARENT_SCOPE) |
Implementations of the Action-Model-View pattern:
| #include "QtEventLoop.hpp" | |
| #include <QApplication> | |
| #include <QDebug> | |
| #include <QKeyEvent> | |
| #include <QLabel> | |
| #include <QMainWindow> | |
| #include <functional> |
| #include "Model.hpp" | |
| #include "QtEventLoop.hpp" | |
| #include <QApplication> | |
| #include <QDebug> | |
| #include <QKeyEvent> | |
| #include <QLabel> | |
| #include <functional> |
| import struct | |
| import sys | |
| from chunk import Chunk | |
| FOURCC_DLS = b'DLS ' | |
| FOURCC_DLID = b'dlid' | |
| FOURCC_COLH = b'colh' | |
| FOURCC_WVPL = b'wvpl' |
| cmake_policy(VERSION ${CMAKE_VERSION}) | |
| function(print_token type text line column) | |
| if(column LESS 10) | |
| set(column "0${column}") | |
| endif() | |
| string(REGEX REPLACE "\n" "\\\\n" text "${text}") |