- Linode Server was used as the host
- Linode Server also used as the client
Reading DigitalOcean Reading Linode
Encountered a problem with Dns Resolution Used this to resolve it Article
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; |
// Program to print odd numbers ranging from 1 - 30 😎 | |
void main() { | |
// Loop on numbers range 1 - 30 | |
for (int pointer = 1; pointer <= 30; pointer++){ | |
// Check if value is an odd number or even | |
if (pointer % 2 != 0) { | |
print(pointer); |
class ExtraAdminUtils(admin.ModelAdmin): | |
add_fieldsets: dict = None | |
add_form = None | |
def get_fieldsets(self, request, obj=None): | |
if not obj and self.add_fieldsets is not None: | |
return self.add_fieldsets | |
return super().get_fieldsets(request, obj) | |
def get_form(self, request, obj=None, **kwargs): |
Reading DigitalOcean Reading Linode
Encountered a problem with Dns Resolution Used this to resolve it Article
import hashlib | |
import hmac | |
def compare_digest(a, b): | |
"""Compare hashes in constant time.""" | |
return hmac.compare_digest(a, b) | |
def sha1_hash(message: str, key: str): |
This is an example of a github action that automatically merges master branch with production branch Use cases of this is wide:
Learn more about github actions here
name: Update Production