System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
import 'dart:io' show Platform; | |
import 'package:flutter/foundation.dart' show kIsWeb; | |
import 'package:english_words/english_words.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/cupertino.dart'; |
Single-line comments are started with //
. Multi-line comments are started with /*
and ended with */
.
C# uses braces ({
and }
) instead of indentation to organize code into blocks.
If a block is a single line, the braces can be omitted. For example,
Single-line comments are started with //
. Multi-line comments are started with /*
and ended with */
.
C# uses braces ({
and }
) instead of indentation to organize code into blocks.
If a block is a single line, the braces can be omitted. For example,
from fastapi import FastAPI | |
apiv1 = FastAPI() | |
@apiv1.get('/returnName') | |
def index(): | |
return {"Name": "Kaustubh demo"} | |
################# |
from models.item import Item | |
from json import dumps | |
from pika import ( | |
BlockingConnection, | |
ConnectionParameters, | |
BasicProperties | |
) | |
async def register_item_service(item:dict)->Item: |
from typing import Optional | |
import base64 | |
from passlib.context import CryptContext | |
from datetime import datetime, timedelta | |
import jwt | |
from jwt import PyJWTError | |
from pydantic import BaseModel |
import functools | |
def compose(*functions): | |
return functools.reduce(lambda f, g: lambda x: f(g(x)), functions) | |
# dec double inc are given function | |
>>> inc_double_and_dec = compose(dec, double, inc) |
/* | |
Middlewares provide us with the ability to intercept actions and do something we want to before that action reaches the reducers. We can log actions, log store state, log crash reports, etc. | |
Let's create a middleware for logging actions when they get dispatched. | |
*/ | |
const logger = (store) => (next) => (action) => { | |
console.log("DISPATCHED ACTION: ", action); | |
next(action); | |
} |