Skip to content

Instantly share code, notes, and snippets.

View bdanin's full-sized avatar

Brian Danin bdanin

  • Seattle
View GitHub Profile
@bdanin
bdanin / gist:8d02292b306b92cf8d50f6f2997fdbeb
Created August 2, 2023 18:47
ddev debug test output (Aug 2023)
ddev debug test [11:44:04]
Running bash [-c /tmp/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project clientus: [/home/username/Sites/client/clientus-drupal/.ddev/config.yaml /home/username/Sites/client/clientus-drupal/.ddev/config.multisite.yaml]
name: clientus
type: drupal9
docroot: docroot
php_version: 8.1
webserver_type: apache-fpm
webimage: ddev/ddev-webserver:v1.22.0
@bdanin
bdanin / PlaneteerZoom.html
Last active September 20, 2020 21:27
HTML for the WordPress site, PlaneteerMovement.com
<!-- Moment JS CDN link. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.28.0/moment.min.js"></script>
<!-- Custom jQuery. -->
<script>
$ = jQuery.noConflict();
const now = new Date();
const days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
const months = ['January','February','March','April','May','June','July','August','September','October','November','December'];
callTimeOffset = moment().format("Z");
@bdanin
bdanin / my_theme.info.yml
Last active June 5, 2019 03:55
Adding JS to Drupal 8 Theme with .once()
name: My Theme
type: theme
base theme: adminimal_theme
description: 'Admin theme, sub-theme of Adminimal'
core: 8.x
libraries:
- my_theme/theme_base
@bdanin
bdanin / scss-compiler.php
Created April 12, 2019 16:28
Compiler written in PHP for SCSS files. Compile SASS with leafo/scssphp.
<?php
use Leafo\ScssPhp\Compiler;
require_once('vendor/leafo/scssphp/scss.inc.php');
$theme_root = 'docroot/themes/custom/THEME_NAME';
$scss_source = $theme_root . '/stylesheets';
$scss_contents = file_get_contents($scss_source . '/style.scss');