Skip to content

Instantly share code, notes, and snippets.

@kbasye
kbasye / behavior.js
Created April 8, 2013 18:03
Behavior Drill: Grocery List
/*
* What are the objects in this exercise?
* What are their properties and methods?
* How do your objects interact with their respective DOM elements?
*/
function sum ()
{
var priceString = $('#grocery_list .item_price').last().text();
https://github.com/kbasye/oauthpractice
$(document).ready(function(){
$('form').submit(function(e){
e.preventDefault();
$('.loader').show();
// $('form').attr('disabled', 'disabled');
$('form').hide();
.container {
/*
If you have a block-level element of a certain width, margin: 0 auto;
will how you center it inside its parent container.
See: http://bluerobot.com/web/css/center1.html
Don't change the container width.
*/
margin: 0 0;
@kbasye
kbasye / blog.rb
Created March 15, 2013 17:52
Blog: Css is incomplete, error pages are generic, need to work on updating tags when editing
https://github.com/kbasye/blogger.git
ActiveRecord Associations
https://github.com/kbasye/ar-student-schema.git
# Active Record Student Schema
# --DB creation
# --Student model creation
# --Email, age, phone validation
https://github.com/kbasye/ar-student-schema.git