Skip to content

Instantly share code, notes, and snippets.

@azazdeaz
azazdeaz / LiveLink.js
Created January 2, 2018 12:19
wip live apollo link
@azazdeaz
azazdeaz / select-random-on-click.elm
Last active November 7, 2015 19:14
Elm - select a random item from a list on every button click
import Html exposing (..)
import Html.Events exposing (..)
import Signal
import Time
import Random
import Array
buttonMailbox =
Signal.mailbox ()
@azazdeaz
azazdeaz / animachine.md
Last active October 19, 2015 15:17
Reactive 2015 Lightning Talk Proposal

Hi, i'm working on this tool called [animachine] which helps creating timeline based animations for React components.

It's packed in a [chrome extension][extension] so you don't need to open your project in an other program to animate it with a rich GUI. (You can vote by ⭐-ing this gist)

Made with React and Redux

<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#paper_button {
left: 230px;
top: 220px;
position: absolute;
@azazdeaz
azazdeaz / Closest free place
Last active August 29, 2015 14:01
Find the closest free place for a rectangle
//demo: http://jsfiddle.net/azazdeaz/qH3Y7/
//cut a rect from the free places
function cut(map, rect) {
var oldR, added = 0, ti, ri, bi, li;
function add(t, r, b, l) {
map.push(createRect(t, r, b, l));