Skip to content

Instantly share code, notes, and snippets.

View jamiewilson's full-sized avatar

Jamie Wilson jamiewilson

View GitHub Profile
@jamiewilson
jamiewilson / sass-random-color.scss
Created March 17, 2016 17:02
Sass Random Color Generator
/* Create random color for brands */
/* http://geoffgraham.me/randomize-sass */
$s-min: 20;
$s-max: 70;
$l-min: 30;
$l-max: 90;
@for $i from 1 through 100 {
.card:nth-child(#{$i}) .card-brand-color {
@jamiewilson
jamiewilson / javascript-shorthand.md
Created January 13, 2016 21:52
The Shorthand for Commonly Used Code

Math on number variables

growCount ++; // increment by 1
shrinkCount --; // decrement by 1
growCout += 10; // add 10
shrinkCount -= 20; // subtract 20
moreSweets *= 5; // multiply by 5
lessApple /= 2; // divide by 2
@jamiewilson
jamiewilson / telescope-member-directory.md
Last active August 29, 2015 14:13
Creating a Member Directory for Telescope

I'm trying to create a Member Directory. This is a public list of all invited users with links back to their complete profiles.

First, I published a list of invited users:

// server/member_publication.js

Meteor.publish("members", function () {
  return Meteor.users.find({isInvited: true});
@jamiewilson
jamiewilson / naming-conventions.md
Last active August 29, 2015 14:13
How to name files responsibly

#File Naming Conventions

##Minimum

ClientName-Project-Title.ai 

Which would look like this:

Cultivar-Brochure-DrinkUp.ai