Skip to content

Instantly share code, notes, and snippets.

@huynhsamha
huynhsamha / example-multer-custom-error.js
Created March 17, 2020 15:36
Example for multer upload custom error handling
const express = require('express')
const multer = require('multer');
const app = express();
const storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, 'tmp')
},
filename: function (req, file, cb) {
@segebee
segebee / banks.html
Last active February 1, 2024 07:37
Nigerian Commercial Banks Select Drop down
<select class="form-control " id="bank">
<option selected>Choose</option>
<option value="access">Access Bank</option>
<option value="citibank">Citibank</option>
<option value="diamond">Diamond Bank</option>
<option value="ecobank">Ecobank</option>
<option value="fidelity">Fidelity Bank</option>
<option value="firstbank">First Bank</option>
<option value="fcmb">First City Monument Bank (FCMB)</option>
<option value="gtb">Guaranty Trust Bank (GTB)</option>
@gokulkrishh
gokulkrishh / media-query.css
Last active November 10, 2024 02:00
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */