Skip to content

Instantly share code, notes, and snippets.

View dan-gamble's full-sized avatar

Dan Gamble dan-gamble

View GitHub Profile
@kristianmandrup
kristianmandrup / aurelia-started.md
Last active February 22, 2017 16:15
Aurelia Getting started - walk through

Aurelia

Recipe

  • Install NVM
  • Install IO.js
  • Install global Node.js utility modules (gulp, jspm, yo)
  • Install RethinkDB
  • Install Koa.js
  • Install Aurelia generator
  • Create Aurelia app via generator
@w0rm
w0rm / gist:36ff0b4399a414384690
Created May 25, 2015 09:50
Unhandled gulp-postcss errors don't end up in console if not manually catched
var Stream = require('stream')
var gulp = require('gulp')
var postcss = require('gulp-postcss')
function errorStream () {
var stream = new Stream.Transform({ objectMode: true })
stream._transform = function (file, encoding, cb) {
cb(new Error('unhandled exception!'))
}
return stream
@paulirish
paulirish / what-forces-layout.md
Last active July 25, 2024 07:49
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@mathiasbynens
mathiasbynens / web-platform-status-links.md
Last active July 4, 2024 22:36
Web platform status links
@shashankkr9
shashankkr9 / shopify_plans.txt
Created January 8, 2021 16:53
Shopify Plans
basic
frozen
cancelled
professional
affiliate
trial
dormant
shopify_plus
unlimited
paused
@m5r
m5r / index.tsx
Created February 26, 2022 20:22
bullmq job queue in Remix
import notifierQueue from "~/queues/notifier.server.ts";
export const loader = async () => {
await notifierQueue.add("test", { emailAddress: "mokhtar@remixtape.dev" });
return null;
};