Skip to content

Instantly share code, notes, and snippets.

View BlakeWilliams's full-sized avatar
💭
building things, probably

Blake Williams BlakeWilliams

💭
building things, probably
View GitHub Profile
App.FoodController = Ember.ArrayController.extend({
needs: 'table',
tableBinding: 'controllers.table',
addFood: function(food) {
var table = this.get('table').get('content')
tabItems = table.get('tab.tabItems');
tabItems.createRecord({
food: food,
/*global App*/
window.App = Ember.Application.create();
// Router
App.Router.map(function() {
this.resource('inventory', function(){
this.route('review');
this.resource('vehicle', { path: '/vehicle/:stock_no' }, function(){
@BlakeWilliams
BlakeWilliams / new.php
Created November 13, 2012 03:28 — forked from Codercise/new.php
<?php
include('../../sqlconnection/config.php');
$business = array(
"name" => $_POST['name'],
"country" => $_POST['country'],
"email" => $_POST['email'],
"phone" => $_POST['phone'],
"website" => $_POST['website'],
"tagline" => $_POST['tagline'],
"category" => $_POST['category'],
@BlakeWilliams
BlakeWilliams / this thing
Created March 1, 2012 18:39 — forked from anonymous/this thing
this thing
<?php
session_start();
if (!isset($login)) {
header('Location: index.html');
}
?>
<body>
<iframe src="index.php"></iframe>
</body>
</html>
$("#nav li:not(.selected)").hover(
function () {
$('.selected').addClass("selectedHover");
},
function () {
$('.selected').removeClass("selectedHover");
}
);