Skip to content

Instantly share code, notes, and snippets.

View emmsdan's full-sized avatar
💫
. if you can you think? then I can build it...

Emmanuel Daniel emmsdan

💫
. if you can you think? then I can build it...
View GitHub Profile
@emmsdan
emmsdan / backend.js
Last active October 22, 2021 22:37
Basic things a backend nodejs Dev should know
// build any express app that shows backend skills
const skills = [
'deep database knowledge',
'deep security knowledge',
'deep testing (unit, integrated, and e2e)',
'worker_thread and clusters',
'networking'
]
@dctalbot
dctalbot / get_color.js
Created June 26, 2019 20:26
Get Common or "Dominant" Color from Image
drawImage = async img_path => {
let canvas = document.createElement("canvas");
canvas.src = img_path;
const context = canvas.getContext("2d");
const img = await loadImage(img_path);
canvas.width = img.width;
canvas.height = img.height;
context.drawImage(img, 0, 0);
@emmsdan
emmsdan / user.spec.js
Last active March 20, 2019 01:19
test if a user already exists
import chai from 'chai';
import chaiHttp from "chai-http";
import { app as server } from './app.js';
// configure chai to send/receive HTTP REQUEST
chai.use(chaiHttp);
describe("TDD for Users", () => {
after(() => {
server.close();
@emmsdan
emmsdan / README-Template.md
Created August 18, 2018 17:25 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@PurpleBooth
PurpleBooth / README-Template.md
Last active October 28, 2024 02:39
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites