Skip to content

Instantly share code, notes, and snippets.

View eskimoblood's full-sized avatar
🙀
snafu

Andreas Köberle eskimoblood

🙀
snafu
View GitHub Profile
I am attesting that this GitHub handle eskimoblood is linked to the Tezos account tz2ERCwCgNjKJ59Z3WowF9nsS8ps3tXkBUak for tzprofiles
sig:spsig1f9H2PCuWFJ4dgQtZNWdNapZ31VanJGdQYGHrryo95kV1bUEjFJAa5Vfb1A9su6jL7uGQcHvWEQdghBf2Zr5CbCRDoFY1a
@eskimoblood
eskimoblood / SketchSystems.spec
Created December 28, 2019 15:45
My Awesome Sketch
My Awesome Sketch
Nothing Selected
click on bar -> One Bar Selected
shift click on bar -> Continious Bars Selected
One Bar Selected
click on same bar -> Nothing Selected
click on another bar -> One Bar Selected
shift click on another bar -> Non Continious Bars Selected
ctrl click on another bar -> Continious Bars Selected
move mouse -> Selection
@eskimoblood
eskimoblood / gist:20fcc8b7994c1abcb192a07936885a4f
Created January 11, 2019 08:56
Simple test helper for testing recompose HOCs
import React from 'react'
import { mount } from 'enzyme'
const render = ({ hoc, data, context }) => {
const Component = () => <div />
const WrappedComponent = hoc(Component)
return mount(<WrappedComponent {...data} />, { context })
}
// By default, return the 'inner', wrapped component.
@eskimoblood
eskimoblood / PenroseTilling.elm
Last active August 29, 2015 14:10
Penrose Tiling in Elm
module Penrose where
import List(foldr, map)
import Graphics.Collage(..)
import Graphics.Element(..)
import Color(..)
goldenRatio = (1 + sqrt 5) / 2
type alias Point = (Float, Float)
type Triangle
= Kite (Point, Point, Point)
@eskimoblood
eskimoblood / BackgroundColor
Last active August 29, 2015 13:58
Nice way to have your private variables editable in a external window.
import control.ControlFrame;
import processing.core.PApplet;
public class BackgroundColor {
private final PApplet p;
@ControlElement(properties = {"min=0", "max=255"}, x = 10, y = 10)
private float red = 0;
div input, div label{
margin: 0;
position:relative;
left: -200px;
transition: .3s;
box-sizing:border-box;
float:left;
height: 30px
}
input{
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
@eskimoblood
eskimoblood / index.html
Last active December 14, 2015 23:19
p9
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>