Skip to content

Instantly share code, notes, and snippets.

@jim-clark
jim-clark / activerecord-finders-and-methods.md
Last active August 29, 2015 14:24
ActiveModel Finders and Methods Lesson

presentation


ActiveRecord Methods and Finders


Objectives


  • Query a model using AR methods
@jim-clark
jim-clark / student-picker.html
Last active October 17, 2020 06:22
WDI-04 Student Picker
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pick-A-Student</title>
<style>
html, body {
font-family: helvetica;
font-weight: lighter;
font-size: 20px;
@jim-clark
jim-clark / timer.html
Last active October 17, 2020 06:21
WDI Lesson Timer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Countdown</title>
<style type="text/css">
html, body {
font-family: helvetica;
font-weight: lighter;
margin: 0;

This presentation is available here.


Realtime with socket.io


Realtime Chat Lab


This Lab is a Partner Exersise


Requirements

  • Using your knowledge from the previous lesson, build a realtime chat app that:
/*
**** ControllerAs Syntax ****
*/
/* ControllerAs with an anonymous function & array annotation */
angular
.module('myApp')
.controller('MainController', ['$http', function($http) {


Learning Objectives


  • Understand the Use Case for Custom Directives

  • Create a Custom Directive

@jim-clark
jim-clark / gulp.md
Last active February 24, 2017 14:12