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
<ul> | |
{% for nav in top_menu %} | |
<li><a href="{{ nav.url }}">{{ nav.title }}</a></li> | |
{% endfor %} | |
</ul> |
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
<!-- { editable_area: Conteúdo, content, 0, 0 } --> | |
<!-- { unique_editable_area: Logomarca, brand, 360, 140 } --> | |
<!-- { unique_editable_area: Rodapé, footer, 0, 0 } --> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>{{ site_title }}</title> | |
{{ "//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc2/css/bootstrap.min.css" | stylesheet }} | |
</head> |
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 Assinatura < ActiveResource::Base | |
#self.site = "http://localhost:3001" | |
self.site = "http://assinaturas.iugu.com.br" | |
def self.api_key | |
'smallandsmart' | |
end | |
def self.find(*args) | |
options = args.last.is_a?(Hash) ? args.pop : {} |
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
// | |
// AppDelegate.m | |
// PayWithIugu | |
// | |
// Created by Patrick Negri on 09/08/12. | |
// Copyright (c) 2012 Iugu. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import "LockViewController.h" |
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 IuguDatasetComponent extends IuguBaseComponent | |
defaults: | |
presenterName: "iugu-dataset-component" | |
itemPresenterName: "iugu-dataset-record-component" | |
baseURL: "" | |
fields: "" | |
initialize: -> | |
super | |
_.bindAll @, 'render', 'addRecord' |
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
cd ~ | |
wget http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.12.0/sbt-launch.jar | |
sudo mv sbt-launch.jar /usr/local/bin/sbt-launch.jar | |
echo "java -Xmx512M -jar /usr/local/bin/sbt-launch.jar \"\$@\"" | sudo tee /usr/local/bin/sbt | |
sudo chmod +x /usr/local/bin/sbt |
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
urrentProfile = -> | |
id: null | |
name: null | |
email: null | |
locale: 'en' | |
active_account_id: null | |
active_account_name: null | |
logged_in: false | |
logout: ( callback ) -> | |
jQuery.ajax( |
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
# encoding: utf-8 | |
class Conta < ActiveRecord::Base | |
# include ActionView::Helpers::NumberHelper | |
validates_presence_of :nome | |
validates_inclusion_of :plano_id, :in => PLANOS.keys | |
validates_presence_of :time_zone | |
validates_presence_of :assinatura_id | |
validates_numericality_of :assinatura_id, :only_integer => true, :allow_nil => false, :greater_than => 0, :message => 'não foi possivel' |
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
[feature/criar_conta] patricknegri@~/Desenvolvimento/buzap_app_old/app/models: cat assinatura.rb | |
class Assinatura < ActiveResource::Base | |
#self.site = "http://localhost:3001" | |
self.site = "http://assinaturas.iugu.com.br" | |
def self.api_key | |
'smallandsmart' | |
end | |
def self.find(*args) |
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 'test_helper' | |
describe "Feature: Search on Google" do | |
before do | |
Capybara.run_server = false | |
Capybara.current_driver = :selenium | |
Capybara.app_host = 'http://www.google.com/' | |
end | |
it "must return results for futebol" do |