Skip to content

Instantly share code, notes, and snippets.

View gabrielgarciagava's full-sized avatar

Gabriel Gava gabrielgarciagava

View GitHub Profile
@gabrielgarciagava
gabrielgarciagava / main.dart
Last active June 21, 2023 08:59
Generics infer issue
void main() {
// This works fine
// final Base myImpl = Impl();
// This creates a compilation error in line 10
final myImpl = Impl();
final myGenerics = buildGenerics(myImpl);
print(myGenerics.value == myImpl);
print(foo(myGenerics, myImpl));
@gabrielgarciagava
gabrielgarciagava / robot.js
Created December 5, 2012 18:47
NOOOOOOBO
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
};
var girar = 1;
var count = 0;
var cw = 1;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
};
var girar = 1;
var count = 0;
var cw = 1;
@gabrielgarciagava
gabrielgarciagava / robot.js
Created December 4, 2012 15:31
RoboTosco
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
};
var girar = 1;
var count = 0;