Skip to content

Instantly share code, notes, and snippets.

View emiluzelac's full-sized avatar

Emil Uzelac emiluzelac

View GitHub Profile
@emiluzelac
emiluzelac / gist:32d53ab85c05cda846ad61590588a7bb
Created March 30, 2017 21:47
Escape translated strings
/**
* Escape translated strings with:
*/
__( ‘Hello world’, ‘text-domain’ ); _e( ‘Hello world’, ‘text-domain’ );.
/**
* If there is no HTML use:
*/
esc_html__( ‘Hello world’, ‘text-domain’ ); esc_html_e( ‘Hello world’, ‘text-domain’ );
@emiluzelac
emiluzelac / home_url()
Created June 13, 2017 18:40
home_url() trailing slash
/* Okay */
home_url()
/* Much better */
home_url( '/' )
@emiluzelac
emiluzelac / WebApp_Backend_Frontend_Architecture.md
Created February 17, 2024 20:29
This Gist outlines the directory and file structure for a full-stack web application with a Flask backend, React frontend, and Docker-based infrastructure. It includes detailed annotations for each file and folder, explaining their role within the application architecture. This structure is designed for applications that require a SOAP API inter…
my_app/
├── backend/                             # Backend application (Flask)
│   ├── app.py                           # Main application setup and route definitions
│   ├── api/                             # API layer for handling external API interactions
│   │   ├── soap_client.py               # SOAP client setup and Kareo API interactions
│   │   ├── controllers.py               # Endpoint definitions for API interactions
│   │   └── auth_controller.py           # Authentication endpoints (login/logout)
│   ├── services/                        # Business logic and service layer
│   │   ├── services.py                  # Business logic for handling data operations