This file contains 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
# This function will break up words for us. | |
def break_words(stuff) | |
words = stuff.split(' ') | |
end | |
# Sorts the words. | |
def sort_words(words) | |
words.sort | |
end |
This file contains 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
# Make mouse useful in copy mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# Allow mouse dragging to resize panes | |
set -g mouse-resize-pane on | |
# Allow mouse to select windows |
This file contains 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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme", | |
"detect_indentation": false, | |
"draw_indent_guides": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", |
This file contains 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
var productName = $(this).parent().parent().children('.product-name').text(); | |
var product = _.find(db.products, function(p) { return p.name === productName;}); | |
var isAdded = _.find(db.cart.products, function(p){ return p.name === productName; }) === undefined ? false : true; | |
if(db.customers.length) { | |
if(!db.cart.customer) { | |
db.cart.customer = _.find(db.customers, function(cust) { return cust.name === $('#select-customer').val();}); | |
} | |
if(!isAdded) { |
This file contains 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
class Manage::ProgressReportsDatagrid | |
include Datagrid | |
scope do | |
ProgressReport.joins(:project => :account).includes(:project => :account)#.where("projects.manager_id" => ) | |
end | |
# filter :name, :string do |val| |