Skip to content

Instantly share code, notes, and snippets.

View ryanallen's full-sized avatar

Ryan Allen ryanallen

View GitHub Profile
@ryanallen
ryanallen / gist:0b607bc5d92b150aa279
Created December 22, 2014 20:13
Stay DRY by setting your SCSS image path locations as a variable.
$svg-path : "../../img/svg/";
body {
background: url(#{$svg-path}astronaut-ryan.svg) repeat-x fixed 0 0;
}
@ryanallen
ryanallen / Sass-Doesnt-Care.markdown
Last active August 29, 2015 14:12
Sass Doesn't Care
@ryanallen
ryanallen / gist:b6efa3f4ff016f1ae4e7
Created December 28, 2014 05:08
Nesting Properties in SCSS
.scene__adventure {
@include scene;
background: { /// : needs to replace the - for nested properties
color: $blue20;
image: url(#{$svg-path}space-adventure__stars.svg);
}
}
@ryanallen
ryanallen / gist:10d04ec21da0d44d5577
Last active August 29, 2015 14:13
Variable arguments in a Sass mixin or function
@mixin corners($corner...) {
border-radius: $corner;
}
.round-corners {@include corners(1rem 1em 1vw 1vmin);}
/// compiles to:
///
/// .round-corners {border-radius: 1rem 1em 1vw 1vmin;}
/// official docs: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#variable_arguments
@ryanallen
ryanallen / README.md
Created February 1, 2021 00:23 — forked from jednano/README.md
How to npm

How to npm

Before you can use the npm command, you'll need to install [Node.js][].

Installation

You can install [Node.js][] directly or to manage multiple versions, try Volta!

Local usage (recommended)

Aligning images

left alignment

This is the code you need to align images to the left:

@ryanallen
ryanallen / deforum_settings.txt
Created April 22, 2023 01:28 — forked from kabachuha/deforum_settings.txt
Deforum insertion + interpolation
{
"W": 512,
"H": 512,
"restore_faces": false,
"tiling": false,
"enable_hr": false,
"firstphase_width": 0,
"firstphase_height": 0,
"seed": 2329578955,
"sampler": "Euler a",
@ryanallen
ryanallen / concept-selection-matrix.md
Created August 3, 2023 18:28
Concept Selection Matrix

Concept selection matrix is for ranking solutions against the right problems. Use the table below or this google sheet.

Needs Grouped concept 1 Grouped concept 2
Need 1.1 (main or sub or indv)
Need 1.2
Need 2.1 (main or sub or indv)
Need 2.2
Cost (difficulty)
Wow factor
Elegance & beauty