Skip to content

Instantly share code, notes, and snippets.

@plcosta
plcosta / postcss.config.js
Created December 7, 2018 00:10
PostCSS Config - TailwindCSS, Vuetify and PurgeCSS
const tailwindcss = require('tailwindcss')
const autoprefixer = require('autoprefixer')
const purgecss = require('@fullhuman/postcss-purgecss')
module.exports = {
plugins: [
tailwindcss('./tailwind.js'),
autoprefixer({
add: true,
grid: true
@IsraelOrtuno
IsraelOrtuno / steps.blade.php
Created August 29, 2017 07:57
Unlimited CSS Step bar with Laravel Blade, SASS and FontAwesome
<div class="progress">
@foreach ($steps as $step)
<div class="{{ $step[0] }}
{{ $loop->iteration > $currentStep ? '' : 'progress__step--active' }}
{{ $loop->iteration >= $currentStep ? '' : 'progress__step--done' }}">
{{ $step[1] }}
</div>
@endforeach
</div>
@skratchdot
skratchdot / donate.md
Created January 25, 2016 17:42
My Paypal donate button in markdown format

Donation Button

Donate

@RuGa
RuGa / massInsertOrUpdate.php
Last active April 12, 2024 16:54
Mass (bulk) insert or update on duplicate for Laravel 4/5
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
* ['id'=>1,'value'=>10],
* ['id'=>2,'value'=>60]
* ]);
*
*
* @param array $rows
@patrickheeney
patrickheeney / gist:c4a192cff86194c859f5
Last active August 29, 2015 14:06
Application Lifecycle

September 25, 2014

Request Cycle (with Service Layer)

  • HTTP Request -> Received by Controller.
  • Controller -> Serializes request data into command.
  • Controller -> Passes Command off to Command Bus.
  • CommandBus -> Resolves Command to Handler.
  • Command Handler -> Receives request and resolves any dependencies, fires any command events to modify the command data before and after handler action, then passes it off to a service layer.
  • Service -> Receives input and handles creation, retreiving and updating entities. It builds up the entities and related entities and hands it off to the repository for persisting and deleting.