Another file output, Format:
{
"State": ["lga1", "lga2", "..."]
}
Data:
WITH ForumMembersWithRanked AS ( | |
WITH ForumMembersRanked AS ( | |
SELECT | |
"members".*, | |
"user"."picture" AS "user.picture", | |
ROW_NUMBER() OVER (PARTITION BY "members"."ForumId" ORDER BY "members"."id") AS row_num | |
FROM | |
"ForumMembers" AS "members" | |
LEFT OUTER JOIN |
name: Deploy Application | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
@echo off | |
title Sync with Main Branch | |
echo Syncing with Main Branch... | |
@REM accept batch file arguments | |
set /p commitMessage=Commit Message: |
from drf_yasg import openapi | |
from drf_yasg.inspectors import SwaggerAutoSchema | |
from drf_yasg.openapi import Schema | |
class BaseSchema(SwaggerAutoSchema): | |
def wrap_schema(self, schema): | |
"""Wrap schema with success, status, message, data and path fields | |
:param schema: Schema to wrap |
Another file output, Format:
{
"State": ["lga1", "lga2", "..."]
}
Data:
from typing import Callable, Dict, List | |
from django.db import models | |
class ModelChangeFunc(models.Model): | |
""" | |
Mixin to monitor changes on model fields, | |
and call a function when a change is detected |
import datetime | |
from typing import Dict, Type, TypeVar, overload | |
from django.contrib.postgres.search import (SearchQuery, SearchRank, | |
SearchVector) | |
from django.db.models import Manager, QuerySet | |
from utils.base.crypto import hash_digest | |
from django.core.cache import cache as _cache | |
from django.conf import settings | |
from django.core.cache.backends.base import BaseCache |
class BankAccount { | |
String? accountName; | |
String? accountNumber; | |
double accountBalance = 0; | |
BankAccount(String name, String number){ | |
accountName = name; | |
// Validate account number | |
RegExp pattern = RegExp(r'^\d+$'); |
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
} |
void main() { | |
print(add(3, 2)); | |
print(multiply(12, 2)); | |
print(divide(1, 2)); | |
print(subtract(9, 2)); | |
print(mod(5, 2)); | |
} | |
num add(int a, b){ | |
return a + b; |