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
delay100ms | |
pshx | |
ldx #60000 ; 2 E cycles | |
iloop psha ; 2 E cycles | |
pula ; 3 E cycles | |
psha ; 2 E cycles | |
pula ; 3 E cycles | |
psha ; 2 E cycles | |
pula ; 3 E cycles | |
psha ; 2 E cycles |
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
; Name: David Chapman | |
; Program: Lab 02 | |
; Version: 1.0 | |
; Date Started: 10/15/2014 | |
; Last Update: NA | |
; Copyright © 2014 | |
; | |
; Description: Implement a counter that increments the count when SWX is | |
; pressed and clears the count when SWY is pressed. The count | |
; is to be displayed via the four LEDs that were used in the |
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
( /etc/init.d/ntp stop | |
until ping -nq -c3 8.8.8.8; do | |
echo "Waiting for network..." | |
done | |
ntpdate -s time.nist.gov | |
/etc/init.d/ntp start )& |
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
Check for coverage amounts | |
dp1,wind only other structers = rcv | |
FLood - always no | |
Wind and Hail - always yes | |
earthquake - no | |
collapse - no | |
water damage - dp1 = no, dp2 = yes, wind only = no | |
theft - other coverage means contents = yes |
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
remote: http://rubygems.org/ | | |
specs: |
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
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'file_decrypter' | |
# Requires supporting ruby files with custom matchers and macros, etc, | |
# in spec/support/ and its subdirectories. | |
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} |
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
def show | |
if current_user | |
unless current_user.stocks? | |
redirect_to root_path, :notice => "You need to add some stocks first." | |
end | |
@stocks = current_user.stocks | |
else | |
redirect_to new_user_session_path | |
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
# As the method, I have tried :put and :update. | |
= button_to 'Update all quotes', admin_panel_path, :method => :put |
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
%h2 Admin Control Panel | |
%br/ | |
%div{ :style => "float:left;" } | |
%h3 Add stocks | |
%br/ | |
= form_tag(new_admin_stock_path, :method => :get) do | |
= label_tag(:symbol, "Symbols") | |
%br/ | |
= text_area_tag(:symbol, nil, :cols => 30, :rows => 10) | |
%br/ |
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
def index | |
if current_user.admin | |
@stocks = Stock.all | |
else | |
redirect_to root_path | |
flash[:error] = "You must be an administrator to access this page!" | |
end | |
end | |
OlderNewer