Skip to content

Instantly share code, notes, and snippets.

Daniel Wehner dawehner

  • http://dawehner.github.com/
Block or report user

Report or block dawehner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am dawehner on github.
  • I am dawehner (https://keybase.io/dawehner) on keybase.
  • I have a public key whose fingerprint is CF0D 250A 071F 0184 FD20 98B9 603F 3793 67C7 1E83

To claim this, I am signing this object:

View gist:c59a19c81a442a2c1fddfeb5064e5732
diff --git a/package.json b/package.json
index 1ae5f33..2c75355 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"react-redux": "^5.0.7",
"react-redux-loading-bar": "^3.1.2",
"react-router-dom": "^4.2.2",
+ "react-router-redux": "^5.0.0-alpha.9",
"redux": "^3.7.2",
View gist:f57f6c4a3160deee8d6bee5390bc07ac
diff --git a/package.json b/package.json
index 1ae5f33..cd9381a 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"react-redux": "^5.0.7",
"react-redux-loading-bar": "^3.1.2",
"react-router-dom": "^4.2.2",
+ "react-router-redux": "^4.0.8",
"redux": "^3.7.2",
View gist:3478e542cc9335dbea8b0c896c011c47
######
# Base
#####
FROM debian:jessie
ENV DRUPALCI TRUE
# Install deps + add Chrome Stable + purge all the things
RUN apt-get update && apt-get install -y \
apt-transport-https \
@dawehner
dawehner / .babelrc
Last active Aug 29, 2017
Callback vs promise vs async await
View .babelrc
{
"presets": ["env"]
}
View gist:4f559c36d106e53b5dd138f7edbecbb0
{% block title %}My title{% endblock %}
{% endblock %}
Other kittens
----------
{% extends "base.html" %}
{% block title%} My other title {% endblock %}
View gist:ed59f5558190c08b50cac24342349643
http://localhost:8888/api/recipes/893fb726-5eeb-4cce-8d03-554c835285a5?include=field_image,field_image.field_image,field_image.field_image.file--file,tags,field_image.owner,field_image.field_image.owner&fields[image]=image&fields[file--file]=url,uuid&fields[recipes]=title,difficulty,ingredients,totalTime,preparationTime,instructions,image,tags,&fields[tags]=tid,name
{
"data": {
"type": "recipes",
"id": "893fb726-5eeb-4cce-8d03-554c835285a5",
"attributes": {
"title": "Delicious and Nutritious Mermaid Smoothie",
"difficulty": "easy",
"ingredients": [
View gist:8b107079f941ceac0567cbd9641cddbf
<?php
namespace Drupal\recipes_magazin\Plugin\migrate\source;
/**
* Extends the CSV migration to make it possible to import terms.
*
* @MigrateSource(
* id = "recipe_magazin__terms"
* )
View gist:55a0d90d8fb0a256459bc906bb1abef2
class ContainerAwareLazyRouteFilter extends LazyRouteFilter {
use ContainerAwareTrait;
protected function createInstance($id) {
return $this->container->get($id);
}
}
abstract class LazyRouteFilter {
protected function createInstance($id);
}
View foo.hs
data List a =
Nil
| Cons a (List a)
deriving (Eq, Show)
instance Monoid (List a) where
mempty :: List a
mempty = Nil
mappend :: List a -> List a -> List a
You can’t perform that action at this time.