- gemini://pulham.info/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <termios.h> | |
int main(int argc, char ** argv) { | |
int fd; | |
// Open the Port. We want read/write, no "controlling tty" status, and open it no matter what state DCD is in |
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
int main() { | |
struct dirent **namelist; | |
int nf; | |
char dev[20]="tun0"; | |
char setup[40], utkommando[60]; | |
unsigned char inbuf[2000]; | |
unsigned char outbuf[2000]; | |
int fd; | |
int fd2; | |
FILE *fil; |
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
$ clang table.c -std=c99 -ggdb | |
table.c:17:17: warning: incompatible pointer types initializing 'int *(*)(int *)' with an expression of type 'int *(*[2])(int *)' [-Wincompatible-pointer-types] | |
for (int* (*manip)(int*) = manipulators; manip++; manip != NULL){ | |
^ ~~~~~~~~~~~~ | |
table.c:17:61: warning: inequality comparison result unused [-Wunused-comparison] | |
for (int* (*manip)(int*) = manipulators; manip++; manip != NULL){ | |
~~~~~~^~~~~~~ | |
table.c:17:61: note: use '|=' to turn this inequality comparison into an or-assignment | |
for (int* (*manip)(int*) = manipulators; manip++; manip != NULL){ | |
^~ |
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
clang -std=c11 -Wall -ggdb -c main.c -o main.o | |
main.c:30:18: warning: incompatible pointer types initializing 'node *(*)(node *)' with an expression of type 'node *(*[])(node *)' [-Wincompatible-pointer-types] | |
for (node* (*optimisation)(node*) = optimisations; optimisation++; optimisation != NULL){ | |
^ ~~~~~~~~~~~~~ | |
main.c:30:85: warning: inequality comparison result unused [-Wunused-comparison] | |
for (node* (*optimisation)(node*) = optimisations; optimisation++; optimisation != NULL){ | |
~~~~~~~~~~~~~^~~~~~~ | |
main.c:30:85: note: use '|=' to turn this inequality comparison into an or-assignment | |
for (node* (*optimisation)(node*) = optimisations; optimisation++; optimisation != NULL){ | |
^~ |
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
program | |
: bf[B] { *sequence = addNode(*sequence, $B); } | |
| program bf[B] { *sequence = addNode(*sequence, $B); } | |
; | |
bf | |
: TOKEN_ADD { $$ = createArithmetic(1); } | |
| TOKEN_SUB { $$ = createArithmetic(-1); } | |
| TOKEN_LEFT { $$ = createNavigation(false); } | |
| TOKEN_RIGHT { $$ = createNavigation(true); } |
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 "program_sequence.h" | |
#include "bf.parse.h" | |
#include "bf.lex.h" | |
int yyerror(node* *sequence, yyscan_t scanner, const char *msg) { | |
printf("Aaa: %s\n", msg); | |
return 0; | |
} | |
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
/* Copyright (c) 2007 Atmel Corporation | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright |
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
int speed = 0; | |
char speed_str[5]; | |
void setup() { | |
} | |
void loop() { |
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
Compiling scraper-rust v0.1.0 (file:///home/gareth/development/rsstool/ingesters/scraper-rust) | |
error[E0277]: the trait bound `select::document::Document: std::convert::From<&std::string::String>` is not satisfied | |
--> src/main.rs:23:15 | |
| | |
23 | let dom = Document::from(&body); | |
| ^^^^^^^^^^^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `select::document::Document` | |
| | |
= help: the following implementations were found: | |
<select::document::Document as std::convert::From<tendril::tendril::Tendril<tendril::fmt::UTF8>>> | |
<select::document::Document as std::convert::From<&'a str>> |