This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "http://rubygems.org" | |
gem "rails", "3.0.3" gem "autotest", :group => [:test] | |
gem "autotest-rails", :group => [:test] | |
gem "bistro_car" | |
gem "cancan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shooting for 60 second video | |
Need about 15-25 minutes of raw footage | |
Location: Las Vegas Sign | |
My name is ... | |
VEGAS BABY!!! | |
I love Vegas because ... | |
Let me show you around. | |
Location: Amigo's Tacos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function OnLoad() { | |
try { | |
var distances = []; | |
if (google.loader.ClientLocation) { | |
for (var i in cities) { | |
lat1 = cities[i].lat; | |
lon1 = cities[i].lng; | |
dLat = (google.loader.ClientLocation.latitude - lat1).toRad(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ConvertDatabaseToUtf8 < ActiveRecord::Migration | |
def self.up | |
db_config = ActiveRecord::Base.connection.instance_values["config"] | |
db_name = db_config[:database] | |
db_user = db_config[:username] | |
db_pass = db_config[:password] || '' | |
latin1_dump = 'latin1_dump.sql' | |
utf8_dump = 'utf8_dump.sql' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".map-marker").each(function() { | |
var title = $(this).data("title") | |
var lat = $(this).data("lat") | |
var lng = $(this).data("lng") var marker = new google.maps.Marker({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Card | |
def self.random(count) | |
case ActiveRecord::Base.connection.adapter_name.downcase | |
when "mysql" | |
order("RAND()").limit(count) | |
else | |
order("RANDOM()").limit(count) | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% Rails.cache.write('pj_products', :expires => 12.hours) do %> | |
<% products = cj.product_search('keywords' => "", 'advertiser-ids' => '', 'serviceable-area' => '', 'currency' => '', 'records-per-page' => '')) %> | |
<% products.each do |product| %> | |
<%= product.inspect %> | |
<% end %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a rough draft. Straight from the notes I took during the first meeting. | |
TNR stands for Trap Nueter Return | |
They processed over 400 cats in the month of January. | |
The scope of the problem would require over 1000 cats to processed every week. That number would require a 2 million dollar annual budget. | |
Roles inside of the organization: | |
Trapper | |
Coordinators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require "_application.php"; | |
hydra_import_package("HydraDispatch"); | |
$d = new HydraDispatch(); | |
$d->dispatch("/", function($r) use ($d, $db) { | |
$result = $db->execute("SELECT (1 + 1) AS count"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
" Use pathogen to easily modify the runtime path to include all | |
" plugins under the ~/.vim/bundle directory | |
call pathogen#helptags() | |
call pathogen#runtime_append_all_bundles() | |
" change the mapleader from \ to , | |
let mapleader="," |