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<stdio.h> | |
void print_char(char c, int num) | |
{ | |
if (num <= 0) | |
return; | |
printf("%c", c); | |
print_char(c, --num); |
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<stdio.h> | |
void print_char(char c, int num) | |
{ | |
if (num < 0) | |
return; | |
printf("%c", c); | |
print_char(c, --num); | |
} |
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<stdio.h> | |
void print_char(char c, int num) | |
{ | |
if (num < 0) | |
return; | |
printf("%c", c); | |
print_char(c, --num); |
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
void main(string[] args) { | |
Gtk.init (ref args); | |
Gdk.Window win = Gdk.get_default_root_window (); | |
win.add_filter(null, filter_func); | |
unowned X.Display display = Gdk.X11.get_default_xdisplay (); | |
display.grab_key (display.keysym_to_keycode('C'), |
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
class MyCellRenderer : Gtk.CellRenderer { | |
// icon property set by the tree column | |
public Gdk.Pixbuf icon { get; set; } | |
public string text { get; set; } | |
public int progress { get; set; } | |
public int Padding; | |
private Gtk.CellRendererPixbuf icon_renderer; | |
private Gtk.CellRendererText text_renderer; |
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 Container struct { | |
values []int | |
} | |
func (this *Container) Iter() <- chan int { | |
ch := make(chan 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" | |
"time" | |
"reflect" | |
) | |
func main() { | |
test, err := time.Parse( "2006-01-02T15:04:5-07:00", "2014-06-02T16:26:28.514048+00:00") |
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 ( | |
"encoding/json" | |
"net/http" | |
"net/url" | |
"io" | |
"io/ioutil" | |
"os" | |
) |
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
/* | |
Written by Akshay Shekher | |
to show how to use drag and drop in Gtk cleanly. | |
*/ | |
int main(string[] args) { | |
Gtk.init (ref 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
<body> | |
<script src="classes2.js"></script> | |
<script> | |
tri.module( | |
'pentagine.core' | |
).defines(function() { | |
this.price = 10; | |
this.getData = function() { | |
return this.price; | |
} |