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
|root | |
|public/ (home of drupal install) | |
|drush-bkups | |
|fixtures (db dumps, legacy data to be imported) |
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
{ | |
"catalog_product_id":4, | |
"created_at":"2013-03-06T19:52:18Z", | |
"entity_type":"Printable", | |
"id":14, | |
"live":true, | |
"properties": { | |
"Quantity":[ | |
{ | |
"option_name":"250", |
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
# spec/models/post_spec.rb | |
require 'spec_helper' | |
describe Post do | |
let(:post) { Post.new } | |
describe 'basic attributes' do | |
it 'needs a title, content and name' do | |
post.title = 'post title' |
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://www.stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ */ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ |
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 Contact | |
delegate :vertical, :to => :campaign, :prefix => true | |
end | |
class Campaign | |
delegate :name, :to => :vertical, :prefix => true | |
end | |
contact = Contact.find(1) | |
camp = Campaign.find(2) |
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 :rubygems | |
gem 'rake' | |
gem 'sinatra', '~> 1.2.3' | |
gem 'shotgun', '~> 0.9' | |
gem 'haml', '~> 3.1.4' | |
# Sass & Compass | |
gem 'sass', '~> 3.1.12' | |
gem 'compass', '~> 0.11.6' |
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
<head profile="http://www.w3.org/1999/xhtml/vocab"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta property="og:country-name" content="México"> | |
<meta property="og:site_name" content="Cuauhtémoc Moctezuma"> | |
<meta content="Cuauhtémoc Moctezuma premia el hábito de la lectura" about="/es/cuauhtemoc-moctezuma-premia-el-habito-de-la-lectura" property="dc:title"> | |
<link rel="shortcut icon" href="http://www.cuamoc.com/sites/cuamoc.hechoendrupal.com/files/favicon.ico" type="image/vnd.microsoft.icon"> | |
<meta about="/es/cuauhtemoc-moctezuma-premia-el-habito-de-la-lectura" property="sioc:num_replies" content="0" datatype="xsd:integer"> | |
<meta property="og:url" content="http://www.cuamoc.com/es/cuauhtemoc-moctezuma-premia-el-habito-de-la-lectura"> | |
<meta property="og:image" content="http://www.cuamoc.com/sites/cuamoc.hechoendrupal.com/files/styles/thumbnail/public/blog/image/concurso_lectura.jpg"> | |
<link rel="canonical" href="/es/cuauhtemoc-moctezuma-premia-el-habito-de-la-lectura"> |
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
# ... gems | |
# para este demo, al guardar un registro, vía geocoder obtenía su geolocalizaicón | |
gem 'geocoder' | |
# Ruby API & DSL, with ActiveRecord/ActiveModel integration. | |
gem 'tire' | |
# elasticsearch requiere que el modelo a indexar soporte paginación, | |
# lo podemos lograr con will_paginate o kaminari (your choice) |
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
~/Documents/Apps/TangoSource/ctsteps-authorization-server [testing]$ rake cucumber | |
/Users/aantillon/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S bundle exec cucumber --profile default | |
Using the default profile... | |
Feature: Change password | |
Background: # features/change_password.feature:3 | |
Given a client # features/step_definitions/homepage_backrgound_steps.rb:2 | |
And I have an account # features/step_definitions/forgot_password_steps.rb:1 | |
execution expired (Timeout::Error) | |
/Users/aantillon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize' |
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
vagrant@lucid64:/vagrant$ ./manage.py syncdb --noinput | |
Traceback (most recent call last): | |
File "./manage.py", line 14, in <module> | |
execute_manager(settings) | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager | |
utility.execute() | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command | |
klass = load_command_class(app_name, subcommand) |