Skip to content

Instantly share code, notes, and snippets.

View mamachanko's full-sized avatar
🔧
clank clank ...

Max Brauer mamachanko

🔧
clank clank ...
View GitHub Profile
@mamachanko
mamachanko / index.html
Created January 25, 2017 15:12
hide shadow on click
<div class="svg-path">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 64" enable-background="new 0 0 47.6 59.8">
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="shadow-filter">
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.248754529 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
<path id="shadow" fill="none" stroke-width="2" stroke-miterlimit="10" stroke="#4dbeee" d="m.8 34.7s8.7-12.4 7.5-24.3l5.2 8.9 6.1-14.4v15.9l15.4-10.4-7 16.6 16.8 1.2-19 14.5 12.7 2.2-26 14"/>
@mamachanko
mamachanko / Berlin_coffeestuffs.md
Last active January 30, 2017 10:23
Berlin - The coffees and the stuffs
@mamachanko
mamachanko / drawing.kt
Last active January 30, 2017 20:44
What a procedural description of a drawing might look like
val instructions = ToAnEmptyPage()
.withWidth(600).and().withHeight(800).and().withVerticalMargin(50).and().withHorizontalMargin(25)
.add()
.rectangles().inAGridOf(2, 3).withMargin(15)
.then()
.duplicate().all()
.then()
.slice().all().randomly()
.and()
@mamachanko
mamachanko / deploy.sh
Last active February 25, 2017 10:03
Force https for Staticfile buildpack on Cloud Foundry
#!/usr/bin/env bash -e
cf push forcehttps -b staticfile_buildpack --random-route
@mamachanko
mamachanko / app.38fd827a.css
Last active March 6, 2017 14:29
Cloud Foundry Staticfile buildpack and path-based routing
#app,body,html{height:100%}body{font-family:sans-serif;margin:0;padding:0}.App{height:100%;min-height:400px;text-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch}.App,.App-flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.App-flex{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.App-heading{background-color:#222;color:#f8f8f8;font-size:6vh;box-shadow:0 4px 4vh 4px rgba(34,34,34,.9);z-index:2}.App-react{color:#00d8ff;text-decoration:overline underline}.App-logo{max-height:30vh;max-width:30vh}.App-instructions{background-color:#f8f8f8;color:#222;font-size:3vh;line-height:1.5;padding:0 1em}.A
@mamachanko
mamachanko / SignupForm.elm
Last active March 7, 2017 12:08
Building a Live-Validated Signup Form in Elm
module SignupForm exposing (..)
import Http
import Task exposing (Task)
import Json.Decode exposing (succeed)
import Html.App
import Html exposing (..)
import Html.Events exposing (..)
import Html.Attributes exposing (id, type', for, value, class)
@mamachanko
mamachanko / Today.elm
Created March 29, 2017 06:23
Getting and formatting today in Elm
module Main exposing (..)
import Html exposing (Html, div, text, program)
import Mouse
import Keyboard
import Date
import Time
import Task
import Date.Format
module This exposing (..)
import Date
import Dict
type alias Entry =
{ date : Date.Date
, text : String
}
@mamachanko
mamachanko / apartment_hunt_berlin.md
Last active May 23, 2018 07:04
getting an apartment in Berlin
Sun Jul 15 13:45:16 UTC 2018