Skip to content

Instantly share code, notes, and snippets.

View cr34t1ve's full-sized avatar
:octocat:

Sofua Desmond cr34t1ve

:octocat:
View GitHub Profile
@cr34t1ve
cr34t1ve / privacy-policy.txt
Created November 17, 2024 10:27
Merrton Privacy Policy
Effective Date: 16th November, 2024
Merrton (“we,” “our,” or “us”) respects your privacy and is committed to protecting the personal information you share with us. This Privacy Policy outlines how Merrton collects, uses, and protects your information when you use our app, which provides automated replies for Instagram messaging to assist merchants in managing customer communication.
1. Information We Collect
a. Account Information
When you sign up for Merrton, we collect:
• Your name, email address, and other contact information.
@cr34t1ve
cr34t1ve / range.js
Created July 14, 2024 15:11
JS utils
const range = (start, end, step = 1) => {
let output = [];
if (typeof end === 'undefined') {
end = start;
start = 0;
}
for (let i = start; i < end; i += step) {
output.push(i);
@cr34t1ve
cr34t1ve / index.tsx
Last active March 11, 2023 20:01
Card perspective hover effect
export default function(){
const mousePosition = useMousePosition();
return(
<div style={{
transition: "transform .2s ease",
transform: `perspective(1000px) rotateX(${
mousePosition.x! * -0.02
}deg) rotateY(${mousePosition.y! * -0.02}deg)`,
willChange: "transform",
@cr34t1ve
cr34t1ve / install-leaf.txt
Last active January 15, 2023 14:14
installing leaf
composer global require leafs/cli
@cr34t1ve
cr34t1ve / range_mapping.dart
Created April 24, 2022 17:03
dart mapping one range to another
void main() {
int rangeMapping(int input, int inputStart, int inputEnd, int outputStart,
int outputEnd) {
int output = (outputStart +
((outputEnd - outputStart) / (inputEnd - inputStart)) *
(input - inputStart))
.toInt();
return output;
@cr34t1ve
cr34t1ve / assistant_methods.dart
Created March 25, 2022 07:43
calling user prefs with provider example #1
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart';
User? userLogin;
class AssistantMethods with ChangeNotifier {
Future<void> getSavedPrefs(context) async {
SharedPreferences pref = await SharedPreferences.getInstance();
Provider.of<User>(context, listen: false).setUser(
@cr34t1ve
cr34t1ve / main.dart
Created November 26, 2021 17:39
sensors_plus not working with web (mobile)
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:mobile_gyro_parallax/anothertest.dart';
import 'package:mobile_gyro_parallax/sizeconfig.dart';
import 'package:mobile_gyro_parallax/test_parallax.dart';
import 'package:sensors_plus/sensors_plus.dart';
void main() => runApp(MediaQ());