Skip to content

Instantly share code, notes, and snippets.

View belfie13's full-sized avatar
🤘

CIIDMike belfie13

🤘
  • B13
  • Australis
View GitHub Profile
@tnarla
tnarla / 8ball.tsx
Created November 7, 2023 20:08
8ball code!
"use client";
import { motion } from "framer-motion";
import { useCallback, useEffect, useRef, useState } from "react";
interface Todo {
text: string;
completed: boolean;
}
@iluuu1994
iluuu1994 / README.md
Last active April 15, 2024 10:45
${} string interpolation migration script

Copy the migrator.php file to the root of your project and run the following command:

for file in **/*.php; do php ./migrator.php "$file"; done

BACK UP YOUR REPOSITORY BEFORE RUNNING THIS SCRIPT!

@ranacseruet
ranacseruet / PDAO.php
Last active October 21, 2023 16:31
PHP Dynamic Object With Array and Iterative access capability
<?php
class PDAO implements \ArrayAccess, \Iterator
{
/**
* @var array data
*/
protected $data = array();
/**
@ranacseruet
ranacseruet / VideoStream.php
Last active June 17, 2024 11:54
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";