Skip to content

Instantly share code, notes, and snippets.

View napsy's full-sized avatar

Luka Napotnik napsy

View GitHub Profile
/*
* A quick example how to generate expression trees using
* the Go programming language.
*/
package main
import (
"strings"
"container/vector"
package main
import "fmt"
type Sortable interface {
Less(b Sortable) bool
}
type Person struct {
age, height int
package main
import "fmt"
type Sortable interface {
Less(b Sortable) bool
}
type Person struct {
age, height int
package main
func main() {
for i,v := range []string{"sss", "sffg", "gfdbf"} {
println("Ime " + string(i+48) + " = " + v[1:3])
}
}
#include <stdlib.h>
#include <gtk/gtk.h>
struct MainWindow {
GtkWidget *window;
gboolean draw;
GAsyncQueue *draw_queue;
cairo_surface_t *surface;
} *main_window;