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
#define _XOPEN_SOURCE | |
#include <stdio.h> | |
#include <cs50.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
int main (void) |
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 program starts by asking the user to input a credit card number. Then it uses Luhn's algorithm to test | |
the validity of the card number, uses some simple tests to figure out what kind of credit | |
card it is (Visa, Amex, or Mastercard), and prints the results. | |
This was my submission (submitted on June 7th) for a problem set from the CS50 class on edX. | |
Here's a link to the text of the assignment: | |
https://docs.cs50.net/2018/x/psets/1/credit/credit.html | |
*/ |
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
/*------------Libraries------------*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
/*------------PRINT BOARD: prints the current board state------------*/ | |
/* | |
Input: the current board state, represented by a char* of length 10 (9char+\0), where spaces that have been played | |
in have an "X" or "O" (whichever player played there), and unplyed spaces have a lowercase letter between a |
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 script that tries to convert Roam Daily Notes to Noteplan Calendar | |
Notes. All it does is find files in the current directory that have a name | |
matching the Roam Daily Notes format (e.g. "August 8th, 2020.md"), rename them | |
to the Noteplan Calendar Notes format (YYYYMMDD, e.g. "20200808.md") and move | |
them into a subfolder of the current directory: 'renamed_daily_notes'. | |
I recommend you read this blog post before going any further: |