Skip to content

Instantly share code, notes, and snippets.

View ZackMattor's full-sized avatar

Zachary Mattor ZackMattor

View GitHub Profile
Website::Application.routes.draw do
root to: "home#index"
post 'contact' => 'home#contact'
get 'test' => 'test#index'
get ':page' => 'home#index'
end
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)
$(document).ready(init);
function init() {
VIDEO_SCREENSAVER.init(20000);
}
VIDEO_SCREENSAVER = {
timeout: 3000,
timer: null,
@ZackMattor
ZackMattor / screensaver.js
Created March 22, 2014 04:49
Give a page a screensaver!
$(document).ready(init);
function init() {
VIDEO_SCREENSAVER.init(20000);
}
VIDEO_SCREENSAVER = {
timeout: 3000,
timer: null,
//Is it bad to define prototyes like so...
var Apple = function(color) {
this.color = color;
};
Apple.prototype = {
setColor(color) {
this.color = color;
},
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
class BaseUploader < CarrierWave::Uploader::Base
def store_dir
"uploads/#{model.user.id}"
end
end
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'],
...
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
...
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$