Skip to content

Instantly share code, notes, and snippets.

<ul>
{% for nav in top_menu %}
<li><a href="{{ nav.url }}">{{ nav.title }}</a></li>
{% endfor %}
</ul>
<!-- { 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>
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 : {}
//
// AppDelegate.m
// PayWithIugu
//
// Created by Patrick Negri on 09/08/12.
// Copyright (c) 2012 Iugu. All rights reserved.
//
#import "AppDelegate.h"
#import "LockViewController.h"
class IuguDatasetComponent extends IuguBaseComponent
defaults:
presenterName: "iugu-dataset-component"
itemPresenterName: "iugu-dataset-record-component"
baseURL: ""
fields: ""
initialize: ->
super
_.bindAll @, 'render', 'addRecord'
@pnegri
pnegri / gist:3855275
Created October 8, 2012 22:01
Install SBT and Scala
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
urrentProfile = ->
id: null
name: null
email: null
locale: 'en'
active_account_id: null
active_account_name: null
logged_in: false
logout: ( callback ) ->
jQuery.ajax(
# 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'
[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)
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