Skip to content

Instantly share code, notes, and snippets.

View aaroncadrian's full-sized avatar

Aaron Adrian aaroncadrian

  • Orange County, CA
View GitHub Profile
@aaroncadrian
aaroncadrian / tailwind_md_all_colours.js
Created April 4, 2018 21:12 — forked from davidpiesse/tailwind_md_all_colours.js
A colour set for Tailwind CSS that include all Material Design Colours, shades, accents and contrast colours
// https://davidpiesse.github.io/tailwind-md-colours/
//
//Notes
//
//All colours are generated from Material Design Docs
//Colours have a base, a set of shades (50-900) accent colours
//In addition a companion set of contrast colours are included for colouring text / icons
// Example usage
// class="w-full bg-red-600 text-red-600-constrast"
@aaroncadrian
aaroncadrian / macro.md
Created March 11, 2018 09:21 — forked from brunogaspar/macro.md
Recursive Laravel Collection Macros

What?

If a nested array is passed into a Laravel Collection, by default these will be threaded as normal arrays.

However, that's not always the ideal case and it would be nice if we could have nested collections in a cleaner way.

This is where this macro comes in handy.

Setup