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
#!/usr/bin/env python | |
# Google Keep "Takeout" to Markdown Converter | |
# This allows you to convert your Google Keep notes that are downloaded from | |
# Google's "Takeout" system. This works with NextCloud's Notes system. | |
from datetime import datetime | |
import base64 | |
import json | |
import os |
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
// A program I made after Calculus II class because I was | |
// itching to apply the idea of using series to estimate certain | |
// mathematical constants. I use the Leibniz series knowing that | |
// there are better, faster-converging series out there. | |
// | |
// This program currently uses only built-in C++ data types rather | |
// than arbitrary precision numbers. As such, there are likely errors | |
// introduced to the calculation inherent to that data representation. | |
// | |
// Program output assumes Unicode for Greek/mathematical characters |
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/python3 | |
import argparse | |
import os | |
import re | |
from pathvalidate import sanitize_filename | |
from canvasapi import Canvas | |
from canvasapi.course import Course | |
from canvasapi.exceptions import Unauthorized, ResourceDoesNotExist | |
from canvasapi.file import File |
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
SELECT wp_posts.post_title, COUNT(wp_posts.post_title) FROM wp_posts | |
GROUP BY wp_posts.post_title | |
HAVING COUNT(wp_posts.post_title) > 1 | |
ORDER BY COUNT(wp_posts.post_title) DESC |
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
var data = {}; | |
function normalizeUrl(/*string*/ mathIasPopupUrl) { | |
const url = new URL(mathIasPopupUrl); | |
// console.log(url.search); | |
const searchParams = new URLSearchParams(url.search); | |
// console.log(searchParams.get("url")); | |
return searchParams.get("url"); | |
} |
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
function sheetExists(sheetName) { | |
if (typeof sheetName !== "string") { | |
throw ("The sheetExists function requires string input.") | |
} | |
var allSheets = SpreadsheetApp.getActive().getSheets(); | |
var foundSheet = false; | |
var len = allSheets.length; | |
var chkThisIndex = 0; | |
while (!foundSheet && chkThisIndex < len) { | |
if (allSheets[chkThisIndex].getName() === sheetName) { |