| EMT Pipe Size | Rigid Pipe | Take up |
|---|---|---|
| 1/2" (12.7mm) | N/A | 5" (127mm) |
| 3/4" (19.1mm) | 1/2" (12.7mm) | 6" (153mm) |
| 1" (25.4mm) | 3/4" (19.1mm) | 8" (203mm) |
| 1 1/4" (31.8mm) | 1" (25.4mm) | 12" (305mm) |
| // a ‘dog’ object has the value of legs = 4. Create a new var named ‘fido’ as a | |
| // ‘dog’ object. Set fido’s age as ‘3’ and output the number of legs that | |
| // ‘fido’ has. | |
| // | |
| // ES5 | |
| var dog = { | |
| legs: 4 | |
| }; |
This file is the express.js route to handle the 'Contact Me' forum submission. Not sure if the client side code matters but I just send off an axios post call to the express route above, then return success (pop up confirmation) or the error message and display that.
Everything works in development but when I try it on digitalocean I get the error in errorMessage. Could there be something I have done incorrectly with regards to server setup. The tutorials I have used to help me are as follows: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 https://code.lengstorf.com/deploy-nodejs-ssl-digitalocean/#install-nginx
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
| const zipManyWith = curry((fn, ars) => { | |
| const n = Math.min(...map(length, ars)); | |
| return map((i) => { | |
| return fn(...map((as) => as[i], ars)); | |
| }, range(0, n)); | |
| }); |
Whether or not one should embed nested docs or to use the reference by ID and populate later is a great question and has been answered nicely on StackOverflow
| .... | |
| export default { | |
| Query: { | |
| class: () => {...} | |
| }, | |
| classes: async (root, { conditions }, { dataSources, userId }, info) => { | |
| // Check for authentication | |
| ... | |
| const projection = gqlMongoDBProjection(info); | |
| return dataSources.Class.getAllClasses(conditions, projection); |
| ### https://github.com/tjworks/mongoscripts/tree/master/x509 ### | |
| # Prerequisites: | |
| # a. Make sure you have MongoDB Enterprise installed. | |
| # b. Make sure mongod/mongo are in the executable path | |
| # c. Make sure no mongod running on 27017 port, or change the port below | |
| # d. Run this script in a clean directory | |
| ##### Feel free to change following section values #### | |
| # Changing this to include: country, province, city, company | |
| dn_prefix="/C=CN/ST=GD/L=Shenzhen/O=MongoDB China" |