This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // extracted from here https://www.talkbass.com/threads/fretboard-frequencies.1194275/ | |
| const NOTES = [ | |
| { | |
| string: 'E', | |
| notes: [ | |
| { note: 'E', freq: 330 }, | |
| { note: 'F', freq: 349 }, | |
| { note: 'F#', freq: 370 }, | |
| { note: 'G', freq: 392 }, | |
| { note: 'G#', freq: 415 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Fetches and image from S3, resizes it (if you specify dimensions) and returns it. | |
| * http://yourawsurl/img/myimage.png?s=100x100 | |
| */ | |
| 'use strict'; | |
| const AWS = require('aws-sdk'); | |
| const s3 = new AWS.S3(); | |
| const Sharp = require('sharp'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*** | |
| * This piece of code loads all the files from a routes folder | |
| * For example in an app created via express-generator, it would load all the files | |
| * from the /routes folder | |
| * | |
| * With this script you DON'T have to manually load routes in your app.js anymore | |
| * app.use('/', require('./routes/index')); | |
| * | |
| * USAGE: In your app.js add the following line: | |
| * |