Skip to content

Instantly share code, notes, and snippets.

View cristicretu's full-sized avatar
🚀
lock in

Cristian Crețu cristicretu

🚀
lock in
View GitHub Profile
import { motion } from 'motion/react';
import NumberFlow from '@number-flow/react';
import { useEffect, useMemo, useState } from 'react';
const ACCENT_COLORS = ['#313de6', '#e9ee2a', '#24dd3f', '#14b8ff', '#ff5f6d'];
const SYMBOLS = ['✣', '◈', '⌁', '⌗', '⌘', '⌂', '⌖', '⌇'];
const FINAL_PERIOD_COLOR = '#23d53f';
const SPEED_MIN = 0.05;
const SPEED_MAX = 2.5;
const DEFAULT_TEXT = 'It works with your files.';
@cristicretu
cristicretu / scroll-masking.css
Created November 5, 2025 06:06 — forked from linuz90/scroll-masking.css
Tailwind Scroll Masking Utils
/* ----------------------------- Scroll Masking ----------------------------- */
/* Custom properties for scroll-driven mask animations */
@property --mask-up-fade {
syntax: "<length>";
inherits: false;
initial-value: 0;
}
@property --mask-down-fade {

Optima Privacy Policy

TL;DR: Optima processes your exercise data entirely on-device, only sharing specific images and movement data with AI services when you request form analysis, with no data collection or storage on our servers.

Introduction

Optima is a fitness application that uses on-device machine learning and cloud-hosted large language and vision models to analyze your exercise form and provide personalized feedback. This privacy policy explains how we handle your data.

Data Collection and Usage

On-Device Processing

How palora uses your data:
It doesn't.
No information about you or your usage of the palora app is collected.
All data is stored on your device.
None of that information is shared with the developer or uploaded to any third party.
@cristicretu
cristicretu / javafx.md
Last active January 3, 2025 13:03
javafx

Then install JDK FX Package and maven:

brew install maven # used for managing our whole project, and the packages

Be sure to specify the correct JDK version, when downloading the package, you can check your version like this:

@cristicretu
cristicretu / Apps.jsx
Created December 5, 2024 06:28 — forked from UdaraJay/Apps.jsx
Animated card stack
import styles from './Apps.module.scss';
import { useEffect, useState } from 'react';
import Link from 'next/link';
const APPS = [
{
title: 'APP',
hero: 'Lorem ipsum dolor sit amet',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do.',
@cristicretu
cristicretu / what-forces-layout.md
Created August 24, 2024 07:08 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@cristicretu
cristicretu / script.py
Created July 21, 2024 20:00
Label checker latex
import os
import re
def analyze_tex_labels(directory='.'):
label_pattern = re.compile(r'\\label{q(\d+)}')
numbers = set()
for root, dirs, files in os.walk(directory):
for filename in files:
if filename.endswith('.tex'):

Then install qt and cmake:

brew install qt
brew install cmake
  • Create a new CMake project, with this CMakeLists.txt:
@cristicretu
cristicretu / .zshrc
Created October 22, 2022 14:42
Zsh alias to compile C++
comp() {
g++ -std=c++17 -Wall -Wextra -Wno-unknown-pragmas -pedantic -O2 -Wshadow -Wformat -Wfloat-equal -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fstack-protector $1.cpp -o $1 && ./$1
}
# usage: comp main (main.cpp being the file)