Skip to content

Instantly share code, notes, and snippets.

View pgr86's full-sized avatar

Patrick Gollmer pgr86

View GitHub Profile
@thesephist
thesephist / options.oak
Created November 14, 2022 22:09
Collection of useful Stable Diffusion prompt modifiers
{ name: 'Lighting', options: [
'golden hour, warm glow'
'blue hour, twilight, ISO12000'
'midday, direct lighting, overhead sunlight'
'overcast, whitebox, flat lighting, diffuse'
'dreamlike diffuse ethereal lighting'
'dramatic lighting, dramatic shadows, illumination'
'studio lighting, professional lighting, well-lit'
'flash photography'
'low-key lighting, dimly lit'
@adactio
adactio / Twig-critical-CSS-test.twig
Last active January 30, 2024 07:13
Twig template for inlining critical CSS on first visits.
{% set cssupdate = '20150309' %}
{% if _cookie.csscached == cssupdate %}
<link rel="stylesheet" href="/css/global-min.{{ cssupdate }}.css">
{% else %}
<style>
{% include 'global/critical.css' %}
</style>
<script>
(function (win, doc) {
'use strict';
@DanielHudson
DanielHudson / gist:a94e40e2e84001366fdd
Last active August 29, 2015 14:16
cdnify for laravel/elixir
<?php
if ( ! function_exists('cdnify'))
{
/**
* Adds a CDN to a path when a specified environment is active.
*
* @param string $path
* @param array $environment
* @param boole $elixir
@zenorocha
zenorocha / multiple-3rd-party-widgets.js
Last active October 21, 2025 21:29
Loading multiple 3rd party widgets asynchronously
(function() {
var script,
scripts = document.getElementsByTagName('script')[0];
function load(url) {
script = document.createElement('script');
script.async = true;
script.src = url;
scripts.parentNode.insertBefore(script, scripts);