Skip to content

Instantly share code, notes, and snippets.

@atkolkma
atkolkma / gist:66a382bb25ecdd512f0a
Created September 3, 2014 20:31
Is this not shit?
angular.module('myApp',['emailParser'])
.controller('MyController',
['$scope', 'EmailParser',
function($scope, EmailParser) {
// Set up a watch
$scope.$watch('emailBody', function(body) {
if (body) {
$scope.previewText =
EmailParser.parse(body, {
to: $scope.to
@atkolkma
atkolkma / .bash_profile
Created May 6, 2015 14:39
Computer Setup
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
export PATH=/usr/local/bin:$PATH
export EDITOR='subl -w'
export PS1='\n\[\033[00;32m\]\[\033[01;37m$(~/.rvm/bin/rvm-prompt s v) \[\033[01;32m\w \[\033[01;36m`~/personalize/scripts/branch_display.bash` \[\033[01;31m`echo $RACK_ENV` \[\033[01;33m\n⚡  \[\033[00m\]'
source ~/.bashrc
@atkolkma
atkolkma / gist:4f60bab033c08eda58cd
Created August 15, 2015 14:17
Owl carousel demo
<html>
<head>
<link type="text/css" rel="stylesheet" href="file:///Users/adamkolkman/Desktop/test/owl.carousel.css">
<link type="text/css" rel="stylesheet" href="file:///Users/adamkolkman/Desktop/test/owl.theme.css">
<!-- <link type="text/css" rel="stylesheet" href="file:///Users/adamkolkman/Desktop/test/owl.transitions.css"> -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="file:///Users/adamkolkman/Desktop/test/owl.carousel.min.js"></script>
<script type="text/javascript" src="file:///Users/adamkolkman/Desktop/test/start.js"></script>
@atkolkma
atkolkma / gist:41a796d42ae1bba408d9
Last active August 29, 2015 14:27
Growing applications : refactoring for maintainability
# Let's pretend we're building a Rails app to handle issues (or tickets) coming in to
# our IT department. We'll consider how the complexity grows as our app needs to accomplish
# more things. Simultaneously, we'll look at how we can keep our app maintainable
# as new features force our app to grow.
# Let's start to build our app. Consider a feature request ticket.
# It will need to be submitted and it will need to be assigned to a developer.
#feature_ticket.rb