Skip to content

Instantly share code, notes, and snippets.

View kennethdavidbuck's full-sized avatar

Kenneth Buck kennethdavidbuck

  • Prince Edward Island
View GitHub Profile
/*
* convolve.c
*
*
* Created by Kenneth Buck on 12-11-27.
* Copyright 2012 University of Calgary. All rights reserved.
*
*/
/* Include Files */
@kennethdavidbuck
kennethdavidbuck / convolve_isa.c
Created November 30, 2012 02:53
convolve_isa.h
/*
* convolve_isa.c
*
*
* Created by Kenneth Buck on 12-11-27.
* Copyright 2012 University of Calgary. All rights reserved.
*
*/
/* Include Files */
@kennethdavidbuck
kennethdavidbuck / form.html.rb
Created August 16, 2012 15:00
Example of a premade form in RoR3.
<%= form_for(@user) do |f| %>
<% if @user.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
<ul>
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>