Skip to content

Instantly share code, notes, and snippets.

View FONQRI's full-sized avatar
🏆
Focusing

Behnam Sabaghi FONQRI

🏆
Focusing
View GitHub Profile
#include "contactsmodel.h"
#ifdef Q_OS_ANDROID
# include <QtAndroid>
# include <QtAndroidExtras>
# include <jni.h>
#endif
QList<ContactsModel::Contact*> ContactsModel::_contacts;
@FONQRI
FONQRI / define_name_string_with_macro.cpp
Created April 12, 2019 10:33
Define name string with macro and iit it with class name.
#include <boost/type_index.hpp>
#include <iostream>
#define DEFINE_NAME \
std::string name \
{ \
boost::typeindex::type_id<decltype(*this)>().pretty_name() \
};
class Test2
@FONQRI
FONQRI / TemplateDesignPattern.cpp
Created December 30, 2017 14:05
template design pattern c++
#include <iostream>
using namespace std;
// Base class
// Template class
class Account {
public:
// Abstract Methods
virtual ~Account();
@FONQRI
FONQRI / CMakeLists.txt
Created December 28, 2017 21:20
this is a cmakeList.txt file that contain all qt modules .
#cmake file version 1.0
#author behnam sabaghi
#update time 29 / 12 / 2017
cmake_minimum_required(VERSION 2.8)
PROJECT(ProjectName)
set(CMAKE_PREFIX_PATH "$ENV{QTDIR}")
@hoetz
hoetz / crypto-cpp-csharp
Created November 11, 2016 16:53
Encrypt in c++ Qt / decrypt in C#
#include <QCoreApplication>
#include <QString>
#include <Poco/Foundation.h>
#include <Poco/Crypto/Cipher.h>
#include <Poco/Crypto/CipherKey.h>
#include <Poco/Crypto/CipherFactory.h>
#include <openssl/crypto.h>
#include <QDebug>
@FONQRI
FONQRI / calculator.py
Last active April 21, 2022 09:35
A python3 calculator in one line
print(eval(input('Please enter your arithmetic expression :' )))
@roachhd
roachhd / README.md
Last active July 25, 2024 12:36
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@cgudea
cgudea / geodesy_regex.py
Created August 28, 2014 19:38
regular expressions for verifying common coordinate systems
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
@rxaviers
rxaviers / gist:7360908
Last active July 25, 2024 12:22
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: