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 "../lvlscene.h" | |
#include <QObject> | |
#include <QGraphicsSceneMouseEvent> | |
#include <QKeyEvent> | |
class EditMode : public QObject | |
{ | |
Q_OBJECT | |
public: | |
explicit EditMode(LvlScene *ParentScene = 0, QObject *parent = 0); |
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
-- Wrong | |
left = 3 | |
player=Player() | |
function onLoop() | |
printText(tostring(left),30, 160) | |
function onKeyDown(keycode) | |
if(keycode==KEY_RUN) then | |
left = left - 1 | |
end |
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
android:{ | |
ARCH=android_arm | |
} else { | |
!contains(QMAKE_TARGET.arch, x86_64) { | |
ARCH=x32 | |
} else { | |
ARCH=x64 | |
} | |
} | |
static: { |
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 <stdio.h> | |
#include <alloc.h> | |
//Класс, это тоже структура, но с возможностью разграничивать права доступа к членам извне | |
class MyQueue | |
{ | |
public: //Члены класса, которые НЕдоступны для внешних обращений, получишь ошибку компиляции! | |
struct q | |
{ | |
int 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
+++ uname -s | |
++ PLATFORM=Linux | |
+++ basename ./build.sh | |
++ SCRIPT=build.sh | |
++ [[ build.sh != *wrapper/build.sh ]] | |
+++ tools/get_cpu_count.sh | |
++ JOBS=4 | |
++ '[' build.sh '!=' build.sh -a build.sh '!=' build_clang.sh -a build.sh '!=' mount_xcode_image.sh -a build.sh '!=' gen_sdk_package_darling_dmg.sh -a build.sh '!=' gen_sdk_package_p7zip.sh ']' | |
++ [[ Linux == *BSD ]] | |
++ MAKE=make |
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
#Hot to build static Qt on Linux | |
#For Linux Mint | |
./configure -static -release -nomake examples -nomake tools -prefix ~/Qt/Qt-5.5_static -qt-xcb -qt-libpng -no-libjpeg -qt-zlib -qt-pcre -gtkstyle -opensource -confirm-license -gtkstyle -opengl -qt-freetype -c++11 | |
make | |
make install | |
#For CentOS | |
./configure -static -release -nomake examples -nomake tools -no-compile-examples -prefix ~/Qt/Qt-5.5_static -qt-xcb -qt-xkbcommon -qt-libpng -qt-zlib -qt-pcre -gtkstyle -opensource -confirm-license -gtkstyle -opengl -qt-freetype -c++11 |
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
#!/bin/bash | |
QTP=qt-everywhere-opensource-src-5.5.0 | |
sed -i 's/qtCompileTest(jasper)/#qtCompileTest(jasper)/g' $QTP'/qtimageformats/qtimageformats.pro' | |
sed -i 's/jp2 \\/#jp2 \\/g' $QTP'/qtimageformats/src/plugins/imageformats/imageformats.pro' | |
rm -f $QTP'/qtimageformats/src/3rdparty/jasper.pri' | |
rm -Rf $QTP'/qtimageformats/src/3rdparty/jasper' | |
read -n 1 | |
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
QT += core gui widgets | |
EXTRA_BINFILES_WIN = $${EXTRA_LIBFILES} | |
EXTRA_BINFILES_WIN ~= s,/,\\,g | |
DESTDIR_WIN = $${DESTDIR} #$$OUT_PWD | |
DESTDIR_WIN ~= s,/,\\,g | |
for(FILE,EXTRA_BINFILES_WIN) { | |
QMAKE_POST_LINK += $$quote(cmd /c copy /y $${FILE} $${DESTDIR_WIN}$$escape_expand(\n\t)) |
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
#!/bin/bash | |
# ===============A full path to repos folder==================== | |
REPOS_DIR=/home/wohlstand/_git_repos | |
# ============================================================== | |
UpdRepo() | |
{ | |
cd "$1" | |
if [ -d .git ] | |
then |
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
#!/bin/bash | |
MAXTIME=180 | |
PLAYER=/your/path/here/pge_musplay | |
PLAYDIR=$PWD/*.mid | |
ord() { | |
LC_CTYPE=C printf '%d' "'$1" | |
} |
OlderNewer