This file contains 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 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; |
This file contains 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
/* | |
* 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 file contains 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
/* | |
* 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 | |
*/ |
This file contains 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
# Add flow as a mix dep | |
# Killed by the OOM-killer | |
defmodule RipeTest do | |
use ExUnit.Case | |
doctest Ripe | |
# From https://ftp.ripe.net/ripe/dbase/split/ | |
@filename "./assets/ripe.db.inetnum.gz" | |
@outfile 'inetnum.dets' |
This file contains 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
#!/bin/sh | |
usage() { | |
echo "$0 -f <filename>" | |
echo | |
echo " required:" | |
echo " -f input filename" | |
echo | |
} |
This file contains 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> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#include "popup.h" | |
static WINDOW *win_body; | |
static WINDOW *win_form; | |
static WINDOW *win_menu; |
This file contains 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 <click/config.h> | |
#include <click/args.hh> | |
#include "DummyAnswer.hh" | |
#include "DummyProto.hh" | |
CLICK_DECLS | |
DummyAnswer::DummyAnswer() { }; | |
DummyAnswer::~DummyAnswer() { }; |
This file contains 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
/* | |
* 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 file contains 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
InfiniteSource(LIMIT 1) | |
-> UserElem() | |
-> Discard; |
This file contains 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
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 |
NewerOlder