Skip to content

Instantly share code, notes, and snippets.

@ryanmenzer
ryanmenzer / comment.ts
Last active August 10, 2017 18:50
A shared Angular component (in progress) for displaying supervisors' comments
import {Component, Input, OnInit} from '@angular/core';
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
import {User, Profile, Comment} from './models/';
import {ProfileService, AuthService, EmailService, UserService} from '../shared/services/';
@Component({
selector: 'comment',
templateUrl: './views/comment.html',
styleUrls: ['./styles/shared.scss'],
})
@ryanmenzer
ryanmenzer / index.html.erb
Last active December 24, 2015 18:29
from "Rails the Sinatra Way", deaf grandma not speaking to me!
<div class="container">
<h1>Deaf Grandma</h1>
<% if @grandma %>
<p>Grandma says: "<span id="grandma_says"><%= @grandma %></span>"</p>
<% end %>
<form action="/grandma" method="post">
Say something to Grandma:
<br>
<input type="text" name="user_input">
@ryanmenzer
ryanmenzer / zoo.js
Created September 26, 2013 16:21 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@ryanmenzer
ryanmenzer / index.html
Created September 26, 2013 15:29 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.