Skip to content

Instantly share code, notes, and snippets.

View DavydeVries's full-sized avatar
⌨️
Smashing on a keyboard and let things work.

Davy de Vries DavydeVries

⌨️
Smashing on a keyboard and let things work.
View GitHub Profile
@jordienr
jordienr / tailwind.config.ts
Created July 15, 2023 09:10
Tailwind SVG Grid Background
// Remember to install mini-svg-data-uri
// Follow me on twitter for memes @jordienr
import { type Config } from "tailwindcss";
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
const svgToDataUri = require("mini-svg-data-uri");
export default {
@jarodreyes
jarodreyes / ValidateAuthyRequest.php
Created October 27, 2015 17:23
Validating an Authy OneTouch request using PHP/Laravel. Twilio.
<?php namespace App\Http\Middleware;
use Closure;
class ValidateAuthyRequest {
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
@andrewrcollins
andrewrcollins / mix_tint_tone_shade.php
Last active February 24, 2024 18:52
Color Mixing, Tint, Tone, and Shade in PHP
<?php
/**
* mix
*
* @param mixed $color_1
* @param mixed $color_2
* @param mixed $weight
*
* @return void