Skip to content

Instantly share code, notes, and snippets.

View Nitish18's full-sized avatar

Nitish Chauhan Nitish18

View GitHub Profile
{
"data_day_wise": {
"day_1_d5844994-1bc2-440e-98d8-0fc345c0cfea": {
"body": "Start your journey from Bangalore early in the morning and enjoy a scenic drive to Ooty. Upon arrival, relax and explore some nearby attractions.",
"city": "Ooty",
"name": "Day 1",
"custom_notes": [],
"experiences_and_activities": {
"evening": [
{
@Nitish18
Nitish18 / gist:e0d0d9142ba30260cf9a8ac237743590
Created August 15, 2024 11:49
create new travel itinerary
{
"data_day_wise": {
"day_1_8daafb6f-839f-4f03-95b6-0ae9b3036387": {
"name": "Day 1",
"body": "Explore the historical and cultural gems of Udaipur, starting with the majestic City Palace, followed by a serene boat ride on Lake Pichola, and ending with a romantic dinner overlooking the lake.",
"city": "Udaipur",
"experiences_and_activities": {
"morning": [
{
"item_name": "City Palace",
@Nitish18
Nitish18 / gist:2066700759e6367a50a5672b591d1e9b
Created August 15, 2024 11:31
API 1: Get all itineraries (http://localhost:8000/karo_travel_plan/itineraries/)
[
{
"itinerary_id": "919de5d5-2089-4995-9194-af3e76b68fdc",
"no_of_days": 2,
"city": "jaipur",
"country": "india",
"month": "july",
"cities_to_include": "[]",
"travelling_with_pref": "couple",
"travelling_style_pref": [
<!DOCTYPE html>
<html class="ltr " dir="ltr" lang="en">
<head>
<title>Springboard</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" sizes="180x180" href="/resources/pics/appicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/resources/pics/appicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/resources/pics/appicons/favicon-16x16.png">
{
"engagement": {
"active": true,
"type": "EMAIL",
"timestamp": 1583299969000
},
"associations": {
"contactIds": [1651],
"companyIds": [],
"dealIds": [ ],
{
"engagement": {
"active": true,
"type": "EMAIL",
"timestamp": 1583042808000
},
"associations": {
"contactIds": [1051],
"companyIds": [],
"dealIds": [],
import requests
import json
import os
import traceback
from bs4 import BeautifulSoup
def main():
'''
'''
import requests
import json
import os
from bs4 import BeautifulSoup
def main():
'''
'''
base_url = "http://hck.re/crowdstrike"
@Nitish18
Nitish18 / gist:99e8ede243777820e190b4810d391a9f
Created November 21, 2018 18:03
food item supported by alexa skill - My calorie count
"Tosai","Shev Dahi Batata Puri"
"Curry"
"Shimla Mirch Aloo"
"Nasi Bryani (Rice Only) Singapore"
"Vadi"
"Brown Rice With Lentils and Vegetables"
"Chicken Masala W/ Naan Wrap"
"Aloo Baigan Cooked Vegitable"
"Dosai"
"Vegetable Jhalfrezi"
@Nitish18
Nitish18 / flatten_json.py
Created August 16, 2018 04:59
simple python function to flatten your json
import json
def main():
demo_obj = {
'a' : 1,
'b' : {
'c' : 'd',
'e' : {
'x' : 'y'
}