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 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
View gist:ab3961d1c3b29d50d4fbe91d4b93d3b7
Overlap #1(13): 'i' 0.0440762042999268s after space | 'g' 0.0142807960510254s before space
Overlap #2(125): 'i' 0.0718371868133545s after space | 's' -0.051846981048584s before space
Overlap #3(142): 'a' 0.0400481224060059s after space | ',' 0.0528678894042969s before space
Overlap #4(156): 's' 0.0157890319824219s after space | 'l' 0.011929988861084s before space
Overlap #5(164): 'w' 0.0361480712890625s after space | 'n' 0.0147428512573242s before space
Overlap #6(168): 's' 0.0800540447235107s after space | 'e' 0.0120289325714111s before space
Overlap #7(187): 'k' 0.0483269691467285s after space | 'n' 0.0334451198577881s before space
Overlap #8(219): 'i' 0.0719208717346191s after space | ',' 0.0581741333007812s before space
Overlap #9(261): 's' 0.0680899620056152s after space | 'd' 0.0277819633483887s before space
Overlap #10(356): 'e' 0.0684828758239746s after space | 'n' 0.0167670249938965s before space
You can’t perform that action at this time.