Skip to content

Instantly share code, notes, and snippets.

View douglaszaltron's full-sized avatar
👨‍💻
Focusing

Douglas Zaltron douglaszaltron

👨‍💻
Focusing
View GitHub Profile
const models = require('../app/models')
const Sequelize = require('sequelize')
const fs = require('fs')
const path = require('path')
const sequelize = new Sequelize('', '', '', {
host: '',
dialect: 'postgres'
})
@douglaszaltron
douglaszaltron / thinced.js
Created August 31, 2018 20:14 — forked from varmais/thinced.js
Geolocation to Promise wrap example
var getPosition = function (options) {
return new Promise(function (resolve, reject) {
navigator.geolocation.getCurrentPosition(resolve, reject, options);
});
}
getPosition()
.then((position) => {
console.log(position);
})