This file contains hidden or 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 2019 Błażej Sewera | |
* Licensed under MIT License | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node { |
This file contains hidden or 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
void append_song_head(Song **head_ref) { | |
/** | |
* User interface for appending a new node. | |
*/ | |
// Variables used in adding a new node | |
char artist[CHAR_LIMIT]; | |
char album[CHAR_LIMIT]; | |
char title[CHAR_LIMIT]; | |
char year[6]; | |
char duration_m[10]; |
This file contains hidden or 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/bash | |
WP_DIR=/home/jazz/Pictures/Wallpapers | |
DESK=desktop | |
BG_LIST=($WP_DIR/$DESK/*) | |
N=${#BG_LIST[@]} | |
((N=RANDOM%N)) | |
RAND_BG=$(basename ${BG_LIST[$N]}) |
NewerOlder