Skip to content

Instantly share code, notes, and snippets.

View victorekpo's full-sized avatar

Victor Ekpo victorekpo

View GitHub Profile
@victorekpo
victorekpo / pdf-charts-generator.js
Created August 25, 2023 03:13 — forked from ChemaCLi/pdf-charts-generator.js
Generate PDF with ChartJS and PDFKit
const fs = require('fs')
const tmp = require("tmp");
const PDFDocument = require('pdfkit');
const MemoryStream = require('memorystream');
const { ChartJSNodeCanvas } = require('chartjs-node-canvas');
export async function generatePDFWithCharts() {
// Sample chart with ChartJS
const chartJSNodeCanvas = new ChartJSNodeCanvas({ type: 'png', width: 800, height: 600 });
const configuration = {
@victorekpo
victorekpo / gitbash-npm-windows.md
Created August 16, 2023 10:31 — forked from kelsS/gitbash-npm-windows.md
Better way to use Git Bash and Node/NPM on Windows.
@victorekpo
victorekpo / docker-compose.yml
Created September 1, 2022 21:11 — forked from kanzitelli/docker-compose.yml
Docker Compose file with Traefik, Backend and MongoDB configured. For running locally.
version: '3'
services:
reverse-proxy:
image: traefik:v2.0
container_name: traefik
command: --api --providers.docker
ports:
- "6969:80"
- "6970:8080"
@victorekpo
victorekpo / .gitattributes
Created October 19, 2021 00:15 — forked from Yousha/.gitattributes
.gitattributes for C/C++ developers.
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf