Skip to content

Instantly share code, notes, and snippets.

View MannyGozzi's full-sized avatar
🍙
Learning...

Manuel Gozzi MannyGozzi

🍙
Learning...
View GitHub Profile
@MannyGozzi
MannyGozzi / page.tsx
Created June 5, 2024 06:05
A Practice Page Fragment for an IELTS Learning App
"use client";
import AnimatedHeader from "@/components/AnimatedHeader";
import QuestionsDropdown from "@/components/DropQ/QuestionsDropdown";
import Timer from "@/components/Timer";
import { AnimButton } from "@/components/ui/button";
import { AnimCard } from "@/components/ui/card";
import { Separator } from "@/components/ui/separator";
import { animFadeInWithDelay, animFadeUpWithDelay } from "@/constants/anim";
import {
dynamicFillBlankContent,
@MannyGozzi
MannyGozzi / gist:d2fa6925d7004c95652bb44ae29b88a9
Created May 25, 2024 19:10
Example Commit Message Summarizing Changes
* Updated color palette for a more appealing appearance
* Resolved serialization issue on the profile screen under the path: workoutbuilder/profile info
* Aligned toast message color schemes and integrated custom components to match the design style
* Rectified animation glitch (reverse animation) occurring between the profile information screens
* Implemented Android support for input fields and animated labels (excluding picker functionality, currently malfunctioning)
* Introduced haptic feedback during onboarding process
@MannyGozzi
MannyGozzi / ExerciseCard.tsx
Created May 25, 2024 19:04
Workout Routine Screen For AI Fitness App
import { BORDER_WIDTH } from '@/constants/theme'
import { useTheme } from '@/hooks/useTheme'
import { t } from 'i18next'
import LottieView from 'lottie-react-native'
import React from 'react'
import { Text, View } from 'react-native'
import { TouchableOpacity } from 'react-native-gesture-handler'
import {
FireIcon,
HandThumbDownIcon,
#include <iostream>
#include <string>
#include <fstream> //allows use of file stream
#include <sstream>
int main()
{
// constructor for file streams implements the open() function
// example -> ifs.open("foo.txt") = ifs("foo.txt")
//std::ios::app means write data from the end of the file
#include <iostream>
#include <random>
static unsigned long long genRandRange(unsigned int min, unsigned int max)
{
//create random number engine
std::mt19937_64 engine;
engine.seed(std::random_device()());
//create random number range definition (distribution)
std::uniform_int_distribution<std::mt19937_64::result_type> randDistro(min, max);
#include <iostream>
#include <chrono>
struct Timer { //use object lifetime to automatically print time elapsed
//within scope
//timepoints
std::chrono::time_point<std::chrono::steady_clock> begin, end;
//used to find change in time
std::chrono::duration<double> duration;
#include <iostream>
#include <string>
#include <regex>
int main()
{
//string that we want to find matches in
std::string string = "The dog went to the dog park. "
"There were numerous other doggies";