Skip to content

Instantly share code, notes, and snippets.

View Sande3p's full-sized avatar
👻
...

Sandeep Sande3p

👻
...
View GitHub Profile
@Sande3p
Sande3p / sfdx MetadataComponentDependency query.json
Last active August 28, 2020 22:37
sfdx MetadataComponentDependency query
{
"status": 0,
"result": {
"size": 33,
"totalSize": 33,
"done": true,
"queryLocator": null,
"entityTypeName": "MetadataComponentDependency",
"records": [
{
@Sande3p
Sande3p / py
Created January 8, 2021 17:53
img-reader
import json
import boto3
import base64
def lambda_handler(event, context):
eventBody = json.loads(json.dumps(event))['body']
imageBase64 = json.loads(eventBody)['Image']
{
"DocumentMetadata": {
"Pages": 1
},
"Blocks": [
{
"BlockType": "PAGE",
"Geometry": {
"BoundingBox": {
"Width": 1.0,
@Sande3p
Sande3p / gist:a9d85cff18a7b8f51290bb641f656f5f
Created January 11, 2021 17:51
demo_textract_functioin
import json
import boto3
import base64
def lambda_handler(event, context):
eventBody = json.loads(json.dumps(event))['body']
imageBase64 = json.loads(eventBody)['Image']
@Sande3p
Sande3p / challenge.json
Created January 28, 2021 12:58
challenge
{
"projectId": 16640,
"terms": [
{
"id": "317cd8f9-d66c-4f2a-8774-63c612d99cd4",
"roleId": "732339e7-8e30-49d7-9198-cccf9451e221"
}
],
"task": {
"isTask": true,
[{"id":1,"first_name":"Katherine","last_name":"Boig","email":"kboig0@ft.com","gender":"Female","ip_address":"31.120.30.55"},
{"id":2,"first_name":"Gabriela","last_name":"Glide","email":"gglide1@hao123.com","gender":"Genderfluid","ip_address":"174.249.216.68"},
{"id":3,"first_name":"Cory","last_name":"Matej","email":"cmatej2@microsoft.com","gender":"Male","ip_address":"228.184.156.155"},
{"id":4,"first_name":"Irena","last_name":"Davidi","email":"idavidi3@hibu.com","gender":"Female","ip_address":"62.136.62.233"},
{"id":5,"first_name":"Pancho","last_name":"Frean","email":"pfrean4@tinypic.com","gender":"Male","ip_address":"227.223.202.196"},
{"id":6,"first_name":"Doretta","last_name":"Howitt","email":"dhowitt5@sitemeter.com","gender":"Female","ip_address":"99.132.179.99"},
{"id":7,"first_name":"Liz","last_name":"Freiburger","email":"lfreiburger6@yellowbook.com","gender":"Female","ip_address":"141.63.118.25"},
{"id":8,"first_name":"Joane","last_name":"Purser","email":"jpurser7@senate.gov","gender":"Female","ip_add