Skip to content

Instantly share code, notes, and snippets.

View lipemat's full-sized avatar

Mat Lipe lipemat

View GitHub Profile
import turtle;
t = turtle.Turtle();
w = turtle.Screen();
def right():
t.right(45);
def left():
t.left(45);
@lipemat
lipemat / team.js
Created March 16, 2019 19:37
React Column Aware Layout
import React, {useState, useRef, useMemo, useCallback, useEffect} from 'react';
import {hot} from 'react-hot-loader/root';
import {ITEMS} from "../globals/config";
import Item from "../components/team/Item";
import Slide_And_Scroll from "../components/transitions/Slide_And_Scroll";
import Current from "../components/team/Current";
import chunk from 'lodash/chunk';
import debounce from 'lodash/debounce';
const getCurrentFromHash = () => {
@lipemat
lipemat / Filetime_VS_MD5_VS_Hash_File_Bench.php
Created July 9, 2023 06:50
Example PHPBench PHP 8.1 errors
<?php
/**
* @notice This file must live in a "benchmarks" directory for this exmaple.
*/
class Filemtime_VS_MD5_VS_Hash_File_Bench {
/**
* @Revs(1000)
* @Iterations(3)
*/