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