Skip to content

Instantly share code, notes, and snippets.

View rachsmithcodes's full-sized avatar

Rachel Smith rachsmithcodes

View GitHub Profile
@rachsmithcodes
rachsmithcodes / gifmas-01.js
Created December 1, 2015 06:16
25 Days of Gifmas no. 1 (code for gifloopcoder)
function onGLC(glc) {
glc.loop();
glc.size(400, 400);
glc.setDuration(2.5);
// glc.setFPS(20);
glc.setMode("bounce");
glc.setEasing(true);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
@rachsmithcodes
rachsmithcodes / gifmas-02.js
Last active December 2, 2015 05:37
25 Days of Gifmas no. 2
function onGLC(glc) {
glc.loop();
glc.size(400, 400);
glc.setDuration(2.5);
// glc.setFPS(20);
glc.setMode("single");
glc.setEasing(false);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
@rachsmithcodes
rachsmithcodes / gifmas-03.js
Created December 4, 2015 06:10
25 Days of Christmas no. 3
function onGLC(glc) {
glc.loop();
glc.size(400, 400);
glc.setDuration(2.5);
// glc.setFPS(20);
glc.setMode("single");
glc.setEasing(false);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
@rachsmithcodes
rachsmithcodes / loop.js
Last active June 20, 2016 17:13
box loop
function onGLC(glc) {
glc.loop();
glc.size(400, 400);
glc.setDuration(2);
glc.setFPS(30);
glc.setMode('bounce');
glc.setEasing(true);
glc.styles.backgroundColor = '#eee';
var list = glc.renderList,
width = glc.w,
@rachsmithcodes
rachsmithcodes / get-style-property.js
Created July 22, 2016 00:46
triggering transitions
/*!
* getStyleProperty v1.0.4
* original by kangax
* http://perfectionkills.com/feature-testing-css-properties/
* MIT license
*/
/*jshint browser: true, strict: true, undef: true */
/*global define: false, exports: false, module: false */
@rachsmithcodes
rachsmithcodes / color-stuff-css-only.markdown
Created January 26, 2017 20:28
Color Stuff (CSS only)
@rachsmithcodes
rachsmithcodes / javascript.json
Last active June 15, 2017 23:28
New Container Component VSCode User Snippet
"New Container Component": {
"prefix": "ncc",
"body": [
"import { connect } from 'react-redux';",
"import ${1:name} from './${1:name}';",
"",
"const mapStateToProps = state => {",
" return {$2};",
"};",
"",
@rachsmithcodes
rachsmithcodes / javascript.json
Created June 15, 2017 23:17
New React Component VSCode User Snippet (render method only)
"New React Component": {
"prefix": "nrc",
"body": [
"import React, { Component } from 'react';",
"import PropTypes from 'prop-types';",
"",
"class ${1:name} extends Component {",
" render() {$2}",
"}",
"",