Skip to content

Instantly share code, notes, and snippets.

@micahiriye
micahiriye / AdminInventoryRoute.js
Created January 14, 2016 06:17
Ceres: Admin Inventory Route
App.AdminInventoryRoute = Ember.Route.extend({
model: function() {
return this.store.find('inventory');
},
setupController: function(controller, model) {
controller.set('model', model);
//dependencies
@micahiriye
micahiriye / GCMNewTestimonialViewController.m
Created January 14, 2016 06:08
GoChek.me: New Testimonial View Controller
//
// REBRNewTestimonialViewController.m
// closing-table
//
// Created by Micah Iriye on 7/1/14.
// Copyright (c) 2014 Micah Iriye. All rights reserved.
//
#import "REBRNewTestimonialViewController.h"
#import "REBRQuestionsModel.h"
@micahiriye
micahiriye / ResultProcessor.java
Created January 14, 2016 05:54
CalSPEED: Result Processor
/*
Copyright (c) 2014, California State University Monterey Bay (CSUMB).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
@micahiriye
micahiriye / Objects.php
Last active January 14, 2016 03:10
MIMIC: Base Class for Nested Objects
<?php
abstract class Objects {
//NESTED TABLE functionality
//data should be in the form of stdClass
//new nodes should be referencing parent_id of primary_key
public function addNode($table = '', $data, $parent_id = 0) {
$tableLowercase = strtolower($table);
$primary_key = $tableLowercase . 'NestedId';
@micahiriye
micahiriye / SearchVideosController.php
Last active January 14, 2016 04:41
4-Legged Flix Kiosk System: Video Search Controller
<?php
class SearchVideosController extends BaseController
{
protected $baseDirectory;
//so we can show which file extensions are allowed to search...
protected $fileExtensions = array(
'mp4',
'mov'