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
namespace :spree do | |
desc "Export Products to CSV File" | |
task :export_products => :environment do | |
require 'fastercsv' | |
products = Product.find(:all) | |
puts "Exporting to #{RAILS_ROOT}/products.csv" | |
FasterCSV.open("#{RAILS_ROOT}/products.csv", "w") do |csv| | |
csv << ["id", "name", "description","sku", "master_price" ] |
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
Started GET "/assets/admin/all.js" for 127.0.0.1 at 2011-10-10 21:12:53 -0700 | |
Compiled admin/all.js (27ms) (pid 9577) | |
Compiled admin/spree_core.js (82ms) (pid 9577) | |
Compiled jquery.js (5ms) (pid 9577) | |
Compiled jquery_ujs.js (1ms) (pid 9577) | |
Compiled jquery-ui.js (4ms) (pid 9577) | |
Compiled jquery.cookie.js (0ms) (pid 9577) | |
Compiled jquery.tokeninput.js (0ms) (pid 9577) | |
Compiled jquery.delayedobserver.js (0ms) (pid 9577) | |
Compiled jquery.jstree/jquery.jstree.js (3ms) (pid 9577) |
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
openssl & openssl-devel | |
curses | |
fiddle | |
gdbm | |
dl/win32 | |
readline | |
INSTALLED |
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
gem install ruby-debug-base19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-head | |
gem install linecache19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-head |
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 file: guesser.m | |
% | |
% Programmer: Cameron Carroll | |
clc; | |
clear; | |
low = 1; | |
high = 100; | |
successful = 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
clear; | |
clc; | |
clf; | |
t=0:0.05:10; | |
z = (exp(-0.8.*t).*(0.33*cos(8.*t)-0.22*sin(8.*t))); | |
plot(t,z); | |
grid on; | |
xlabel('Time/sec'); |
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 File: loopvsvector.m | |
% | |
% Programmer: Cameron Carroll | |
% | |
% February 21-22, 2012 | |
% | |
% Purpose: | |
% --------- | |
% Solve and plot f(x) = x^2 - 3x + 2. Intended to show the | |
% differences between a vectorized approach to problem solving versus |
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
/* Java: Constructor example */ | |
/* example code from http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html */ | |
/* constructor method */ | |
public Bicycle(int startCadence, int startSpeed, int startGear) { | |
gear = startGear; | |
cadence = startCadence; | |
speed = startSpeed; | |
} |
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
/* Constructor Example (CPP) */ | |
/* Example code from http://www.horstmann.com/ccj2/ccjapp3.html */ | |
/* Declare a class with a default constructor, and a constructor accepting two double variables. */ | |
class Point | |
{ | |
public: | |
Point(); | |
Point(double xval, double yval); |
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 File: oilsim_project.m | |
% | |
% Exxon-Valdez Spill Simulation: Engr 120 Final Project | |
% Copyright (C) 2012 Cameron Carroll | |
% | |
% This program is free software: you can redistribute it and/or modify | |
% it under the terms of the GNU General Public License as published by | |
% the Free Software Foundation, either version 3 of the License, or | |
% (at your option) any later version. | |
% |
OlderNewer