- 🎉 Initial commit
- ⏪ Reverting changes
- 🔀 Merging branches
- 🙈 Adding or updating a .gitignore file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 { |
There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
- Tag markup (which cannot resolve to text) is surrounded by
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// forcing the creation of an index.html for every page to allow | |
// providers serving pages without having to add .html to the url | |
exportPathMap: async function (defaultPathMap) { | |
const pathMap = {}; | |
for (const [path, config] of Object.entries(defaultPathMap)) { | |
if (path === "/") { | |
pathMap[path] = config; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Carbon\Carbon; | |
trait FilterableByDates | |
{ | |
public function scopeToday($query, $column = 'created_at') | |
{ |
- Jump down to the plugin
- Try it on Codepen — and heart it!
- Try it on Tailwind Play
- Read my blog post about this plugin - and share it!
and star this gist!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PlaceholderImage({ | |
height, | |
width, | |
...consumerProps | |
}) { | |
return ( | |
<img | |
{...consumerProps} | |
alt="" | |
src={`https://via.placeholder.com/${width}x${height}`} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"scripts": { | |
"dev": "astro dev", | |
"start": "astro dev", | |
"build": "astro build", | |
"postbuild": "node ./postbuild.mjs -path ./", | |
"preview": "astro preview", | |
"astro": "astro" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Test = () => { | |
return | |
( | |
<> | |
<div className="absolute top-0 right-0 p-4 text-right bg-white"> | |
ref: {swipeRef.current?.clientHeight} | |
<br /> | |
availHeight: {window.screen.availHeight} | |
<br /> | |
innerHeight: {window.innerHeight} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@servers(['web' => ['user@my-server.com']]) | |
@setup | |
$env = isset($env) ? $env : 'dev'; | |
if ($env === 'dev') { | |
$dir = '/var/www/html/dev/my-laravel-app'; | |
} else if ($env === 'production') { | |
$dir = '/var/www/html/my-laravel-app'; | |
} |
NewerOlder