Skip to content

Instantly share code, notes, and snippets.

View t1ltxz-gxd's full-sized avatar
🦀

#![type(gxd)] t1ltxz(); t1ltxz-gxd

🦀
View GitHub Profile
@t1ltxz-gxd
t1ltxz-gxd / valentine.py
Created February 14, 2024 22:24
Valentine's card for your soulmate
name = "YourName" # Replace with the name you want to use
name *= 3 # Enlarge the name so it can fill a larger area
print('\n'.join(
[''.join(
[name[(x-y)%len(name)] if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else ' ' for x in range(-30,30)]
) for y in range(15,-15,-1)]
))
@t1ltxz-gxd
t1ltxz-gxd / menuBarSection.tsx
Created October 27, 2023 15:30
Template for React/Nextjs powered by Tailwind CSS
/*
Copyright © Tilt 2023 - https://github.com/t1ltxz-gxd
Description:
This is a template for menu bar.
Preview: https://i.imgur.com/QPtXYDN.png
*/
import Link from "next/link";
import {Button} from "@/components/ui/button";
@t1ltxz-gxd
t1ltxz-gxd / organizer.rs
Created August 22, 2023 17:04
Sort your files into folders by extensions
use std::io::Write;
use std::path::PathBuf;
use std::time::Instant;
fn get_input(query: &str) -> std::io::Result<String> {
println!("{}", query);
std::io::stdout().flush()?;
let mut buffer = String::new();
std::io::stdin().read_line(&mut buffer)?;
Ok(buffer.trim().to_owned())
@t1ltxz-gxd
t1ltxz-gxd / calculator.py
Created May 29, 2023 15:47
one line calc
While True: print(eval(input('>>>')))