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 * as React from "react"; | |
| import { Text, TextProps } from "react-native"; | |
| import { useFonts } from '@use-expo/font'; | |
| import { | |
| Nunito_Regular400, | |
| Nunito_SemiBold600_Italic, | |
| } from '@expo-google-fonts/nunito'; | |
| const CustomText: React.FC<TextProps> = (props) => { | |
| const [fontsLoaded] = useFonts({ | 
  
    
      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 * as React from "react"; | |
| import RN, { Text, TextProps } from "react-native"; | |
| import { Asset } from 'expo-asset'; | |
| import { useFonts } from '@use-expo/font'; | |
| import * as fonts from "@expo-google-fonts/dev"; | |
| enum FontDisplay { | |
| AUTO = "auto", | |
| SWAP = "swap", | 
  
    
      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
    
  
  
    
  | /* | |
| IMPORTANT NOTE | |
| The below is just an example showing how the root component of your project should be structured to support this multiple-navigator setup | |
| You should adapt your app around it | |
| */ | |
| import React from "react"; | 
  
    
      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 { ITheme } from "@Themes/interfaces"; | |
| import { DarkTheme } from "@Themes/theme.dark"; | |
| import { LightTheme } from "@Themes/theme.light"; | |
| import React from "react"; | |
| import { useColorScheme } from "react-native-appearance"; | |
| export const useTheme = (): [ITheme] => { | |
| const scheme = useColorScheme(); | |
| const [currentTheme, setCurrentTheme] = React.useState<ITheme>(DarkTheme); | 
  
    
      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
    
  
  
    
  | module.exports = function (api) { | |
| api.cache(true); | |
| return { | |
| presets: ['babel-preset-expo'], | |
| plugins: [ | |
| ["@babel/plugin-transform-flow-strip-types"], | |
| ["@babel/plugin-proposal-decorators", { "legacy": true }], | |
| ["@babel/plugin-proposal-class-properties", { "loose": true }], | |
| ["module-resolver", { | |
| "alias": { | 
  
    
      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, StyleSheet, Text, Dimensions, Platform } from 'react-native'; | |
| import Svg, { Circle, Rect, Defs, Use, Symbol, ForeignObject, LinearGradient, RadialGradient, Stop, G} from 'react-native-svg'; | |
| import { LinearGradient as LGradient } from 'expo-linear-gradient'; | |
| const Gauss = (x, sigma) => 1/(sigma * Math.sqrt(2*Math.PI)) * Math.exp( - (x**2) / (2*sigma**2 )) | |
| const dot = (v1, v2) => v1.reduce( (acc, comp, idx) => (acc + comp*v2[idx]), 0) | |
| const convolutions = (img, ker) => { | 
  
    
      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 { TouchableOpacity, Text } from "react-native"; | |
| import { observer } from "mobx"; | |
| import { useStores } from "../stores/StoresProvider"; | |
| const ExampleComponent: React.FC = () => { | |
| const { UIStore } = useStores(); | |
| return ( | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "os" | |
| "github.com/labstack/echo/v4" | |
| "github.com/labstack/echo/v4/middleware" | |
| "github.com/sirupsen/logrus" | 
  
    
      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
    
  
  
    
  | -- Postgres: How to find a matching element in a JSON array | |
| -- | |
| -- Definitions: | |
| -- - animal_size_in_mm: int = 50 | |
| -- - var_animal_type: string = "fish" | |
| -- | |
| -- Data example: | |
| -- | |
| -- [ | |
| -- { "animal_type": "fish", "name": "Bob", "animal_size": 48 }, | 
  
    
      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
    
  
  
    
  | # SourceNameGoesHere = the name as it appears in Hasura dashboard | |
| # See example: https://twitter.com/ChronSyn/status/1551035751512657921/photo/1 | |
| curl --location --request POST 'https://[your-hasura-address-dot-com]/v1/metadata' \ | |
| --header 'x-hasura-admin-secret: <your hasura admin secret>' \ | |
| --header 'X-Hasura-Role: admin' \ | |
| --header 'Content-Type: application/json' \ | |
| --data-raw '{ | |
| "type" : "pg_create_select_permission", | |
| "args" : { |