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
/* | |
Lazy loading component with Suspense support | |
*/ | |
import React, { Suspense } from 'react'; | |
import Loading from './Loading'; | |
const App = (): JSX.Element => { | |
// lazy load the containers. This should create different chunk file |
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
/* | |
* Copyright 2022 ozkary.com | |
* http://ozkary.com/ by Oscar Garcia | |
* Licensed under the MIT license. Please see LICENSE for more information. | |
* | |
* helloworld.cpp | |
* Simple Console standard output and input string | |
* ver. 1.0.0 | |
* | |
* Created By oscar garcia - ozkary |
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
/* | |
@file fluid-for-loop.xml | |
@description Use this script to convert an input array into json properties. Notice how a command is not added to the last item. | |
Use hyphen to strip extra blank chrs. | |
@author ogarcia (ozkary) | |
@ref https://shopify.dev/api/liquid/objects/for-loops | |
Input JSON request: | |
{ | |
"names": [ |
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
{ | |
"routes": [ | |
{ | |
"route": "/", | |
"allowedRoles": ["anonymous"] | |
}, | |
{ | |
"route": "/about", | |
"allowedRoles": ["anonymous"] | |
}, |
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
name: Ozkary Brand A CI/CD | |
on: | |
push: | |
branches: | |
- brand-a | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
branches: | |
- brand-a |
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
/** | |
* @file routes/routeLoader.ts | |
* @description lazy loading of routes. | |
* | |
* @author ogarcia (ozkary) | |
* | |
*/ | |
/** | |
* Use this route loader when using lazy loading and dynamic imports |
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
<policies> | |
<inbound> | |
<base /> | |
<rewrite-uri template="/websamples.countryinfo/CountryInfoService.wso" copy-unmatched-params="false" /> | |
<set-body template="liquid"> | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns="http://www.oorsprong.org/websamples.countryinfo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<soap:Body> | |
<ListOfContinentsByName> | |
</ListOfContinentsByName> | |
</soap:Body> |
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
// import the operations from logger | |
import { error, audit } from '../logger'; | |
/** | |
* Sample code to log an error from a handled exception | |
* send the message asychronously | |
*/ | |
try { | |
// call an operation that can raise errors |
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 | |
# | |
# Purpose: Use the bash file to automate the creation of an Azure Static Web App with CICD Github Pipeline | |
# Requirements: Azure subscription, Github branch and repo token | |
# Author: 0garcia - ozkary | |
# Article: https://www.ozkary.com/2021/02/azure-static-web-app-github-actions-cicd.html | |
# | |
clear | |
# creates the azure resources for a static web app with github cicd pipeline |
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
/* | |
Filename: azure-sql-read-only-user.sql | |
Purpose: Create a read-only login user on a target database to enable the access to the data, but disable any insert, update, delete operations. | |
Author: | |
Oscar Garcia @ozkary | |
Reference: |
NewerOlder