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
sdf,asdf |
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
fdadflafd;l |
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
foo,bar |
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
{ "_id" : "XTVadL", "name" : "", "state" : "scoring", "playerIds" : [ "rafael", "marina", "opa", "thais" ], "stacks" : [ [ { "type" : "description", "value" : "Barco pirata" }, { "type" : "drawing", "value" : "{\"aspectRatio\":1.7804154302670623,\"strokes\":[{\"points\":[{\"x\":0.175,\"y\":0.4896142433234421},{\"x\":0.175,\"y\":0.49554896142433236},{\"x\":0.175,\"y\":0.5014836795252225},{\"x\":0.175,\"y\":0.5103857566765578},{\"x\":0.175,\"y\":0.516320474777448},{\"x\":0.175,\"y\":0.5281899109792285},{\"x\":0.175,\"y\":0.5341246290801187},{\"x\":0.175,\"y\":0.5400593471810089},{\"x\":0.175,\"y\":0.5489614243323442},{\"x\":0.175,\"y\":0.5578635014836796},{\"x\":0.175,\"y\":0.5608308605341247},{\"x\":0.175,\"y\":0.5667655786350149},{\"x\":0.175,\"y\":0.56973293768546},{\"x\":0.175,\"y\":0.5727002967359051},{\"x\":0.175,\"y\":0.5786350148367952},{\"x\":0.17666666666666667,\"y\":0.5816023738872403},{\"x\":0.17666666666666667,\"y\":0.5845697329376854},{\"x\":0.17833333333333334,\"y\":0.5905044510385756},{\"x\":0.1 |
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 Foo(object): | |
def __init__(self): | |
self._x = 0 | |
@property | |
def x(self): | |
return 1 / self._x | |
try: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
tr { | |
background-color: red; | |
height: 30px; | |
} | |
</style> | |
</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
app = Flask(__name__) | |
app.config.from_object('yourapplication.default_settings') | |
app.config.from_envvar('YOURAPPLICATION_SETTINGS') |
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
<% first_lawyer = @contact.lawyers.first %> | |
<h1 class="g-title">Contato: <%= first_lawyer.name %></h1> | |
<%= @contact.errors.messages %> <!-- prints {:sender_name=>["não pode ficar em branco"]} --> | |
<%= form_for(@contact) do |f| %> | |
<div class="g-form-label"> | |
Advogado: | |
</div> | |
<div class="g-block-div"> | |
<%= first_lawyer.name %> | |
</div> |
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 Lawyer < ActiveRecord::Base | |
def extracted? | |
!source.blank? | |
end | |
with_options :unless => :extracted? do |lawyer| | |
lawyer.validates_presence_of :oab, | |
:phones, | |
:address, |
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
<%= form_for @user do |f| %> | |
<%= f.label :email %><%= f.email_field :email %> | |
.... | |
<% @user.lawyers.each do |lawyer| %> | |
<%= f.fields_for :lawyers, lawyer do |lf| %> | |
<%= lf.label :name, "Nome: " %><%= lf.text_field :name %> | |
<!-- Everything is working fine so far. However, I can get this to work. A lawyer can have many services: --> | |
<% Service.all.each do |service| %> | |
<%= check_box_tag ???, service.id, lawyer.services.include?(service) %> | |
<% end %> |
NewerOlder