Skip to content

Instantly share code, notes, and snippets.

View jamiewilson's full-sized avatar

Jamie Wilson jamiewilson

View GitHub Profile
@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 
@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 / 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 / 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 / select-href-value
Created March 28, 2016 19:35
select all href values
Find: <a[^>]*href="\K[^"]*
@jamiewilson
jamiewilson / html-focus.md
Last active September 6, 2023 23:19
Focusable HTML Elements

CSS :focus Selector

The :focus selector is used to select the element that has focus. It is allowed on elements that accept keyboard events or other user inputs.

  • HTMLInputElement
  • HTMLSelectElement
  • HTMLTextAreaElement
  • HTMLAnchorElement
  • HTMLButtonElement
  • HTMLAreaElement
@jamiewilson
jamiewilson / inherited-css-properties.md
Created March 31, 2016 23:17
Inherited CSS Properties
  • border-collapse
  • border-spacing
  • caption-side
  • color
  • cursor
  • direction
  • empty-cells
  • font-family
  • font-size
  • font-style
@jamiewilson
jamiewilson / keymap.cson
Last active April 8, 2016 23:20
Nylas N1 Custom Keymap
# ~/.nylas/keymap.cson
# All entries in this file will override the defaults
# Use the same syntax as https://github.com/nylas/N1/blob/master/keymaps/base.cson
# More here: https://support.nylas.com/hc/en-us/articles/218222257-How-do-I-customize-my-keyboard-shortcuts-
'body':
'cmd-delete': 'application:archive-item'
'cmd-backspace': 'application:archive-item'