Skip to content

Instantly share code, notes, and snippets.

@kranfix
kranfix / inheritance_issue_example.dart
Created March 21, 2020 22:51
Dart: Inheritance issues
// Reference: https://talks.golang.org/2014/go4java.slide#41
void main() {
RunCounter runner = RunCounter("my runner");
List<Task> tasks = [Task("one"), Task("two"), Task("three")];
runner.runAll(tasks);
print("${runner.name} ran ${runner.count} tasks");
}
@kranfix
kranfix / Makefile
Created October 5, 2017 20:34 — forked from border/Makefile
json example in golang
include $(GOROOT)/src/Make.inc
GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
all:
$(GC) jsontest.go
$(LD) -o jsontest.out jsontest.$O
format:
$(GOFMT) -w jsontest.go
@kranfix
kranfix / slider_or_carousel.html
Created March 16, 2016 03:54
Code with troubles using materializecss and angular.js