Skip to content

Instantly share code, notes, and snippets.

@qbatten
qbatten / roam_daily_to_noteplan.py
Last active January 31, 2022 13:44
Python script to rename your Roam daily notes to match Noteplan Calendar format.
'''
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:
@qbatten
qbatten / tictactoe.c
Created June 21, 2018 18:45
Tic Tac Toe - Quinn Batten
/*------------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 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
*/
#define _XOPEN_SOURCE
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <stdlib.h>
int main (void)