Skip to content

Instantly share code, notes, and snippets.

@mikeritter
mikeritter / guides.blade.php
Created February 17, 2018 17:37
Iterating Indexed IDs in Vue w Blade
@extends('layouts.app')
@section('content')
<div class="mb-2"><a class="btn btn-sm btn-outline-dark" href="{{ url('/') }}"><span aria-hidden="true" class="pr-2">&#60;</span>back</a></div>
<h2>Guides</h2>
<div id="guides">
<div class="card mb-4" v-for="(value, key) in content[0].guides" v-cloak :id="'guide_' + key">
<p class="card-header" :id="'guide_' + key + '_header'">@{{ value.title }}</p>
<div class="card-body" :id="'guide_' + key + '_body'">
<p v-for="page in value.pages" v-cloak>@{{ page }}</p>
@mikeritter
mikeritter / mikerittersponsive.css
Created September 21, 2014 15:21
Inconsistent Media Query Rendering among Browsers Using _s
/*
Theme Name: MikeRitterResponsive
Theme URI: http://underscores.me/
Author: mikeritteronline
Author URI: http://mikeritteronlins.com
Description: customizable responsive website
Version: 1.0-wpcom
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mikeritterresponsive
@mikeritter
mikeritter / gist:efa50a3d123d836eb862
Last active February 28, 2017 20:00
Laravel Eloquent Edit Form with Associated Checkboxes Checked
/*
* The issue at hand is how to show checked boxes in
* a Laravel edit form using Eloquent models.
*/
/*
* My Models
*
*/