Skip to content

Instantly share code, notes, and snippets.

[
{
"id": 1,
"userId": "b841f3d0-7051-7056-7a17-9cab1a21880b",
"fileName": "Joshua Lehman 251022.pdf",
"created": "2025-06-28T17:21:28.805Z",
"updated": "2025-06-28T17:22:00.056Z",
"statusId": 4,
"attempts": 1,
"status": "COMPLETE",
/CreateBioHack
├── components/
│ ├── CreateBioHackStep1.tsx
│ ├── CreateBioHackStep2.tsx
│ ├── CreateBioHackStep3.tsx
│ └── CreateBioHackStep4.tsx
├── context/
│ └── BiohackFormContext.tsx
├── hooks/
│ ├── useBiohackForm.ts (shared state)
{
"activityType": 2,
"assessmentDate": 1728294770680,
"assignedBuyerBusinessPartners": [
"supplier-os-org-teamMVP~EUDR_TEST_D"
],
"caseIds": [
"be3875c5-9180-4f41-bc52-7ed8b88f23f1",
"c8aec5be-5074-4980-90ac-f3a3ad73e9b7",
"37645d68-eb29-4bae-9e2b-82b302e06448",
import {
useAddNotificationMutation,
useClearAllNotificationsMutation,
useClearNotificationMutation,
useHideNotificationTagMutation,
useReadAllNotificationsMutation,
useShowNotificationTagMutation,
useLazyGetNotificationsQuery,
} from '@api';
// Task 1: Data Types
// The function is supposed to return the length of a string but doesn't work as expected.
function getLength(input) {
return input.length;
}
// Bug: The function assumes input is always a string, which might not be true.
// Task 2: Interaction
// The function should display a greeting but sometimes it doesn't.
function greetUser() {
// Task 1: Data Types
// The function is supposed to return the length of a string but doesn't work as expected.
function getLength(input) {
return input.length;
}
// Bug: The function assumes input is always a string, which might not be true.
// Task 2: Interaction
// The function should display a greeting but sometimes it doesn't.
function greetUser() {
// Task 1: Function with Incorrect Comparison
// Explanation: The function should check if the input number is greater than 10, but there's a logical mistake in the comparison.
// Expected Result: Log "Number is greater than 10" for input 15.
function checkNumber(num) {
if (num >= 10) {
console.log("Number is greater than 10");
} else {
console.log("Number is not greater than 10");
}
}
import { polygon } from "@turf/turf"
/**
* Recursively flatten nested MultiPolygon coordinates and convert to a Polygon.
* @param {Array} coordinates - Nested GeoJSON MultiPolygon coordinates.
* @returns {Object} - GeoJSON Polygon feature with flattened coordinates.
*/
export function flattenAndConvertToPolygon(coordinates) {
const flattened = []
import {useFocusEffect} from '@react-navigation/native';
import {Box, IconButton, Text} from 'components';
import {Theme} from 'core/styles';
import {useGetSessions} from 'hooks';
import useInAppPurchase from 'hooks/iap';
import LottieView from 'lottie-react-native';
import {useAppNavigation} from 'navigation/hooks/useAppNavigation';
import {useAuth} from 'pods/auth/context';
import {useOnboarding} from 'pods/onboarding/context';
import {SoundEquilizer} from 'pods/session/assets';
import React, {useCallback, useEffect} from 'react';
import {
Text,
View,
StyleSheet,
TouchableOpacity,
ActivityIndicator,
ImageBackground,
GestureResponderEvent,
useWindowDimensions,