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
/* | |
* Fibonacci squence between start and end term. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
int a = 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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef enum {FALSE, TRUE} BOOLEAN; | |
void usage(char *program) | |
{ | |
printf("Usage:\n"); | |
printf("\tExample: %s 0 50 0.6\n\n", program); | |
printf("First argument is moment. (kgm)\n"); |
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> | |
#define PROGRAM_NAME "dst" | |
#define AUTHOR "Daniel H. Hemmingsen" | |
typedef enum {FALSE, TRUE} BOOLEAN; | |
/* | |
* distance = speed * time |
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
# Making aliases for CLI to run flatpak sandboxes. | |
# I use zsh, but should be useable in bash as well. | |
# Requires find, basename | |
FLATPAK_ALIAS_PREFIX="fp" | |
FLATPAK_EXPORTS_PATH="/var/lib/flatpak/exports/bin" | |
FLATPAK_LIST=($(find $FLATPAK_EXPORTS_PATH -type l)) | |
for FLATPAK_EXEC in "${FLATPAK_LIST[@]}" |
OlderNewer