Skip to content

Instantly share code, notes, and snippets.

View EntwistleOx's full-sized avatar
👽

Juan Díaz Ortega EntwistleOx

👽
  • https://www.zentagroup.com/
  • Santiago, Chile
View GitHub Profile
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active May 24, 2024 21:53
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@joseluisq
joseluisq / add_two_times.js
Last active April 16, 2024 07:06
Add two string time values (HH:mm:ss) with javascript
/**
* Add two string time values (HH:mm:ss) with javascript
*
* Usage:
* > addTimes('04:20:10', '21:15:10');
* > "25:35:20"
* > addTimes('04:35:10', '21:35:10');
* > "26:10:20"
* > addTimes('30:59', '17:10');
* > "48:09:00"
@stongo
stongo / app.js
Last active January 23, 2024 18:48
Joi validation in a Mongoose model
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});