Skip to content

Instantly share code, notes, and snippets.

View babsgosgens's full-sized avatar
🤡
Life’s a parade

Babs Gösgens babsgosgens

🤡
Life’s a parade
  • Rosmalen, Netherlands
View GitHub Profile
{"type":"rich","title":"Other Settings","description":"Global Stack Size Multiplier: x10\nFuel Consumption: x1.75\nCorpse Decomposition: 45 minutes\nItem Decomposition: 5 minutes\nCrop Spoil Time: x2 (half the default decay times)","color":16312092}
@babsgosgens
babsgosgens / jekyll_filter_images.html
Last active May 18, 2022 06:58
Use 'where_exp' to filter images from static assets – way shorter than building an array with a loop! See answer by Yuri P here: https://stackoverflow.com/questions/45926668/how-do-i-create-an-array-from-a-forloop
{% assign slider_images = "" | split: ',' %}
{% for image in site.static_files %}
{% if image.path contains page.image_namespace %}
{% assign slider_images = slider_images | push: image %}
{% endif %}
{% endfor %}
{% assign slider_images = site.static_files | where_exp: "item", "item.path contains page.image_namespace" %}
@babsgosgens
babsgosgens / article.json
Created October 5, 2018 15:05
article.json
{
"template": "layouts/item.html.twig",
"description": {
"en-GB": "Empty item page. Must only be used for single event, project, channel or article page."
},
"template_config": {
"attributes": {
"label": {
"en-GB": "Attributes"
},
@babsgosgens
babsgosgens / item.json
Created September 28, 2018 11:51
Empty item page. Must only be used for single event, project, channel or article page.
{
"template": "layouts/item.html.twig",
"description": {
"en-GB": "Empty item page. Must only be used for single event, project, channel or article page."
},
"template_config": {
"attributes": {
"label": {
"en-GB": "Attributes"
},
{
"name": {
"en-GB": "Single article"
},
"description": {
"en-GB": "Single article output – header and body"
},
"template": "containers/global/group/group.html.twig",
"template_config": {
"config": {
@babsgosgens
babsgosgens / global-page.json
Created September 27, 2018 11:48
Empty page
{
"template": "layouts/global.html.twig",
"description": {
"en-GB": "Empty page, a clean slate…"
},
"template_config": {
"attributes": {
"label": {
"en-GB": "Attributes"
},
@babsgosgens
babsgosgens / Hero.json
Created September 27, 2018 10:52 — forked from ItsReaSz/Hero.json
Hero with optional promotional slogan
{
"name": {
"en-GB": "Hero"
},
"description": {
"en-GB": "Hero with optional promotional slogan"
},
"template": "containers/media/hero/hero-slogan.html.twig",
"template_config": {
"model": {
@babsgosgens
babsgosgens / react-native navigation link example
Created September 11, 2018 11:46
Snippet for a link to a page in react-native
<svg class="is-narrative" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="icon-heart" viewBox="0 0 21 21" fill-rule="evenodd">
<title>Heart</title>
<path id="a" d="M19.137 11.078c-.474.653-1.328 1.653-1.9 2.223l-5.7 5.704c-.57.57-1.503.57-2.073 0L3.762 13.3c-.57-.57-1.425-1.57-1.9-2.222 0 0-.862-1.188-.862-2.742C1 5.39 3.39 3 6.336 3c1.516 0 2.885.632 3.856 1.647l.108.113c.11.13.29.13.4 0l.108-.113C11.778 3.632 13.148 3 14.664 3 17.61 3 20 5.39 20 8.336c0 1.554-.863 2.742-.863 2.742z"/>
</g>
<g id="icon-loop" viewBox="0 0 21 21" fill-rule="evenodd">
<title>Loop</title>
<path id="a" d="M18.518 16.254l-5.07-5.07c.517-.9.815-1.942.815-3.052 0-3.38-2.75-6.132-6.13-6.132C4.75 2 2 4.75 2 8.132c0 3.38 2.75 6.132 6.132 6.132 1.074 0 2.085-.278 2.962-.766l5.09 5.09c.32.322.744.483 1.167.483.424 0 .846-.16 1.168-.482.643-.644.643-1.69 0-2.334z"/>
</g>
<g id="icon-pen" viewBox="0 0 21 21" fill-rule="evenodd">
@babsgosgens
babsgosgens / Gulp build file
Created October 20, 2016 15:04
This is our standard build file. WIP.
/******************/
/** Basic Imports */
/******************/
var gulp = require('gulp'),
methods = {
minify: require('gulp-clean-css'),
postcss: require('gulp-postcss'),
imagemin: require('gulp-imagemin')
},
sass = require('gulp-sass'),