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 java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
public class InferenciaDeTiposEmJava { | |
// Inferência meia boca | |
List<Map<String, Integer>> a = new ArrayList<>(); | |
public static void main(final String[] args) { |
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
export PS1="\[\033[38m\]\u@\h\[\033[32m\] \w \[\033[31m\]\`git branch 2>/dev/null | grep \"^\*\" | sed -r \"s/\*\ (.*)/\(\1\)/\"\` \`git status --porcelain 2>/dev/null | tee >(grep -c \"^[A-Z] \") | tee >(grep -c \"^ [A-Z]\") | tee >(grep -c \"^??\") | tee >(grep -c \"^[A-Z][A-Z]\") | grep \"^[0-9]\" | tr \"\n\" \" \" | grep -v \"0 0 0 0 \"\`\[\033[37m\]$\[\033[00m\] " |
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
package aux | |
class BuilderTypeSafe { | |
type Sim | |
type Nao | |
class Pessoa | |
class Builder[TemNome, TemEndereco] { |
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
package aux | |
object Scaladores extends App { | |
implicit class AddOf(val num : Int) extends AnyVal { | |
def of[T <: MeasureUnit] = Value[T](num) | |
} | |
trait MeasureUnit | |
trait x[A <: MeasureUnit, B <: MeasureUnit] extends MeasureUnit |
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
Test cla |
OlderNewer