http://libevent.org/
Tag Archives: library
Return a tuple consisting of the two numeric arguments converted to a common type
#!/usr/bin/python x = 10 y = 23.8 print coerce(x,y) $python coerce.py (10.0, 23.8) $python coerce.py (10.0, 23.8) $
PHPlot is a graph library for dynamic scientific charts and graphs
https://github.com/AJRepo/PHPlot
How to write a program using ncurses library to move cursor to a point on logical screen ?
#include <unistd.h> #include <stdlib.h> #include <curses.h> int main() { initscr(); move(5,15); printw(“%s”,”Hello World”); refresh(); sleep(2); endwin(); exit(EXIT_SUCCESS); }
line with cairo
/* Jeffrin Jose Licensed GPL v3 Copyright August 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include int main () { cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 800, 600); cairo_t *cr = cairo_create (surface); cairo_set_font_size (cr, 32.0); cairo_set_source_rgb (cr, 0, 0, 0); cairo_set_line_width(cr,1.0); cairo_move_to (cr, 10.0, 50.0); cairo_line_to(cr,20,300); cairo_stroke(cr); cairo_destroy (cr); cairo_surface_write_to_png (surface, “hello.png”); cairo_surface_destroy (surface); return 0; }
fc-scan
fc-scan scans file(s) recursively and prints out font pattern for each face found. http://www.freedesktop.org/wiki/Software/fontconfig