Skip to content

Instantly share code, notes, and snippets.

@linchpinstudios
linchpinstudios / fabric.arrow.js
Last active December 25, 2023 18:27
Fabric JS Arrow
fabric.Arrow = fabric.util.createClass(fabric.Line, {
type: 'Arrow',
initialize: function(element, options) {
options || (options = {});
this.callSuper('initialize', element, options);
},
toObject: function() {
@linchpinstudios
linchpinstudios / step1.md
Last active April 11, 2016 17:53
Setup Ubuntu Server
@linchpinstudios
linchpinstudios / jade-rows.jade
Last active April 16, 2020 15:57
Loop through jade adding a row every around every two items.
- var perRow = 2;
- var columnAry = new Array(perRow);
- for(var i = 0, nbRows = items.length/perRow; i < nbRows; i++) {
.row
each item,index in columnAry
if items[perRow*i+index]
.item #{items[perRow*i+index]}
- }