Skip to content

Instantly share code, notes, and snippets.

View jim-at-jibba's full-sized avatar
🦄

James G. Best jim-at-jibba

🦄
View GitHub Profile
@jim-at-jibba
jim-at-jibba / jamesbest.json
Last active June 27, 2024 07:16
jamesbest.json
{
"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
import React from "react";
import {
View,
SafeAreaView,
useWindowDimensions,
TextInput,
} from "react-native";
import Animated, {
Extrapolate,
interpolate,
@jim-at-jibba
jim-at-jibba / pendo-switch-user.jsx
Created December 6, 2021 08:59
Pendo Nav implimentation
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: {
/**
* How pendo document it
*/
<SafeAreaProvider>
<NavigationContainer
theme={MyTheme}
ref={navigationRef}
linking={linking}
onReady={props.onReady}
onStateChange={props.onStateChange}>
@jim-at-jibba
jim-at-jibba / content_discovery_all.txt
Created February 12, 2021 16:05 — forked from m4ll0k/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
---
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";
@jim-at-jibba
jim-at-jibba / .gitignore
Created June 18, 2020 14:17
Unity gitignore
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
@jim-at-jibba
jim-at-jibba / index.json
Created March 2, 2020 11:18
Candide Elastic Search - Filtering
GET my_index/_search
{
"query": {
"bool" : {
"must" : {
"match_all" : {}
},
"filter" : {
"geo_bounding_box" : {
"location" : {
@jim-at-jibba
jim-at-jibba / index.json
Created March 2, 2020 11:17
Candide Elastic Search - Query
GET /my_index/_search
{
"query": {
"bool" : {
"must" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "200km",
@jim-at-jibba
jim-at-jibba / index.json
Created March 2, 2020 11:16
Candide Elastic Search - Add come data
PUT my_index/_doc/1
{
"text": "Geo-point as an object",
"location": {
"lat": 41.12,
"lon": -71.34
}
}
PUT my_index/_doc/2