Skip to content

Instantly share code, notes, and snippets.

View aastrong's full-sized avatar
😀
Happy working @promet

Aaron Armstrong aastrong

😀
Happy working @promet
View GitHub Profile
@mecmartini
mecmartini / render-reponsive-image-style-twig-drupal.html-twig
Created December 13, 2019 17:18
How to render responsive image style on Twig in Drupal
{% set imagePath = 'public://images/default.jpg' %}
{% set responsiveimagestyle = {
'#theme': 'responsive_image',
'#responsive_image_style_id': 'my_responsive_image_style_id',
'#uri': imagePath,
'#alt': 'my alt text',
'#attributes': { class: 'img-responsive' },
} %}
{{ responsiveimagestyle }}
@meain
meain / loading_messages.js
Last active September 16, 2024 23:00
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",