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
Website::Application.routes.draw do | |
root to: "home#index" | |
post 'contact' => 'home#contact' | |
get 'test' => 'test#index' | |
get ':page' => 'home#index' | |
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
Welcome to trevor's silly ass program! | |
-Menu- | |
1 - Test yourself! | |
2 - Change number of frets | |
3 - Change string setup | |
>>(user enters command here then goes into that state) |
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
$(document).ready(init); | |
function init() { | |
VIDEO_SCREENSAVER.init(20000); | |
} | |
VIDEO_SCREENSAVER = { | |
timeout: 3000, | |
timer: null, | |
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
$(document).ready(init); | |
function init() { | |
VIDEO_SCREENSAVER.init(20000); | |
} | |
VIDEO_SCREENSAVER = { | |
timeout: 3000, | |
timer: null, | |
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
//Is it bad to define prototyes like so... | |
var Apple = function(color) { | |
this.color = color; | |
}; | |
Apple.prototype = { | |
setColor(color) { | |
this.color = color; | |
}, |
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
C:\rails\gray-partridge-production>gem install rake -v 10.2.2 | |
ERROR: Could not find a valid gem 'rake' (= 10.2.2) in any repository | |
WARNING: Error fetching data: SocketError: getaddrinfo: No such host is known. | |
(http://rubygems.org/latest_specs.4.8.gz) | |
ERROR: Possible alternatives: rake | |
C:\rails\gray-partridge-production>bundle --version | |
Bundler version 1.3.4 | |
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 BaseUploader < CarrierWave::Uploader::Base | |
def store_dir | |
"uploads/#{model.user.id}" | |
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
CarrierWave.configure do |config| | |
if Rails.env.development? || Rails.env.test? | |
config.storage = :file | |
else | |
config.storage = :fog | |
config.fog_credentials = { | |
:provider => 'AWS', | |
:aws_access_key_id => ENV['S3_ACCESS'], | |
:aws_secret_access_key => ENV['S3_SECRET'], |
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
... | |
section "Recently updated content" do | |
table_for PaperTrail::Version do # Use PaperTrail::Version if this throws an error | |
column "Item" { |v| v.item } | |
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
Zacks-MacBook-Pro:baseflight zmattor$ make | |
%% drv_adc.c | |
make: arm-none-eabi-gcc: No such file or directory | |
make: *** [obj/NAZE/drv_adc.o] Error 1 | |
Zacks-MacBook-Pro:baseflight zmattor$ arm-none-eabi-gcc | |
arm-none-eabi-gcc: fatal error: no input files | |
compilation terminated. | |
Zacks-MacBook-Pro:baseflight zmattor$ |
OlderNewer