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.
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>
@eskimoblood
eskimoblood / RegionRouter.js
Created February 20, 2013 13:22
Router that will just show a new view in a region. The router can be configurate by a simple map like this `{'someRoute/:id' : SomeView}`. So when ever a configured route matchs, the corresponding view will be shown in the passed region.
define(function() {
function getRouterSetting(region, routerSettings) {
var settings = {
appRoutes: {},
controller: {}
};
@eskimoblood
eskimoblood / index.html
Last active December 13, 2015 21:49
Flower of life
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="https://raw.github.com/bestiejs/lodash/v1.0.0/dist/lodash.min.js"></script>
</head>
<body>
<script>