This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
desc "Hot-reload God configuration for the Resque worker" | |
task :reload_god_config do | |
sudo "god stop resque" | |
sudo "god load #{File.join(deploy_to, 'current', 'config', 'resque-' + rails_env + '.god')}" | |
sudo "god start resque" | |
end | |
end | |
# append to the bottom: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@cmon:/usr/local/rvm/gems/ruby-2.1.0@global/gems# ls | |
bundler-1.5.0 bundler-unload-1.0.2 executable-hooks-1.2.6 gem-wrappers-1.2.1 gem-wrappers-1.2.4 rake-10.1.0 rdoc-4.1.0 rubygems-bundler-1.4.2 rvm-1.11.3.8 test-unit-2.1.0.0 | |
But minitest is stored elsewhere: | |
root@cmon:/usr/local/rvm/gems/ruby-2.1.0@parts-inventory/gems# ls | |
minitest-4.7.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cap production deploy | |
INFO [8da38c5c] Running /usr/bin/env mkdir -p /tmp/parts-inventory/ on 107.170.25.140 | |
DEBUG [8da38c5c] Command: /usr/bin/env mkdir -p /tmp/parts-inventory/ | |
INFO [8da38c5c] Finished in 0.933 seconds with exit status 0 (successful). | |
DEBUG Uploading /usr/local/rvm/gems/ruby-2.1.0/gems/rvm1-capistrano3-1.2.2/script/rvm-auto.sh 0.0% | |
INFO Uploading /usr/local/rvm/gems/ruby-2.1.0/gems/rvm1-capistrano3-1.2.2/script/rvm-auto.sh 100.0% | |
INFO [813bdfae] Running /usr/bin/env chmod +x /tmp/parts-inventory/rvm-auto.sh on 107.170.25.140 | |
DEBUG [813bdfae] Command: /usr/bin/env chmod +x /tmp/parts-inventory/rvm-auto.sh | |
INFO [813bdfae] Finished in 0.083 seconds with exit status 0 (successful). | |
INFO [a071c752] Running /usr/bin/env mkdir -p /tmp/parts-inventory/ on 107.170.25.140 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Includes default deployment tasks | |
require 'capistrano/deploy' | |
require 'capistrano/rails' | |
# Includes tasks from other gems included in your Gemfile | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theme loaded | |
app ready | |
pre session restore time: 0.57652 | |
using gpu buffer for window | |
Loading dictionary Packages/Language - English/en_US.dic | |
using gamma: 2 (err: 6.9282) | |
using gpu buffer for window | |
using gpu buffer for window | |
using gpu buffer for window | |
startup cache, total files: 119 cache hits: 119 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="headerBodyType"> | |
SEDAN 4 DR | |
</div> |
NewerOlder