Skip to content

Instantly share code, notes, and snippets.

View calebjeffrey's full-sized avatar

Caleb Jeffrey calebjeffrey

  • Nike
  • Portland, OR
View GitHub Profile

Git Workflow & Contributing Guide

Project branches: Master and Feature branches Master is considered pristine: it should always be in a state that it could be deployed live as-is Development is done on feature branches Changes have pull requests opened against Master branch When features are complete, peer reviewed, and adhering to the definition of done. they should be merged into Master branch Product Manager reviews staged changes on Heroku If issues with staged changes, new Jira tickets are created to track this work If staged changes are accepted, staged changes are promoted to production in Heroku

Sample 90 day plan for developer

30 Days –

Learn as much as possible through company training and self-education about corporate policies, company culture, equipment and techniques. Complete all company applications. Establish relationships with assistants / support departments.

60 Days -

#Sample email for new hires

Hi Mike, here's my new hire contact details:

  • name: John Doe
  • phone: 555-555-5555
  • address: 123 Easy Street, Somewhere, CA 99999
  • personal email: me@someemail.com
  • business email: me@somecompany.com
  • title: Sr. Software Engineer - Frontend
@calebjeffrey
calebjeffrey / get-npm-package-version
Created June 23, 2018 15:59 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
echo $PACKAGE_VERSION
@calebjeffrey
calebjeffrey / gist:f48bf3d97813d46f316c
Last active August 29, 2015 14:22
Object-Fit polyfill for 'cover' with responsive goodness added for Marionette Behavior
var Marionette = require('backbone.marionette');
module.exports = app.Behaviors.ObjectFitPolyfill = Marionette.Behavior.extend({
onRender: function() {
this.selector = this.getOption('selector');
this.parentSelector = this.getOption('parentSelector');
this.ignoreBreakpoint = this.getOption('ignoreBreakpoint');
this.objectFit();
@calebjeffrey
calebjeffrey / rAF
Created July 4, 2014 01:25
window requestanimationframe
//request animation fill, credit to paul irish and peeps
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] || window[vendors[x]+'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame)