Skip to content

Instantly share code, notes, and snippets.

Screenreader only class

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0); /* IE 6/7 */
@BillClinton
BillClinton / js-classes.md
Last active December 19, 2019 04:27
JS ES5 classes

A Class in JS:

function Animal(){  

    // Private property
    var alive=true;

    // Private method
    function fight(){ //... }   
@BillClinton
BillClinton / symfony-commands.md
Last active March 30, 2020 16:50
symfony commands

Development

Require server

composer require server --dev

Start local server

symfony server:start

@BillClinton
BillClinton / api-platform.md
Last active April 20, 2020 19:36
API Platform Notes

Setup

Create Project w/ version

composer create-project symfony/skeleton:^4.4 rest_api_project

Install MakerBundle (to use make command)

composer require symfony/maker-bundle --dev

@BillClinton
BillClinton / Next.js-notes.md
Last active August 13, 2020 15:45
Next.js Notes

API

  • next/link
  • next/head
  • next/router
  • next/amp

CLI

  • next build
@BillClinton
BillClinton / cbl-er.md
Last active February 18, 2022 20:06
CBL ER

ER

// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions