Skip to content

Instantly share code, notes, and snippets.

Ulrich Dangel mrud

Block or report user

Report or block mrud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View plot_votes.R
#!/usr/bin/Rscript
# Author: (c) Ulrich Dangel <uli@debian.org>
# License: BSD
library(getopt)
spec = matrix(c(
'help', 'h', 0, "logical", "Usage information",
'csv', 'i', 1, "character", "Input csv file",
'output', 'o', 1, "character", "output file (png)"
View c
*pdquot_freed_blocks = 0;
sbi = EXT3_SB(sb);
es = sbi->s_es;
if (block < le32_to_cpu(es->s_first_data_block) ||
block + count < block ||
block + count > le32_to_cpu(es->s_blocks_count)) {
ext3_error (sb, "ext3_free_blocks",
"Freeing blocks not in datazone - "
"block = "E3FSBLK", count = %lu", block, count);
goto error_return;
View foo.c
*pdquot_freed_blocks = 0;
sbi = EXT3_SB(sb);
es = sbi->s_es;
if (block < le32_to_cpu(es->s_first_data_block) ||
block + count < block ||
block + count > le32_to_cpu(es->s_blocks_count)) {
ext3_error (sb, "ext3_free_blocks",
"Freeing blocks not in datazone - "
"block = "E3FSBLK", count = %lu", block, count);
goto error_return;
View test.c
#include <stdio.h>
int main() {
int i=1;
int j=1;
printf("i : %d j : %d\n", i, j);
printf("i post : %d j pre: %d\n", i++, ++j);
printf("i : %d j : %d\n", i, j);
View test.c
#include <stdio.h>
typedef struct Tree {
int value;
struct Tree* left;
struct Tree* right;
} Tree;
You can’t perform that action at this time.