Skip to content

Instantly share code, notes, and snippets.

View davidhellmann's full-sized avatar
🤔
Focusing

David Hellmann davidhellmann

🤔
Focusing
View GitHub Profile
// When we give an element some ‘attention’.
@mixin attention() {
&:hover,
&:active,
&:focus {
@content;
}
}
{#
Social Links Array
Examples:
{{ dh_macros.dh_socialLinks([
'twitter',
'facebook',
'xing'
], true) }}
#}
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>David Hellmann - Designer &amp;amp; Developer</title>
<link>http://craft.davidhellmann.dev/</link>
<atom:link href="http://craft.davidhellmann.dev/feed/" rel="self" type="application/rss+xml" />
<description>David is a self-taught Digital Art Director, Designer &amp; Developer with over nine years work experience. Currently he is working for Red Bull in Salzburg.</description>
<language>en-us</language>
<pubDate>Sun, 26 Jun 2016 20:07:56 +0000</pubDate>
<lastBuildDate>Sun, 26 Jun 2016 20:07:56 +0000</lastBuildDate>
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>David Hellmann - Designer &amp;amp; Developer</title>
<link>https://davidhellmann.com/</link>
<atom:link href="https://davidhellmann.com/feed/" rel="self" type="application/rss+xml" />
<description>David is a self-taught Digital Art Director, Designer &amp; Developer with over nine years work experience. Currently he is working for Red Bull in Salzburg.</description>
<language>en-us</language>
<pubDate>Sun, 26 Jun 2016 20:12:44 +0000</pubDate>
<lastBuildDate>Sun, 26 Jun 2016 20:12:44 +0000</lastBuildDate>
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>{{ seomaticSiteMeta.siteSeoName }}</title>
<link>{{ siteUrl }}</link>
<atom:link href="{{ craft.request.url }}" rel="self" type="application/rss+xml" />
<description>{{ seomaticSiteMeta.siteSeoDescription }}</description>
<language>en-us</language>
<pubDate>{{ now.rss }}</pubDate>
<lastBuildDate>{{ now.rss }}</lastBuildDate>
@davidhellmann
davidhellmann / create_labels.sh
Created January 16, 2017 18:45 — forked from omegahm/create_labels.sh
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
@davidhellmann
davidhellmann / create_labels.sh
Created January 16, 2017 18:47 — forked from MatthiasKunnen/create_labels.sh
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
{% extends craft.request.isAjax ? 'layout/_ajaxLayout' : 'layout/_layout' %}
{% block content %}
{% set keywords = craft.request.getParam('query')|split('/') ?: false %}
{% set searchParam = keywords|join(' OR ') %}
{% set criteria = {
collections: ['bodies', 'entries'],
params: {
{% import '_macros/_macro-image.html' as macroImage %}
{{ macroImage.image(image, options = {
ratio: ratio
}) }}
@davidhellmann
davidhellmann / bling.js
Created July 12, 2017 18:16 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;