Skip to content

Instantly share code, notes, and snippets.

@richardbenson
richardbenson / get-steam-screenshots.php
Last active August 11, 2023 17:26
Turn Steam screenshots into RSS feed
<?php
header("Content-Type: application/rss+xml; charset=utf-8");
error_reporting(E_ALL);
ini_set("display_errors", 0);
define('STEAM_USER', $_GET['u']);
define('LIST_URL', "http://steamcommunity.com/id/".STEAM_USER."/screenshots/?appid=0&sort=newestfirst&browsefilter=myfiles&view=grid");
include('extlib/ganon/ganon.php');
@leymannx
leymannx / Drupal8HorizontalTabs.php
Last active February 16, 2024 10:10
How to create horizontal tabs programmatically in Drupal 8, requires Field Group module
<?php
// How to create horizontal tabs programmatically in Drupal 8, requires Field Group module
$form = array();
$form['my_field'] = array(
'#type' => 'horizontal_tabs',
'#tree' => TRUE,
'#prefix' => '<div id="unique-wrapper">',
'#suffix' => '</div>',
);
$items = array(