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
/* | |
Especificação dos predicados | |
*/ | |
/* | |
operações básicas | |
*/ | |
somasub :- | |
write('Digite um valor: '), nl, | |
read(N), |
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
module Work where | |
import System.IO | |
type Data = String | |
type Hora = String | |
type Compromisso = String | |
type Agenda = [(Data, Hora, Compromisso)] | |
agendaCompromisso = [("10/10/2012", "10:00", "Dentista"), ("17/10/2012", "14:00", "Reuniao Geral"), ("17/10/2012", "19:00", "Ingles"), ("18/10/2012", "14:00", "Reuniao Semanal"), ("19/10/2012", "20:00", "Ingles")] |
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
/* NOMES: BRUNO FLACH BOHN / CASSIO SCHAAB GHILARDI */ | |
/* | |
Especificação dos predicados | |
*/ | |
/* | |
operações básicas | |
*/ | |
somasub :- |
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 'mechanize' | |
require 'httparty' | |
require 'csv' | |
all_images = [] | |
a = Mechanize.new | |
p = a.get("http://flagcounter.com/countries.html") | |
all = p.root.css(".post > table").children().to_s.split("actbook/") |
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 'mechanize' | |
require 'httparty' | |
require 'csv' | |
all_images = [] | |
a = Mechanize.new | |
p = a.get("http://flagcounter.com/countries.html") | |
all = p.root.css(".post > table").children().to_s.split("actbook/") |
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 my.company.app | |
import net.scage.ScageScreenApp | |
import net.scage.ScageLib._ | |
import net.scage.support.{State, Vec} | |
import com.weiglewilczek.slf4s.Logger | |
import net.scage.support.tracer3.{TraceTrait, ScageTracer} | |
object Snake extends ScageScreenApp("Snake") { | |
private val log = Logger(this.getClass.getName) |
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 my.company.app | |
import net.scage.ScageScreenApp | |
import net.scage.ScageLib._ | |
import net.scage.support.{State, Vec} | |
import com.weiglewilczek.slf4s.Logger | |
import net.scage.support.tracer3.{TraceTrait, ScageTracer} | |
import net.scage.support.physics.ScagePhysics | |
import net.scage.support.physics.objects.{StaticLine, StaticBox, DynaBall} |
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
// classe Carro com os parâmetros separados por "," e seus tipos separados por ":" | |
class Carro(var valor: Float = 0, modelo: String, ano: Int){ | |
// definição do método a partir do operador "=" inline | |
def detalhes = printf("CARRO: " + modelo + "\nANO: " + ano + "\nVALOR: " + valor) | |
// tipo de retorno do método declarado no final da assinatura | |
def alterarValor(valor: Float): Float = { | |
this.valor = valor | |
return this.valor | |
} | |
} |
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
// classe Carro com os parâmetros separados por "," e seus tipos separados por ":" | |
class Carro(modelo: String, ano: Int, var valor: Float = 0){ | |
// definição do método a partir do operador "=" inline | |
def detalhes = printf("CARRO: " + modelo + "\nANO: " + ano + "\nVALOR: " + valor) | |
// tipo de retorno do método declarado no final da assinatura | |
def alterarValor(valor: Float): Float = { | |
this.valor = valor | |
return this.valor | |
} | |
} |
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
trait Swimmer { | |
def swim() = println("Swimming...") | |
} | |
abstract class Bird { | |
def fly() = println("Flying...") | |
} | |
class Duck extends Bird with Swimmer { | |
def talk() = println("Duck duck") |
OlderNewer