I hereby claim:
- I am icezer0 on github.
- I am idurant (https://keybase.io/idurant) on keybase.
- I have a public key ASCyDM4wqZMk1sMJPy6oTaLMhGJu5pip0_cykOK4JhQy6go
To claim this, I am signing this object:
function binaryTwosComplementToInt(binaryString) { | |
if (binaryString[0] != 1) { | |
return parseInt(binaryString, 2); | |
} | |
let twosComplementResult = ""; | |
binaryString.match(/.{1,1}/g).forEach(str => { | |
twosComplementResult += (str == 1) ? str = 0 : str = 1; | |
}); |
function Hex32BitToBinary(HexData){ | |
let result = ""; | |
//32bit hex to string | |
HexData.match(/.{1,2}/g).forEach(str => { | |
result += hex2bin(str) | |
}); | |
return result; | |
} |
I hereby claim:
To claim this, I am signing this object:
import { validateAll } from 'indicative/validator'; | |
const handleSignUp = () => { | |
const rules = { | |
email: 'required|email', | |
password: 'required|string|min:6|max:40|confirmed' | |
}; | |
const data = { | |
email: emailAddress, |
import React, { useEffect, useState, useContext } from 'react'; | |
import { validateAll } from 'indicative/validator'; | |
import { View, Text } from 'react-native'; | |
import { | |
Input, | |
Card, | |
FormValidationMessage, | |
Button | |
} from 'react-native-elements'; |
import React, { useEffect, useState, useContext } from 'react'; | |
import { validateAll } from 'indicative/validator'; | |
import { View, Text } from 'react-native'; | |
import { | |
Input, | |
Card, | |
FormValidationMessage, | |
Button | |
} from 'react-native-elements'; |
const authContextValue = useMemo( | |
() => ({ | |
signIn: async data => { | |
if ( | |
data && | |
data.emailAddress !== undefined && | |
data.password !== undefined | |
) { | |
dispatch({ type: 'SIGN_IN', token: 'Token-For-Now' }); | |
} else { |
import { NavigationContainer } from '@react-navigation/native'; | |
import { createStackNavigator } from '@react-navigation/stack'; | |
import { createDrawerNavigator, DrawerItems } from '@react-navigation/drawer'; | |
const Stack = createStackNavigator(); | |
const Drawer = createDrawerNavigator(); |
const createHomeStack = () => { | |
const { signOut } = useContext(AuthContext); | |
return ( | |
<Stack.Navigator> | |
<Stack.Screen | |
name="Home Screen" | |
component={createDrawer} | |
initialParams={{ singOut: signOut }} | |
/> |