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 DailySales | |
include DMDataWarehouse::Fact | |
dimension date | |
dimension product | |
dimension customer | |
property :quantity_sold, Integer | |
property :unit_amount, Float | |
property :sales_total, Float | |
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 | |
echo "SliceHost Automated Setup for Ubuntu 9.10" | |
echo "Start from a fresh Ubuntu Slice Rebuild" | |
echo "Installing Nginx, PHP, php-fpm, MySQL & Wordpress" | |
INTERACTIVE_SETUP=1 | |
ROOT_PASS="root123" | |
USER_NAME="webadmin" |
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 'mongo' | |
require 'rails' | |
module Rails | |
class << self | |
def fifo_cache | |
FIFO_CACHE | |
end | |
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
# autoload concerns | |
module YourApp | |
class Application < Rails::Application | |
config.autoload_paths += %W( | |
#{config.root}/app/controllers/concerns | |
#{config.root}/app/models/concerns | |
) | |
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
first_vehicle: | |
price: 1234.93 | |
options: | | |
<%= [ StickerOption.new("floor mats"), StickerOption.new("Wipers") ].to_yaml.gsub(/\n/,"\n ") %> |
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 'modshogun' | |
require 'narray' | |
# For the purposes of the example this is a helper file that's bundled in | |
# the examples directory. It does some things like loading data and | |
# checking some of the math. It's not necessary to include in your own | |
# projects | |
require 'load' | |
# Here we're setting our parameters for the SVM |
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 Asset | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
field :name | |
field :type | |
field :extension | |
field :uploaded_by | |
mount_uploader :file, AssetUploader |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script> |
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 "#{Process.pid}" > #{Merb.root}/log/metrics_gen.pid` | |
`echo "#{Process.ppid}" > #{Merb.root}/log/metrics_gen.ppid` |
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 'dm-core' | |
require 'dm-mysql' | |
# Shows available options | |
class HasAllOption | |
include DataMapper::Resource | |
property :id, Serial | |
property :name, String |
OlderNewer