This file contains hidden or 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 Medico < ActiveRecord::Base | |
| attr_accessible :ativo, :nome, :clinicas_attributes | |
| has_many :clinicas | |
| accepts_nested_attributes_for :clinicas | |
| end | 
  
    
      This file contains hidden or 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 Clinica < ActiveRecord::Base | |
| attr_accessible :ativo, :endereco, :medico_id | |
| belongs_to :medico | |
| end | 
  
    
      This file contains hidden or 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 MedicosController < ApplicationController | |
| def index | |
| render :text => 'Index' | |
| end | |
| def new | |
| @medico = Medico.new | |
| @medico.clinicas.build | |
| end | |
  
    
      This file contains hidden or 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 @medico, :url=>{:action => 'create'} do |f|%> | |
| <%=f.text_field :nome%> | |
| <br> | |
| <%=f.fields_for :clinicas do |c|%> | |
| <%= c.text_field :endereco %> | |
| <% end %> | |
| <%=f.submit%> | |
| <% end %> | 
  
    
      This file contains hidden or 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 CreateCities < ActiveRecord::Migration | |
| def change | |
| create_table :cities,:id => false do |t| | |
| t.integer :id | |
| t.string :nm | |
| t.decimal :lat | |
| t.decimal :lon | |
| t.string :countryCode | |
| t.timestamps | |
| end | 
  
    
      This file contains hidden or 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 City < ActiveRecord::Base | |
| # attr_accessible :title, :body | |
| def self.load_cities | |
| workbook = Spreadsheet.open('public/city_list.xls') | |
| worksheet = workbook.worksheet(0) | |
| row_index = 0 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?php | |
| for($i=0;$i < 100;$i++){ | |
| echo ($i - 100)*(-1)."<br>"; | |
| } | |
| ?> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | import sublime, sublime_plugin | |
| import datetime | |
| import subprocess | |
| import os | |
| class HelloCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| arquivo = self.view.file_name() | 
  
    
      This file contains hidden or 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
    
  
  
    
  | import sublime, sublime_plugin | |
| import datetime | |
| import subprocess | |
| import os | |
| class PhplocCommand(sublime_plugin.TextCommand): | |
| # Class created to consume Sebastian Bergmann's PHPLOC | |
| # from SublimeText | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:orientation="vertical" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" | |
| android:paddingRight="@dimen/activity_horizontal_margin" | |
| android:paddingTop="@dimen/activity_vertical_margin" | |
| android:paddingBottom="@dimen/activity_vertical_margin" | 
OlderNewer