Skip to content

Instantly share code, notes, and snippets.

View aldoyh's full-sized avatar
🎩
I am Laravel-ing

Hasan AlDoy aldoyh

🎩
I am Laravel-ing
View GitHub Profile
@aldoyh
aldoyh / pro_audio_panel.html
Last active May 15, 2024 06:39
Sonorous Track Mixer
<div class="mixerContainer">
<div id="master" class="controllerBox">
<h3 class="title">Master</h3>
<div class="box">
<div class="row a">
<div class="radialSlider volumeContainer">
<input type="range" min="0" max="11" step="0.1" value="10" id="master-volume">
<label for="master-volume">Volume</label>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 83.73 83.82">
<g class="jogContainer">
@aldoyh
aldoyh / index.html
Last active May 13, 2024 14:29
MP3 Player w/ GSAP ☘️
<div class='player-wrapper'>
<div class='player-title'>Now Playing</div>
<div class='player-song'>Shop Talk Show</div>
<div class='player-singer'>Chris Coyier & Dave Rupert</div>
<div class='progress-control'>
<progress class='player-progress' value='0'></progress>
<div class='progress-handler'></div>
</div>
<div class='player-control'>
<button class='player-play'><i class="fa fa-play-circle-o fa-4x"></i></button>
#!/bin/bash
# Clone the original repo
git clone https://github.com/mohammadrz003/moonfo-youtube.git moonfo-youtube-original || {
echo "Error cloning repository. Exiting."
exit 1
}
# Navigate to the cloned repo
cd moonfo-youtube-original || {
@aldoyh
aldoyh / rev-com.sh
Created April 25, 2024 21:41
rev-commits
#!/bin/bash
# Clone the original repo
git clone https://github.com/mohammadrz003/moonfo-youtube.git moonfo-youtube-original
# Navigate to the cloned repo
cd moonfo-youtube-original
# Initialize an empty commit history
git reset --hard HEAD
<?php
namespace App\Console\Commands;
use App\Models\Artwork;
use App\Models\Image;
use App\Services\LeonardoService;
use Illuminate\Console\Command;
use Illuminate\Database\Eloquent\Casts\Json;
use Illuminate\Support\Arr;
@aldoyh
aldoyh / index.html
Created March 23, 2024 13:39
Music Player with Slider | Swiper JS
<body>
<div class="album-cover">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img
src="https://github.com/ecemgo/mini-samples-great-tricks/assets/13468728/d3ca28bf-e1b7-467e-a00b-c7785be8e397" />
<div class="overlay">
<a
href="https://www.youtube.com/watch?v=aatr_2MstrI&ab_channel=CleanBandit"
@aldoyh
aldoyh / GSAP_Snapping_Cards.html
Last active February 17, 2024 08:44
Infinite scrolling, dragging, and snapping cards with GSAP and ScrollTrigger (smooth)
<div class="gallery">
<ul class="cards">
<li>0</li>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
@aldoyh
aldoyh / dumprequest.php
Created August 28, 2023 03:34 — forked from magnetikonline/dumprequest.php
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
$_SERVER['REQUEST_URI'],
$_SERVER['SERVER_PROTOCOL']
@aldoyh
aldoyh / 3d-nintendo-switch.markdown
Created July 26, 2023 16:30
3D Nintendo Switch
@aldoyh
aldoyh / index.html
Created March 11, 2023 02:17
Mini Music Player
<div class="outer-container">
<img src="https://i.ibb.co/7RhfRBZ/Fine-Line-Harry-Styles.jpg" alt="Harry Styles' Fine Line album cover" id="background" />
<audio src="https://res.cloudinary.com/cbanlawi/video/upload/v1614140796/HarryStyles-WatermelonSugar_f5471p.mp3" id="track"></audio>
</div>
<div class="player-container">
<img src="https://i.ibb.co/7RhfRBZ/Fine-Line-Harry-Styles.jpg" alt="Harry Styles' Fine Line album cover" id="thumbnail" />
<div class="box">
<div class="play-pause">