Skip to content

Instantly share code, notes, and snippets.

View FONQRI's full-sized avatar
๐Ÿ†
Focusing

Behnam Sabaghi FONQRI

๐Ÿ†
Focusing
View GitHub Profile
@FONQRI
FONQRI / how_to_use_qss.cpp
Created July 17, 2019 19:49
how to set tem for qt widgets
#include <QtWidgets>
#include "addressbook.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
AddressBook addressBook;
addressBook.show();
@FONQRI
FONQRI / web_library_links_cpp.md
Last active October 25, 2019 21:46
Some useful library for web and network with c++
// Upper and lower function, for string cases
render("Hello {{ upper(neighbour) }}!", data); // "Hello PETER!"
render("Hello {{ lower(neighbour) }}!", data); // "Hello peter!"
// Range function, useful for loops
render("{% for i in range(4) %}{{ loop.index1 }}{% endfor %}", data); // "1234"
render("{% for i in range(3) %}{{ at(guests, i) }} {% endfor %}", data); // "Jeff Tom Patrick "
// Length function (please don't combine with range, use list directly...)
render("I count {{ length(guests) }} guests.", data); // "I count 3 guests."

DDS(data distribution service)

subscriber-publisher

shared memory and pass only keys to access memory in local machine use over network is same as local usage of api

quality of service

  • relibility
  • system health (liveliness)
  • security
@FONQRI
FONQRI / DOD.md
Last active May 22, 2020 23:19
Data-oriented design: software engineering
from tkinter import *
root=Tk()
def buttoncallback():
print('hello')
myButton = Button(root,text = ' show ',command=buttoncallback)
myButton.config(text= ' ok go',bg='red',fg='#2E9AFE')
myButton.pack()
from tkinter import *
from tkinter import ttk
root=Tk()
checkbutton=ttk.Checkbutton(root,text='spam ?')
checkbutton.pack()
spam=StringVar()
spam.set('SPAM!')