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
@andrelashley
andrelashley / bi.txt
Created February 21, 2012 23:26
Business Intelligence
Business Intelligence
One of the great ironies of IT is that companies spend a lot of time amassing terrific amounts of data which they then largely under-utilize fir decision making purposes.
Has emerged as a powerful tool for business
BI applications are closely related to CRM strategy
BI Functions
Pie chart
Data analysis
Performance analysis
Information Dissemination
@andrelashley
andrelashley / measure.txt
Created February 22, 2012 00:02
Measurements
Why Measurement
- What you measure, you are liable to achieve
- We want our website to be “sticky”
Standard Definitions
Cart abandonment
Disregard church and attrition slide
No formulas
Important RFM analysis
Measure 3 dimensions in a cube
<?php
/*
Lab 8
controller.php
Andre Lashley (andre.lashley@gmail.com)
February 26, 2012
4 hours estimated completion time
6 hours actual completion time
This program runs user queries against a database using the MVC design pattern.
Visit http://deepblue.cs.camosun.bc.ca/~cst020/comp170/lab8/start.html to use it.
@andrelashley
andrelashley / gist:1935237
Created February 28, 2012 21:20
Pointers
& - the address of
* - the thing pointed at
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Emcee implements EmceeInterface {
private ThrowerInterface currentThrower;
private InstructorInterface currentVictim;
private List<Instructor> victims;
program lab5
;
; Usual author name, comments etc.
;
include '/home/dbarker/183/examples/Strings'
stack 20
data
;
; Any data you need
CREATE OR REPLACE TRIGGER audit_salary
AFTER
UPDATE OR
INSERT OR
DELETE OR
UPDATE OF salary
ON employees
FOR EACH ROW
BEGIN
IF UPDATING THEN
import java.sql.*;
/*
* Andre Lashley Comp155
*/
public class Lab16 {
public static void main(String[] args) throws SQLException {
String ename;
int empno, deptno, sal;
@andrelashley
andrelashley / lab1.sh
Created March 10, 2012 20:29
Download all the contents from the lab1 directory for Berkley cs61b
wget -r -l1 -H -t1 -nd -N -np http://www.cs.berkeley.edu/~jrs/61b/lab/lab1/
import java.beans.XMLDecoder;
import java.beans.XMLEncoder;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MovieDriver {