Skip to content

Instantly share code, notes, and snippets.

View teejayvanslyke's full-sized avatar

Teejay VanSlyke teejayvanslyke

View GitHub Profile
ITU::LegacyCourseManagement::User.create(
:first_name => "Teejay",
:lastname => "Smellsbad",
:usertype => "student",
:email => "teejay.smellsbad@itu.edu",
:student_attributes => {
:firstname => "Teejay",
:lastname => "Smellsbad",
:email => "teejay.smellsbad@itu.edu"
}
<USAddress>
<Address1>4921 Frost St</Address1>
<Address2>Condo 8a</Address2>
<City>Fairfax</City>
<State>VA</State>
<PostalCode>22031</PostalCode>
<PostalRoutingCode>0000</PostalRoutingCode>
</USAddress>
<ForeignAddress>
<Address1>9334 Katongburg</Address1>
describe Sevis::Student do
subject { Sevis::Student.new }
context "when creating" do
context "and its first name is not specified" do
before { Sevis::Student.first_name = nil }
it { should_not be_valid }
specify { subject.errors.size.should_not be_empty }
end
a[href='/random'], a[href='/archive'] {
display: none;
}
.nav ol li {
list-style: none;
}
#upper div {
border-top: none;
@teejayvanslyke
teejayvanslyke / gist:277657
Created January 15, 2010 00:33
Base Radiant XHTML Layout
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title><r:title /></title>
<style type="text/css">/* <![CDATA[ */
/* Styles go here */
/* ]]> */</style>
int factorial(int n) {
if (n > 1) return n * factorial(n-1);
else return 1;
}
/*Adam VanSlyke
adamvans
11/18/2009
PA4
Ellen Cardone
A3
I have prepared this assignment on my own and understand the consequences of copying other people's work.
*/
Programming Project PA4 Fall 2009
Euler's method and the baking-oven problem
Your file must include a UBEAS230 box as described in the Guidelines. The name of your .cpp file must include your UBIT name and the assignment abbreviation (PA4) (for example: hstengerPA4.cpp). Upload your file before 5:00pm on the due date using the dropbox found on the front page of the website.
Problem statement:
The fuselage of the V-22/Osprey is made by Boeing Helicopter in Philadelphia. It is made from several large pieces of carbon fiber composite that must be baked in a pressurized oven. The heat-up time of the oven must be carefully controlled so that curing of the composite occurs evenly. Your assignment is to calculate the heat-up time for various fuselage parts, and to determine if they meet a given criteria. This program will use material covered through Chapter 2 and Section 4.9.
xdfhbpoij
Attribute VB_Name = "Module1"
Dim namepro As String
Dim nameguy As String
Public newmem As Variant
Sub ai()
'''''''''''''''''''''Declare Variables'''''''''''''
Dim say As Integer
Dim ran As Integer
Randomize
ran = Int((Rnd * 10) + 1)