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 {Dimensions} from 'react-native'; | |
const {height: SCREEN_HEIGHT, width: SCREEN_WIDTH} = Dimensions.get('window'); | |
const designSize = {width: 390, height: 844}; | |
const CURRENT_RESOLUTION = Math.sqrt( | |
SCREEN_HEIGHT * SCREEN_HEIGHT + SCREEN_WIDTH * SCREEN_WIDTH, | |
); | |
const DESIGN_RESOLUTION = Math.sqrt( | |
designSize.height * designSize.height + designSize.width * designSize.width, |
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 { | |
DatabaseInterface, | |
ConnectionInformations, | |
CreateUser, | |
User as AccountsUser, | |
} from '@accounts/types'; | |
import { | |
PrismaClient, | |
Prisma, | |
User, |
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 { useCallback, useState } from 'react'; | |
// Usage | |
function App() { | |
// Call the hook which returns, current value and the toggler function | |
const [isTextChanged, setIsTextChanged] = useToggle(); | |
return ( | |
<button onClick={setIsTextChanged}>{isTextChanged ? 'Toggled' : 'Click to Toggle'}</button> |
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 re | |
import string | |
import networkx as nx | |
from nltk import pos_tag | |
from nltk.corpus import stopwords | |
from nltk.stem import WordNetLemmatizer | |
from textblob.wordnet import NOUN, VERB, ADJ, ADV | |
from sklearn.metrics.pairwise import cosine_similarity | |
_WORD_PAT = r"\w[\w']{3,}" |
NewerOlder