Skip to content

Instantly share code, notes, and snippets.

View celeroncoder's full-sized avatar
:octocat:
Goofing around

Khushal Bhardwaj celeroncoder

:octocat:
Goofing around
View GitHub Profile
@celeroncoder
celeroncoder / README.md
Created March 30, 2021 04:57
Cache Decorator in Python

Cache Decorator in Python

Description

  • In this directory it holds the implementation of cache Decorator in python.
  • We can use this decorator when we are using more computational power on stuff that has already been done.

Cache Decorator

  • Cache Decorator is a default Decorator in python from the built-in lib functools.
@celeroncoder
celeroncoder / README.md
Created March 21, 2021 10:37
Netlify Server Functions

Server Less Functions

Instructions

  • Create a netlify.toml file for using serverless functions on the website hosted on Netlify.
  • If any other hosting service search for the documentation for creating .toml file.
  • Put the functions in the functions directory in the root of the project.
  • Every function file must contain one export handler and only that will be valid and can be used.
    exports.handler = async function(event, context) {...};