- Xerpa
- Umanni
- Globosat
- Nash
- Podium
- Trybe
- Solfácil
- Stone
- Genpay
- Ateliware
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
a |
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
package org.telegram.messenger.video; | |
import android.annotation.TargetApi; | |
import android.opengl.EGL14; | |
import android.opengl.EGLConfig; | |
import android.opengl.EGLContext; | |
import android.opengl.EGLDisplay; | |
import android.opengl.EGLExt; | |
import android.opengl.EGLSurface; | |
import android.view.Surface; |
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
#include <iostream> | |
#include <stack> | |
#include <set> | |
using namespace std; | |
struct comparator { | |
bool operator() (pair<int,int> x, pair<int,int> y){ | |
return x.second > y.second; | |
} |
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 Pato | |
def voar | |
puts "Pato voando" | |
end | |
end | |
class Aviao | |
def voar | |
puts "Avião voando" | |
end |
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 Retangulo | |
attr_accessor :largura, :altura | |
def initialize(l,a) | |
@largura = l | |
@altura = a | |
end | |
def +(other) | |
Retangulo.new(@largura + other.largura, @altura + other.altura) | |
end |
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 Animal | |
attr_accessor :especie, :nome, :sexo | |
def initialize(especie, nome, sexo) | |
@especie = especie | |
@nome = nome | |
@sexo = sexo | |
end | |
def to_s | |
"#{@nome}, sexo #{@sexo} da espécie #{@especie}" |
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
#Declarando Hash | |
pessoas = Hash.new | |
(0..4).each do |x| | |
puts"Digite o nome:" | |
nome = gets.chomp.to_sym | |
puts "Digite a idade:" | |
idade = gets.chomp.to_i | |
#Atribuindo valores ao hash | |
pessoas[nome] = idade; |
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
#Declaracao de vetor | |
nome = [] | |
idade = [] | |
#Estrutura de repeticao para solicitar 5 vezes nome e idade | |
(0..4).each do |x| | |
puts "Digite o nome:" | |
nome << gets.chomp | |
puts "Digite a idade" | |
idade.push(gets.chomp.to_i) |
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 Livro | |
attr_accessor :autor, :titulo, :paginas | |
def initialize(autor, titulo, paginas) | |
@autor = autor | |
@titulo = titulo | |
@paginas = paginas | |
end | |
def to_s | |
"#{@titulo}, por #{@autor}. #{paginas} páginas." |
NewerOlder