Skip to content

Instantly share code, notes, and snippets.

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": [
<?php
namespace Drupal\recipes_magazin\Plugin\migrate\source;
/**
* Extends the CSV migration to make it possible to import terms.
*
* @MigrateSource(
* id = "recipe_magazin__terms"
* )
class ContainerAwareLazyRouteFilter extends LazyRouteFilter {
use ContainerAwareTrait;
protected function createInstance($id) {
return $this->container->get($id);
}
}
abstract class LazyRouteFilter {
protected function createInstance($id);
}
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
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
@dawehner
dawehner / -
Created January 25, 2017 16:23
<?php
file_put_contents("/tmp/wtf3", "wtf");
assert('file_put_contents("/tmp/wtf2", "wtf");');
const button = this.state.valid ? (
<Button raised colored>Submit</Button>
) : (
<Button raised colored disabled>Submit</Button>
);
return (
<form onSubmit={this.handleSubmit}>
{ apiKeyField }
{ button }
</form>
Greek name English name
Holocene entirely new
Pleistocene most new
Pliocene more new
Oligocene few new
Miocene Less new
@dawehner
dawehner / -
Created December 13, 2016 14:49
name: Contact Storage Export
type: module
description: Provides a way to export Contact Form submissions to CSV.
# core: 8.x
package: Custom
dependencies:
- contact
- contact_storage
- csv_serialization
<script>
<!--//--><![CDATA[// ><!--
<!--//--><![CDATA[// ><!--
<!--//--><![CDATA[// ><!--
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;