Skip to content

Instantly share code, notes, and snippets.

Arthur Clemens ArthurClemens

Block or report user

Report or block ArthurClemens

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
@ArthurClemens
ArthurClemens / Spinaziesalade.md
Last active Jul 9, 2019
# Spinaziesalade met hibiscusdressing (of met cranberries)
View Spinaziesalade.md

Spinaziesalade met hibiscusdressing (of met cranberries)

Dit recept komt uit een Mexicaans kookboek, maar ik betwijfel of het authentiek Mexicaans is. Maar de smaak maakt alles goed. De combinatie van zure hibiscus (of cranberries) geeft een fijn contrast met de spinazie.

Gedroogde hibiscusbloemen kun je kopen als thee, bijvoorbeeld bij bol.com. Zelf had ik maar 20 gram en heb de rest aangevuld met cranberries. Ik denk dat elke combinatie (of 1 van beide) mogelijk is.

Ingrediënten

  • verse spinazie en eventueel rucola, samen ongeveer 400g
View gist:1f43faad696592639149c61902fd9721
https://flems.io/#0=N4IgtglgJlA2CmIBcBWATAOgOwEYA0IAzgMYBOA9rLMgNoAMedAugQGYQKG2gB2AhmERIQGABYAXMNQLFyPcfHnIQAHlgQeAawAEpeLAC8AHSLiAnp1Hx44k9tF7WxkBPEAHQkgD0XgK6F4DFY5cT4Ad3hCckEMWTAvPQQ+AMIvADcUbAw0L2JCVL4qWPy7DQUAc1IIc2dCUT4AZgAOABYAWlYeMAB5AGEARwAjABVYAHUASVgAKyaAGTNh6fIsHoBVAGVxacIAaV6Wt263AEVB-rMILAAlUlEAOSxfKAgATmuw0V3NAFkACTcaTmgz+AHFXhtSHYyOR8uQquUNM4+Dw5GYwOR-CYAHxGHh4lQvNLaaDOCjkWwgbEqLxE3E8EAEAIIYjiCByLjCHBIOggAC+eF4AiELnI5E0vjcGB2jJAsnkinEygAhKxfDxWeyeAAKHh4cQASmAJnIg2m8FZJgMBnMbng5FY2ngAA83PDxIQAGSekzqqDwdg8eBQEzKm1mO0O7QYqC+BAAfnE2pdbtIHrwen6vggem1Jkg4gcHBMB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0nd7xhHk+iOyMwvIudzig-v8AIofAAHYAEphGUDEwJTZQ1WIaNwyzHM8wLGBiwIMsYArNtEgKSFYBrSll1Xdc7y3Z8YHfMczzAC8JRXa8yM3PtUjSQdaG8YdRxAGiwERECABZBPoq8m2bdoRDSbcuSoni+LoygSKYiSmWk-t2KHNhqOoOdEURAA2ZFRO4MB6C3OAIAALxgGTdzk5FESgmDlA9aFdE6KtIXof0ADUTXjYQ1E4OxuE4OVLPoIRBGERF8CcmKQF4AQYuEPUtAwZsEuEbgDzIYJotmYUtAWGwyvwGw4XwNc7FkZEAAZGv+ELUqSvKoGCRADzbN
@ArthurClemens
ArthurClemens / multipart-upload.erl
Created Sep 17, 2016
Erlang: upload data using multipart/form-data
View multipart-upload.erl
%% Usage:
%% upload_request(<<"site.com/api/upload">>, <<"path/to/file.png">>, <<"upload">>, <<"image/png">>, [], <<"some-token">>)
%%
%% Usage with RequestData:
%% Payload = [{upload_type, <<"user_picture">>}],
%% PayloadContent = jsx:encode(Payload),
%% RequestData = [
%% {<<"payload">>, PayloadContent}
%% ]
%% upload_request(<<"site.com/api/upload">>, <<"path/to/file.png">>, <<"upload">>, <<"image/png">>, RequestData, <<"some-token">>)
@ArthurClemens
ArthurClemens / bundle.js
Created May 12, 2016
React JS hello world
View bundle.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, stati
View action-creators.es6.js
// app/redux/action-creators.es6.js
import {SET_ROUTE} from 'app/redux/action-types';
export const setRoute = (route) => {
return {
type: SET_ROUTE,
route
};
};
@ArthurClemens
ArthurClemens / github-repos.es6.js
Created Sep 23, 2015
Example of mithril-infinite and retrieving json data from a server
View github-repos.es6.js
'use strict';
import m from 'mithril';
import infinite from 'mithril-infinite';
const item = (data) => {
return m('.item',
{
style: {
background: '#eee',
@ArthurClemens
ArthurClemens / plural
Created Jun 12, 2015
Plural rule parser
View plural
/*
This code uses a regular expression to make the json safer.
An potentially safer alternative is https://github.com/joewalnes/filtrex (untested) at the cost of 130Kb.
Can be used for example with this JSON structure:
{
"_meta_po_header": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",
"COLLECTION_CONTENTS[0]": "Kolekcja zawiera %@ przepis.",
"COLLECTION_CONTENTS[1]": "Kolekcja zawiera %@ przepisy.",
"COLLECTION_CONTENTS[2]": "Kolekcja zawiera %@ przepisów."
@ArthurClemens
ArthurClemens / gist:1b06a661c14bdb369f7c
Last active Mar 19, 2016
Mithril simple router wrapper
View gist:1b06a661c14bdb369f7c
var router = function(component, name) {
return {
controller: function() {
// Do something generic like calling Google Analytics from here
console.log("router", name);
return new component.controller();
},
view: component.view
};
};
You can’t perform that action at this time.