Skip to content

Instantly share code, notes, and snippets.

View icandid's full-sized avatar
🎯
Focusing

nac icandid

🎯
Focusing
View GitHub Profile
const mongoose = require('mongoose')
const dbURI = 'mongodb://localhost/Loc8r'
mongoose.connect(dbURI, {
useNewUrlParser: true,
useUnifiedTopology: true
})
mongoose.connection.on('connected', () => {
console.log(`Mongoose connected to ${dbURI}`)
@icandid
icandid / countries.php
Created May 9, 2018 01:03 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
@icandid
icandid / getviewportsize.js
Last active August 29, 2015 13:59
get viewportsize
window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth