Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
<html>
<head>
<title>work!</title>
</head>
<body>
<h1>Congratulations! </h1>
<p> This has worked.</p>
<script type="text/javascript">
<div class="category type-here">
<img src="categoryimage.jpg" />
<div>
<h3>Salads</h3>
<p>Served with roll, butter, & choice of dressing.</p>
<ul class="products">
<li>
<h3>Chicken Cobb $6.50</h3>
<p>Grilled Chicken, Bacon, Mozzarella, Lettuce, Tomatoes</p>
</li>
@thomasv314
thomasv314 / drupal7.make
Created August 17, 2012 14:07 — forked from pvhee/drupal7.make
Drupal 7 Make file
; Basic Drush Make file
;
; Usage:
; drush make --prepare-install drupal7.make
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all
; projects should be compatible with.
@thomasv314
thomasv314 / drupal7.make
Created August 17, 2012 14:07 — forked from pvhee/drupal7.make
Drupal 7 Make file
; Basic Drush Make file
;
; Usage:
; drush make --prepare-install drupal7.make
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all
; projects should be compatible with.
@thomasv314
thomasv314 / gist:3489805
Created August 27, 2012 15:59 — forked from acidtib/gist:3489766
explore view
<% @towns.each do |town| %>
<div>
<%= town.town %>
<% @postcards.each do |postcard| %>
<%= postcard.eat %>
<% end %>
@thomasv314
thomasv314 / explor.html.erb
Created August 27, 2012 15:59 — forked from acidtib/gist:3489766
explore view
<% @towns.each do |town| %>
<div>
<%= town.town %> -
<%= town.postcards.last.eat %>
</div>
<% end %>
@thomasv314
thomasv314 / home.html.erb
Created September 24, 2012 22:20 — forked from anonymous/home.html.erb
frontend_controller.rb
class FrontendController < ApplicationController
layout "frontend"
def home
@services = Service.all
end
end
@states = State.find(params[:id])
@towns = @states.towns.paginate(:page => params[:page], :per_page => 9).order("town")
@towns.each do |t|
t.postcards.last
t.postcards.count
end
end
@thomasv314
thomasv314 / check.js
Created October 8, 2012 14:09 — forked from acidtib/check.js
// JSON Array of Towns.. In Rails: <%= @towns = Town.all.to_json %>
var TOWNS = [
{ town: "Abbeville city", id: 1 },
{ town: "Adamsville city", id: 2 },
{ town: "Addison Town", id: 3 }
];
$(document).ready(function() {
$('#postcard_city').bind('change', updateStateValue);
INSERT INTO `facebooks` (`id`, `client_id`, `provider`, `uid`, `oauth_token`, `oauth_expires_at`, `created_at`, `updated_at`)
VALUES
(1, 1, 'facebook', '100004016931051', 'AAAFhSx2lxZCUBAFraQOqpXSWOEKopMChGFpl9PZBTLrbXGDI7V0CDqYtLLlk2cXH4Px90VEGHGWAi3M9LSNmCoZCIkUXgZB6Jxlh7MUTGRGcb8FGBK5A', '2012-10-10 20:00:00', '2012-10-09 21:25:46', '2012-10-10 18:20:37');