When making a GtkBox in Vala you can be as formal/informal as you like
Formal
Gtk.Box box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
I know you mean Gtk.Box
var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
// The number needs to be parsed from a string | |
static int | |
read_int (GDataInputStream *stream) | |
{ | |
g_autoptr (GError) error = NULL; | |
g_autofree char *string = NULL; | |
gint64 num = -1; | |
string = g_data_input_stream_read_upto (stream, " \n", 2, NULL, NULL, &error); |
When making a GtkBox in Vala you can be as formal/informal as you like
Formal
Gtk.Box box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
I know you mean Gtk.Box
var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
register_shutdown_function(function() { | |
$e = error_get_last(); | |
if($e !== null) { | |
gc_mem_caches(); | |
$str = 'E(' . $e['type'] . '): ' . $e['message'] . PHP_EOL; | |
$line = 1; | |
$pad = strlen((string) $e['line'] + 2) + 3; | |
$fh = fopen($e['file'], 'r'); | |
while (($buffer = fgets($fh)) !== FALSE) { | |
if ($line >= $e['line'] - 2 && $line <= $e['line'] + 2) { |
Don't get me wrong the new GNOME Wiki theme is beautiful but rather bright.
Either add this as user CSS or add to Stylish
from microbit import * | |
import radio | |
uart.init() | |
radio.on() | |
uart.write("\r\nWelcome\r\n") | |
while True: | |
input = uart.readline() | |
if input is not None and len(input) > 0: | |
uart.write(str(input,'utf-8')) |