Skip to content

Instantly share code, notes, and snippets.

View andrelashley's full-sized avatar

André Lashley andrelashley

  • BC Provincial Government
  • Victoria, British Columbia
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NeedsAssessmentService.Models;
using System.IO;
using System.IO.Packaging;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
@andrelashley
andrelashley / after
Created April 13, 2013 23:05
Small issue with one of the exercises in the rails tutorial
it "should have the right links on the layout" do
visit root_path
click_link "About"
page.should have_selector 'title', text: full_title('About Us')
click_link "Help"
page.should # fill in
click_link "Contact"
page.should # fill in
click_link "Home"
page.should # fill in <-- fixed so you know what I mean!
<?php
class Objectives extends CI_Controller {
public function index()
{
$data = array();
$data['title'] = "List of Objectives";
package processes;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
package processes;
import java.util.Comparator;
import processes.Constants.*;
public class Process implements Comparable<Process> {
private String name;
private PRIORITIES priority;
private String desc;
package gui;
import audioplayer.AudioClipPlayer;
import audioplayer.AudioException;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
package boxoffice;
import boxoffice.db.BoxOfficeDB;
import boxoffice.db.DatabaseTimeoutException;
import java.sql.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
<%--
Document : CheckOutJSF
Created on : May 23, 2012, 9:14:57 PM
Author : andre
--%>
<%@page import="java.text.DecimalFormat"%>
<%@page import="store.ShopItem"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%--
Document : StartShoppingJSF
Created on : May 23, 2012, 7:54:35 PM
Author : andre
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
package boxoffice;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.Calendar;
import java.util.Date;