Skip to content

Instantly share code, notes, and snippets.

View banzalik's full-sized avatar

Alexander Boichenko banzalik

View GitHub Profile
@banzalik
banzalik / gist:2b623dfadb16548cd255
Created October 31, 2015 12:43 — forked from keepitcomplicated/gist:10731533
Convert a PNG sprite to animated GIF with ImageMagick (python script)
mkdir ./gif; for f in *.png; do y=${f%.png}; convert -dispose 3 -delay 0 -deconstruct -loop 0 ./$f -crop 40x40 +repage -depth 4 ./gif/$y.gif; echo "Converting $y to GIF"; echo "—~—~—~—~—~—~—~—~—~—~—~–"; done
@banzalik
banzalik / app.js
Created November 27, 2015 08:50 — forked from roman01la/app.js
Minimal setup for efficient state management and rendering in React with single atom state
import React from 'react';
import { render } from 'react-dom';
import Root from './components/root.jsx';
import { silentSwap } from './lib/atom';
import { fromJS } from 'immutable';
import './stores/ui';
const initialState = {
ui: {
@banzalik
banzalik / dabblet.css
Last active February 27, 2017 17:47
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
chip {
box-shadow: inset 0 0 0 2px green;
border-radius: 50px;
display: inline-block;
background: orange;
}
user {