Skip to content

Instantly share code, notes, and snippets.

View SrNightmare09's full-sized avatar
🐢
tortis

SrNightmare09 SrNightmare09

🐢
tortis
View GitHub Profile
@SrNightmare09
SrNightmare09 / opengl_triangle.cpp
Created July 7, 2023 00:50
A simple OpenGL program to render a triangle using shaders. Use this program to check if your OpenGL has been setup properly.
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow *window);
// settings
const unsigned int SCR_WIDTH = 800;
@SrNightmare09
SrNightmare09 / random_num.cpp
Last active June 24, 2023 20:41
A simple C++ code snippet to generate a random number
#include <iostream>
#include <random>
int main() {
std::random_device rd;
std::mt19937 gen(rd());
int upper = 10;
int lower = 1;
@SrNightmare09
SrNightmare09 / coinmarketcap-api.md
Last active July 4, 2024 20:12
Using the CoinMarketCap API: A Beginner's Guide

Using the CoinMarketCap API: A Beginner's Guide

CoinMarketCap is the world's most-referenced price-tracking website for crypto assets in the rapidly growing cryptocurrency space. Its mission is to make crypto discoverable and efficient globally by empowering retail users with unbiased, high quality and accurate information

In this guide, we will break down the process of leveraging the CoinMarketCap API to seamlessly integrate real-time crptocurrency data in your applications or projects.

While the examples in this blog primarily utilize Python code, it's important to note that the API can be utilized with various programming languages. To explore further, click here.