Skip to content

Instantly share code, notes, and snippets.

const pageScheme = new mongoose.Schema({
pageTitle: {
type: String
},
pageMetaDescription: {
type: String
}
}, { _id: false })
const productScheme = new mongoose.Schema({
@g00dv1n
g00dv1n / index.html
Created November 26, 2017 23:28
Nested Sets Component
<html>
<body>
<script src="./index.js"></script>
</body>
</html>
upstream backend {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name decryptornot.com;
root ~/LockersIdentifier/public;
@g00dv1n
g00dv1n / index.js
Created March 7, 2017 17:21
calculate Moon's ecliptic longitude
var date = new Date();
function normalize(v) {
v = v - Math.floor(v);
if (v < 0) {
v = v + 1;
}
return v;
}