Skip to content

Instantly share code, notes, and snippets.

// Original, before trying something at line 23.
router.get('/timesheets', (req, res) => {
return Promise.try(() => {
return Api_fns.getAllTimesheets();
}).then((timesheets) => {
return Promise.map(timesheets, (timesheet) => {
return Promise.all([
Api_fns.getEmployee_by_id(timesheet['emp_accepted_by']), /* emp completing the task */
const express = require('express')
const app = express()
var bodyParser = require('body-parser')
// knex
const environment = process.env.NODE_ENV || 'development';
const configuration = require('./knexfile')[environment];
const database = require('knex')(configuration);
@pmeaney
pmeaney / sass-main.sass
Created September 26, 2014 17:57
having ruby errors when using SASS
@import sass-mixins
body
width: 100%
height: 100%
background: url("images/background-sun.png")
background-position: 50% 50%
background-size: cover
@pmeaney
pmeaney / sass-main.sass
Created September 26, 2014 17:57
having ruby errors when using SASS
@import sass-mixins
body
width: 100%
height: 100%
background: url("images/background-sun.png")
background-position: 50% 50%
background-size: cover
@pmeaney
pmeaney / sass-main.sass
Created September 26, 2014 17:57
having ruby errors when using SASS
@import sass-mixins
body
width: 100%
height: 100%
background: url("images/background-sun.png")
background-position: 50% 50%
background-size: cover
@pmeaney
pmeaney / sass-main.sass
Created September 26, 2014 17:57
having ruby errors when using SASS
@import sass-mixins
body
width: 100%
height: 100%
background: url("images/background-sun.png")
background-position: 50% 50%
background-size: cover