Skip to content

Instantly share code, notes, and snippets.

View Quixomatic's full-sized avatar
Developing Lantern AI

James Freund Quixomatic

Developing Lantern AI
View GitHub Profile
var function_array = {
// sets the dates for creation of a new document
"setDateTimes" : function (req, res, next) {
var tempDate = new Date().toISOString();
req.body.created_date = tempDate;
req.body.updated_date = tempDate;
next();
},
// sets the created by and updated by for creation of a new document
var convertOptions = function (obj) {
var temp = [];
var tempFunctionArray = [];
// Pre Create
if (obj.preCreate !== undefined) {
temp = obj.preCreate.split(',');
tempFunctionArray = [];
for (var i = 0; i < temp.length; i++) {
tempFunctionArray.push(function_array[temp[i]]);

Floating Title Experiment

A title that gives the appearance of floating in the ocean

Original code base from Manuel Ro's codepen

A Pen by James Freund on CodePen.

License.