This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"public_identifier": "james-best-5195a1152", | |
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/james-best-5195a1152/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20240627%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20240627T071111Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=59d97724f3e29761a97352c580915dfa40390a28341f82d6d61e32635c68ddf0", | |
"background_cover_image_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/james-best-5195a1152/cover?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20240627%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20240627T071111Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a67fa653cfc00231149c566f8b169bea36aa5039d828a7072a98409964624d36", | |
"first_name": "James", | |
"last_name": "Best", | |
"full_name": "James Best", | |
"follower_count": 891, | |
"occupation": "Lead Front End Engineer at Breedr", | |
"headline": "Lead Front End Engineer at Bre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { | |
View, | |
SafeAreaView, | |
useWindowDimensions, | |
TextInput, | |
} from "react-native"; | |
import Animated, { | |
Extrapolate, | |
interpolate, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function* getPendoUserData(userInfo: UserInfoQuery["userInfo"]) { | |
const { firstName, lastName } = userInfo; | |
const activeBusinessUnit = userInfo?.businessUnits[0]; | |
const farmAnimalTypes = activeBusinessUnit?.farmAnimalTypes.map((species) => species.name); | |
console.log({ activeBusinessUnit }); | |
const pendoUser = { | |
visitorId: `${firstName} ${lastName}`, | |
accountId: activeBusinessUnit?.id, | |
visitorData: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* How pendo document it | |
*/ | |
<SafeAreaProvider> | |
<NavigationContainer | |
theme={MyTheme} | |
ref={navigationRef} | |
linking={linking} | |
onReady={props.onReady} | |
onStateChange={props.onStateChange}> |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
` | |
~/ | |
~ | |
×™× | |
___ | |
__ | |
_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import Head from "next/head"; | |
import { ApolloClient } from "apollo-client"; | |
import { InMemoryCache, NormalizedCacheObject } from "apollo-cache-inmemory"; | |
import { HttpLink } from "apollo-link-http"; | |
import { setContext } from "apollo-link-context"; | |
import fetch from "isomorphic-unfetch"; | |
import { TokenRefreshLink } from "apollo-link-token-refresh"; | |
import jwtDecode from "jwt-decode"; | |
import { getAccessToken, setAccessToken } from "./accessToken"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/Assets/AssetStoreTools* | |
# Autogenerated VS/MD/Consulo solution and project files | |
ExportedObj/ | |
.consulo/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET my_index/_search | |
{ | |
"query": { | |
"bool" : { | |
"must" : { | |
"match_all" : {} | |
}, | |
"filter" : { | |
"geo_bounding_box" : { | |
"location" : { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /my_index/_search | |
{ | |
"query": { | |
"bool" : { | |
"must" : { | |
"match_all" : {} | |
}, | |
"filter" : { | |
"geo_distance" : { | |
"distance" : "200km", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT my_index/_doc/1 | |
{ | |
"text": "Geo-point as an object", | |
"location": { | |
"lat": 41.12, | |
"lon": -71.34 | |
} | |
} | |
PUT my_index/_doc/2 |
NewerOlder