Skip to content

Instantly share code, notes, and snippets.

View lunelson's full-sized avatar

Lu Nelson lunelson

View GitHub Profile
@lunelson
lunelson / SassMeister-input.scss
Last active September 18, 2015 08:26
RESET mixin
// ----
// Sass (v3.3.14)
// Compass (v1.0.3)
// ----
@mixin width($span: 1 1, $options: ()) {
@include width-helper(map-merge((span: $span), $options)...);
}
@mixin width-helper($span: 1 1, $right: null, $left: null, $cycle: null, $out: null) {
@lunelson
lunelson / SassMeister-input-HTML.jade
Created July 21, 2015 07:43
Generated by SassMeister.com.
p.red red
p.orange orange
p.yellow yellow
p.green green
p.blue1 blue1
p.blue2 blue2
p.purple1 purple1
p.purple2 purple2
@lunelson
lunelson / SassMeister-input-HTML.jade
Created July 6, 2015 06:25
Generated by SassMeister.com.
p.red red
p.orange orange
p.yellow yellow
p.green green
p.blue1 blue1
p.blue2 blue2
p.purple1 purple1
p.purple2 purple2
@lunelson
lunelson / gsap-properties-cheat-sheet.md
Last active March 14, 2025 12:07
Greensock Properties Cheat Sheet

Greensock CSS properties Cheat Sheet

I wrote this as a reference for myself because some of the property names are non-obvious, and there are a number of relevant special properties, and there is no central concise listing of them all in GSAP Docs, other than (in longer form) on the CSSPlugin page.

Standard CSS properties

...are all supported, with hyphenated-names becoming camelCaseNames. Non-animatable properties are also supported but they will be set at the beginning of the tween.

Special mentions:

@lunelson
lunelson / SassMeister-input-HTML.jade
Last active August 29, 2015 14:23
Generated by SassMeister.com.
p.red red
p.orange orange
p.yellow yellow
p.green green
p.blue1 blue1
p.blue2 blue2
p.purple1 purple1
p.purple2 purple2
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
// theme mixin
@mixin theme(
// DEFAULTS
@lunelson
lunelson / SassMeister-input.scss
Created May 13, 2015 07:20
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
//Generator
@mixin theme-generator(
$post__title: "",
$post__subtitle: ""
) {
@lunelson
lunelson / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lunelson
lunelson / index.js
Created May 4, 2015 19:18
requirebin sketch
var ff = require('fixture-factory');
var chance = require('chance').Chance();
var user = {
firstName: 'name.firstName',
lastName: 'name.lastName',
effName: function(f){ return f.firstName + 'FUCK'; },
chancey: function() { return chance.string(); }
};
@lunelson
lunelson / index.js
Created May 4, 2015 16:47
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var genie = require('genie');
var customer, template;
template = {
customers: {
min: 2,
max: 4,