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
require File.dirname(__FILE__) + '/../spec_helper' | |
# But uh oh, now all the tests look the same. | |
# We've factored it to the point where the code is hiding | |
# what the real intention is. Lets move the should_receive(:create_breadcrumb_list) | |
# stuff back into the it blocks so we can see the difference, and we | |
# should be done. | |
describe BreadcrumbsHelper do |
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
# http://www.mikeperham.com/2009/01/21/testing-multipart-upload-with-sinatra/ | |
module FiveRuns | |
module Multipart | |
class FileUpload | |
BOUNDARY_ROOT = 'B0UND~F0R~UPL0AD' | |
attr_reader :file, :params, :rack_opts | |
def initialize(params={}, rack_opts = {}) |
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
1 environment: development | |
2 chdir: /Users/gmcinnes/Documents/projects/Background | |
3 address: 0.0.0.0 | |
4 user: gmcinnes | |
5 group: staff | |
6 port: 8099 | |
7 max_conns: 1024 | |
8 timeout: 30 | |
9 max_persistent_conns: 512 | |
10 daemonize: false |
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
package org.ehealthinnovation.chartDataProviders | |
{ | |
import mx.charts.series.*; | |
public interface ChartDataProvider | |
{ | |
function initialize(result:Object):AbstractChartDataProvider |
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
f = File.open('sinatra.log', 'r') | |
hashes = [] | |
str = "" | |
toggle = false | |
f.each_line do |line| | |
if line.match(/ \{.*/) | |
toggle = true | |
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
module HoptoadNotifier | |
def logger | |
if defined?(Rails.logger) | |
Rails.logger | |
elsif defined?(RAILS_DEFAULT_LOGGER) | |
RAILS_DEFAULT_LOGGER | |
else | |
Logger.new(STDOUT) | |
end | |
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
#!/bin/bash | |
# Use the system ruby for now, if rvm is installed | |
if [ `which rvm` != "" ]; then | |
rvm use system | |
fi | |
# Install chef | |
sudo gem install chef |
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
echo "" | |
echo "TAMING YOUR LION" | |
echo "This may take a while. Don't panic" | |
echo "" | |
# Use the system ruby for now, if rvm is installed | |
if [ "`which rvm`" != "" ]; then | |
rvm use system | |
fi |
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
Grant-McInnes-MaRS-Corp:~/Developer/Library/Formula(master) gmcinnes$ brew install -vd cmake | |
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz | |
File already downloaded in /Users/gmcinnes/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/gmcinnes/Library/Caches/Homebrew/cmake-2.8.6.tar.gz | |
==> ./bootstrap --prefix=/Users/gmcinnes/Developer/Cellar/cmake/2.8.6 --system-libs --no-system-libarchive --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man | |
./bootstrap --prefix=/Users/gmcinnes/Developer/Cellar/cmake/2.8.6 --system-libs --no-system-libarchive --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man | |
--------------------------------------------- | |
CMake 2.8.6, Copyright 2000-2009 Kitware, Inc. | |
C compiler on this system is: /usr/bin/llvm-gcc -O3 -march=core2 -w -pipe | |
C++ compiler on this system is: /usr/bin/llvm-g++ -O3 -march=core2 -w -pipe |
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
root@jeos:/var/cache/chef/cookbooks/nagios/templates/default# chef-client -l debug | |
[Tue, 01 Nov 2011 10:09:45 -0400] INFO: *** Chef 0.10.4 *** | |
[Tue, 01 Nov 2011 10:09:45 -0400] DEBUG: Loading plugin os | |
[Tue, 01 Nov 2011 10:09:45 -0400] DEBUG: Loading plugin kernel | |
[Tue, 01 Nov 2011 10:09:45 -0400] DEBUG: Loading plugin ruby | |
[Tue, 01 Nov 2011 10:09:45 -0400] DEBUG: Loading plugin languages | |
[Tue, 01 Nov 2011 10:09:45 -0400] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts %Q(release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},target_cpu=#{::Config::CONFIG['target_cpu']},host_os=#{::Config::CONFIG['host_os']},target_vendor=#{::Config::CONFIG['target_vendor']},target_os=#{::Config::CONFIG['target_os']},platform=#{RUBY_PLATFORM},host=#{::Config::CONFIG['host']},host_cpu=#{::Config::CONFIG['host_cpu']},target=#{::Config::CONFIG['target']},version=#{RUBY_VERSION},bin_dir=#{::Config::CONFIG['bindir']},host_vendor=#{::Config::CONFIG['host_vend |
OlderNewer