Skip to content

Instantly share code, notes, and snippets.

View OfTheDelmer's full-sized avatar

Delmer OfTheDelmer

View GitHub Profile

function add(a,b){ alert("Our second function is called") return a+b; }

function addTwoThings(a,b){
alert("First function is called")
return add(a,b);
}
<form>
<input type="text" value="HEllo">
</form>
<ul class="results">
</ul>
<script>
function doSomething(){
var todo = $.Deferred();
$.when("")
.then(function(){
setTimeout(function(){
alert("Our First Thing is Done!!")
}, 500)

Javascript/JQuery workout

Exercises for fun

ex_1.js

Using only js

Intro To Bootstrap

Style and UX

OBJECTIVE
To become familiar with the conceptual elements (grid, navs, navbar, ...) of Bootstrap, and use those tools to design a responsive page layout.

Params

Quick Refresher

We were going to quickly discuss params

When you create a form in rails you should see something like the following

@OfTheDelmer
OfTheDelmer / Lab_Outline.md
Last active December 27, 2015 09:39
Coffee Script Haters Lab

Coffee-Script lab

Hater's lab

Objective
To reinforce skills familiar in javascript regarding DOM interaction, and successfully translate them into Coffee-Script.

Animal Kingdom

A Classic Model For Inheritance

Objective
Utilize class inheritance in coffee-script for Animals
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// 1. We are going to make an ajax request.
// 2. We are going to GET some response TEXT.
// 3. We are going to append the TEXT to the DOM.
// Callback to wait for DOM load event
$(function(){