Driver Intel, supprimer les autres si ils ont été ajoutés
# pacman -S xf86-video-intel xf86-input-synaptics
| // Preparation for method 1 | |
| use benchmark; | |
| print("Method 1, preparation start."); | |
| db.col.ensureIndex( { random_point: '2d' } ); | |
| // This feels ugly... | |
| db.col.find().map(function(u) { | |
| db.col.update( |
| /* | |
| * A simple example of json string parsing with json-c. | |
| * | |
| * clang -Wall -g -I/usr/include/json-c/ -o json_parser json_parser.c -ljson-c | |
| */ | |
| #include <json.h> | |
| #include <stdio.h> | |
| int main() { | |
| struct json_object *jobj; |
| /* | |
| * Simple ncurses form example with fields that actually behaves like fields. | |
| * | |
| * How to run: | |
| * gcc -Wall -Werror -g -pedantic -o test fields_magic.c -lform -lncurses | |
| */ | |
| #include <ncurses/ncurses.h> | |
| #include <ncurses/form.h> | |
| #include <assert.h> | |
| #include <string.h> |
| /* | |
| * This is a simple example of va_list function in ncurses. | |
| * I use it to wrap mvwprintw() and print something in a footer. | |
| * | |
| * How to run: | |
| * gcc -o test va_list_ncurses.c -lncurses | |
| */ | |
| #include <ncurses.h> | |
| #include <stdarg.h> | |
| #include <stdio.h> |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include "popup.h" | |
| static WINDOW *win_body; | |
| static WINDOW *win_form; | |
| static WINDOW *win_menu; |
| /* | |
| * Very simple pop-up using ncurses form and menu library (not CDK). | |
| * | |
| * The buttons are made from items and the fields are made from... well fields. | |
| * | |
| * How to run: | |
| * gcc -o test -lmenu -lform -lncurses ncurses-simple-pop-up.c -g && ./test | |
| */ | |
| // Depending on your OS you might need to remove 'ncurses/' from the include path. |
| /* | |
| * This is a simple example of "scrolling" form with ncurses. | |
| * It use "page" to allow forms with more fields than your window can print. | |
| * | |
| * It prints a "label" (inactive field) and a regular field and let you | |
| * "scroll" pages of the form. | |
| * | |
| * How to compile: | |
| * gcc -o test scrolling_form.c -lform -lncurses | |
| */ |
| The Bewitched Hands - The laws of walls | |
| The Bewitched Hands - Thank you, goodbye, it's over | |
| Some Velvet Morning - How to start a revolution | |
| Ellie Goulding - Your Song | |
| Soma - Letters to unwrite | |
| Angus and Julia Stone - Big Jet Plane | |
| The Rolling Stones - Sympathy For The Devil | |
| The Strokes - Machu Picchu | |
| The Strokes - I'll Try Anything Once | |
| Bloc Party - Banquet |