Skip to content

Instantly share code, notes, and snippets.

View josemartinez111's full-sized avatar
🎯
Focusing

Jose Martinez josemartinez111

🎯
Focusing
View GitHub Profile
@josemartinez111
josemartinez111 / amod-4-readme.md
Last active November 27, 2022 20:39
README for working with CRUD operations in MongoDB with pymongo

Module four CRUD assignment README

• A description of the purpose of the project:

The project’s purpose to demonstrate how to work with some of the crud functionality within MongoDB in relation with the Python programming language. In this particular initial project, we will only be using the first to letters of CRUD functions which to (CREATE) and (READ). Our testing will be done in Jupyter-Notebook which will showcase if our logic from our python script is functioning correctly and that our server is running within our python object AnimalShelter.


• A demonstration of how it works (its functional operations):

Let me brake down what tools I will be using. My IDE is DataSpell JetBrains which is an IDE specifically made for data science and jupyter-notebook integration right in the IDE. Which PyCharm does not. I began the project by creating a simple python project in a conda environment (Virtual Environment). With two files inside. A animal_shelter.py

Latex Cheat sheet 😉 Thank me later

Screen Shot 2022-03-09 at 12 08 48 PM

Screen Shot 2022-03-09 at 12 09 17 PM

Screen Shot 2022-03-09 at 12 09 34 PM

Screen Shot 2022-03-24 at 4 09 32 PM

@josemartinez111
josemartinez111 / BuilderMain.java
Last active November 27, 2021 03:07
A manual example of the builder pattern without Lombok 😑😫🔫🔥🚒🧯
public class BuilderMain {
public static void main(String[] args) {
Employee employee = new Employee.EmployeeBuilder("Cristiano", "Ronaldo", 33, 7)
.setPhone("0045-1234556")
.setAddress("Juventus")
.setMail("CR@Juventus.org").build();
}
}
@josemartinez111
josemartinez111 / helpers.cpp
Created November 17, 2021 16:35
C++ Helpers
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <algorithm>
#include <thread>
using namespace std::literals::chrono_literals;