Skip to content

Instantly share code, notes, and snippets.

// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@BillClinton
BillClinton / cbl-er.md
Last active February 18, 2022 20:06
CBL ER

ER

@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 / 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 / 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 / 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(){ //... }   

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 / espruino.md
Last active November 26, 2019 08:47
espruino

sudo screen /dev/ttyS4

to quit: ctrl-a then type :quit

@BillClinton
BillClinton / export-svg-inkscape.md
Created November 2, 2019 00:59 — forked from brenopolanski/export-svg-inkscape.md
Exporting an object as svg from inkscape
  1. Select the object(s) to export
  2. Open the document properties window (Ctrl+Shift+D)
  3. Select "Resize page to drawing or selection"
  4. File > Save As Copy...
  5. Select Optimized SVG as the format if you want to use it on the web

Notes

Misc

If you animate scale, it's going to animate the content of the div too.

Performance

If you animate height or width it's a huge performance bottleneck

Resources: