Skip to content

Instantly share code, notes, and snippets.

View Nitish18's full-sized avatar

Nitish Chauhan Nitish18

View GitHub Profile
<!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'
}
@Nitish18
Nitish18 / gist:c06b45a836d0d88b1abb56f512da7126
Created March 3, 2018 13:32
Sample lambda function file for Alexa skill
import urllib2
import json
import requests
def lambda_handler(event, context):
if (event["session"]["application"]["applicationId"] !=
"your_skill_id"):
raise ValueError("Invalid Application ID")
if event["session"]["new"]:
{
"name" : "nitish",
"age" : "23",
"DOB" : "18.12.12",
"sex": "male",
"city" : "delhi"
},
{
"name" : "shubham",
"age" : "23",
@Nitish18
Nitish18 / MongoSchema
Created December 2, 2017 23:42
MongoSchema
{
"_id" : ObjectId("5a231602e9e14e28f6c1aef6"),
"diseaseType" : "WaterBorne",
"foodFiberContent" : 1,
"bacteriaTypeInAir" : 14,
"phLevel" : 6.80568506270618,
"year" : 2015,
"ppmLevel" : 0.0613222520500754,
"city" : "Dioli",
"name" : "Dr. Ashley Diaz",