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
#include <stdio.h> | |
#include <string.h> | |
char *disemvowel(const char *str) | |
{ | |
char* result = malloc(strlen(str) + 1); | |
char vowels[] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}; | |
int counter = 0; | |
while(*(str) != '\0'){ | |
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
import pymongo | |
from datetime import date | |
# TODO: Add your connection string, database name and collection name below | |
my_client = pymongo.MongoClient("...") | |
my_db = my_client["..."] | |
my_collection = my_db["..."] | |
def filter_by_date(query_date): |
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
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
ROT13 is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. | |
ROT13 is an example of the Caesar cipher. | |
This function takes a string and returns the string ciphered with Rot13. |