Skip to content

Instantly share code, notes, and snippets.

View ColeTownsend's full-sized avatar

Cole Townsend ColeTownsend

View GitHub Profile
### Keybase proof
I hereby claim:
* I am coletownsend on github.
* I am twnsnd (https://keybase.io/twnsnd) on keybase.
* I have a public key ASDoDQ_3NKhq5f-ydlFAUplGglzXiQecP0xcD5bLatw75Qo
To claim this, I am signing this object:
var setWidthOfRow = function(item, index) {
var selector = `#miles-${index}`;
var width;
var itemDistance = item.distance;
var amountOfActivities = activities.length;
if (amountOfActivities < 7) {
activityNormalizer = (7 - amountOfActivities) / 2
} else {
activityNormalizer = 1;

alfred
fontprep
mongodb atext
framer-studio
paparazzi atom
gitx
screenhero goofy

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ColeTownsend
ColeTownsend / dribbble-card.jsx
Last active November 4, 2015 18:53
Latest Dribbble Shot (React)
var UserShot = React.createClass({
getInitialState: function() {
return {
username:'',
shots_url: ''
};
},
componentDidMount: function() {
import Foundation
let newSnow = 15
let currentWeatherType = "snow"
let temp = 32
enum NewSnowAmounts: Int {
case None, Little, Alot
}
@ColeTownsend
ColeTownsend / react.log
Created October 20, 2015 02:20
React Error Log
[Error] Warning: Quiz(...): No `render` method found on the returned component instance: you may have forgotten to define `render`, returned null/false from a stateless component, or tried to render an element whose type is a function that isn't a React component.
warning
mountComponent
ReactCompositeComponent_mountComponent
mountComponent
mountChildren
_createContentMarkup
mountComponent
mountComponent
mountComponent
@ColeTownsend
ColeTownsend / gulpfile.js
Last active August 29, 2015 14:27 — forked from martinwolf/gulpfile.js
Jekyll, Browsersync and Gulp
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
@ColeTownsend
ColeTownsend / gist:26b236669b0b23ab1b88
Created March 27, 2015 01:14
Brew, Gem, && NPM Updates.
# be sure to include your extra aliases. cheers to thoughtbot/laptop for this line below
# [[ -f ~/.aliases.local ]] && source ~/.aliases.local
alias update='brew update && brew upgrade && gem update && npm update -g && rbenv rehash && brew cleanup'