Skip to content

Instantly share code, notes, and snippets.

View abhinav1592's full-sized avatar
🏠
Working from home

Abhinav Shrivastava abhinav1592

🏠
Working from home
View GitHub Profile
@abhinav1592
abhinav1592 / app.py
Last active May 13, 2023 13:17
GET and POST sample implementation.py
import json
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/get-json-data', methods=['GET'])
def return_json():
if(request.method == 'GET'):
data = {
#!/bin/bash
i=0
while [[ $i -lt 11 ]]
do
if [[ "$i" == '10' ]]
then
echo "Number $i!"
sleep 0.5