Skip to content

Instantly share code, notes, and snippets.

View CurtisL's full-sized avatar

Curtis Lawrence CurtisL

  • Sole Graphics
  • Bellingham Wa
View GitHub Profile
<?php
namespace App\Http;
use Illuminate\Http\Request;
class BulkAction
{
public $model;
@CurtisL
CurtisL / README.md
Last active January 27, 2020 19:34
Observing scoped variables via custom console.observe and chrome live expressions.

console.observe

Sometimes when debugging or testing, you use console.log() in a loop, or in a callback that is fired rapidly. Usefull, but when you only want to see the live value, your console can be flooded with entries. And even though there is the Live Expression option in chrome, your variable is sometimes not accessable in the window scope. This is where console.observe steps in.

console.observe(var, key);

This will create a window object variable window.consoleObserve that will contain updated value of the key you provide. This way you can selectivly create a live expression for your defined key.

@CurtisL
CurtisL / README.md
Last active February 4, 2020 21:27
CSS Selectors Sets

SELECTOR LIBRARY

This is a collection of css selectors organized by various terms. This can be used for reference or to build long selectors as needed

Content Categories

Each HTML element must abide by rules defining what kind of content it can have. These rules are grouped into content models common to several elements. Each HTML element belongs to zero, one, or multiple content models, each setting rules that the element's content must follow in an HTML-conformant document.