Skip to content

Instantly share code, notes, and snippets.

View tanishqsh's full-sized avatar
🔨
building.

tani.eth tanishqsh

🔨
building.
  • 02:09 (UTC -04:00)
View GitHub Profile
@tanishqsh
tanishqsh / RevealText.tsx
Created November 21, 2023 02:59
Animated Text With Reveal Effect
import React from 'react';
import { AnimatePresence, motion } from 'framer-motion';
interface RevealTextProps {
text: string;
}
const RevealText: React.FC<RevealTextProps> = ({ text }) => {
const [isHovered, setIsHovered] = React.useState(false);
@tanishqsh
tanishqsh / opepen.svg
Last active July 19, 2023 21:42
Opepen SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tanishqsh
tanishqsh / DOBPicker.tsx
Created July 3, 2023 03:54
DOB Calendar
/**
/DOBPicker.tsx
**/
'use client';
import * as React from 'react';
import { format, subYears } from 'date-fns';
import { cn } from '@/lib/utils';
import { Button } from '@/components/ui/button';
@tanishqsh
tanishqsh / freshproject.sh
Created March 4, 2023 05:21
A bash function to create fresh-new NextJS with Tailwind, with my favourite npm packages
function freshproject(){
npx create-next-app@latest "$1" --typescript --eslint
cd "$1"
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
truncate -s 0 tailwind.config.js
echo "module.exports = { content: ['./app/**/*.{js,ts,jsx,tsx}', './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], theme: { extend: {},}, plugins: [], };" >> tailwind.config.js
truncate -s 0 styles/globals.css
echo "@tailwind base;" >> styles/globals.css
echo "@tailwind components;" >> styles/globals.css
@tanishqsh
tanishqsh / telegram-gumroad.js
Created February 13, 2023 16:09
Telegram <> Gumroad Sentinel
const express = require('express');
const fetch = require('node-fetch');
const cors = require('cors');
const bodyParser = require('body-parser');
const TelegramBot = require('node-telegram-bot-api');
const { response } = require('express');
/**
* Requiring ENV file for variables
*/
@tanishqsh
tanishqsh / DameClaim.sol
Created October 30, 2021 18:00
A ERC20 Claimable smart contract to allow creator to deposit, set AllowList, Withdrawal Limits (Purely Experimental)
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
How it works?
1. You deposit your ERC20 tokens in the smart contract
2. You can add a person into the allowList
@tanishqsh
tanishqsh / MadHouseDialog.java
Last active December 7, 2017 08:05
Custom Dialog Box For MadHouse. Can be used for Rate Prompts, Other Messages!
package com.madhouseapps.financialcalculator;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.Window;
import android.widget.Button;