Skip to content

Instantly share code, notes, and snippets.

/*
Script to gradualy increase opacity by layer and set blendMode in Photoshop
Usage:
Save script
In Photoshop assuming file is open with multiple layers
File -> Scripts -> Browse...
Select opacity-photoshop-script.jsx from file system
*/
var numLayers = app.activeDocument.layers.length; // total number of layers
@ilionic
ilionic / FastImg.css
Created March 9, 2017 16:35 — forked from andykent/FastImg.css
Render Medium style blurred preview images using react-imgix
.aspectWrapper {
position: absolute;
width: 100%;
height: 100%;
}
.wrapper {
position: absolute;
width: 100%;
height: 100%;
@ilionic
ilionic / gist:27e7bfe486c9a34a86e1
Last active August 29, 2015 14:22 — forked from steida/gist:570d007c94a25fa68443
Este Firebase higher order component
import PureComponent from './purecomponent.react'
import React from 'react'
import {firebase, onFirebaseError} from '../firebase'
import {firebaseCursor} from '../state'
// This is super handy for monitoring listened refs.
function addListenedRef(ref) {
firebaseCursor(firebase => firebase
.update('listenedRefs', listenedRefs => listenedRefs
.push(ref.toString())
@ilionic
ilionic / README.md
Last active August 29, 2015 14:19 — forked from BinaryMuse/README.md

Integrating React with Marionette

See ReactComponentView and BackboneModelWatchMixin, below.

Notes

The BackboneModelWatchView could use some additional methods to allow adding/removing watched models after the component is created.