Skip to content

Instantly share code, notes, and snippets.

# Install native apps
# Usage: `./cask-install.sh`
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew cask install github
brew cask install dropbox
brew cask install slack
brew cask install google-chrome
@mixin bg-color($color, $darken) {
// local variables
$background-color: darken($color, $darken);
$lightness: lightness($background-color);
// calculate text color variable
@if $lightness < 50 {
$text-color: lighten($background-color, 15);
$background-color: desaturate($background-color, 7);
background: $background-color;
@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'
@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 / 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
import Foundation
let newSnow = 15
let currentWeatherType = "snow"
let temp = 32
enum NewSnowAmounts: Int {
case None, Little, Alot
}
@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() {
# 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 ->