This file contains 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
/** | |
* These groupings give positive or negative inflection to the words | |
*/ | |
const cognition = { | |
positive: ['bright', 'pleased', 'kind', 'amused', 'up', 'exposed'], | |
negative: ['disapproval', 'displeasure', 'down'] | |
} | |
This file contains 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
var AWS = require("aws-sdk"); | |
var fs = require('fs'); | |
s3 = new AWS.S3(); | |
// For dev purposes only | |
AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' }); | |
// Read in the file, convert it to base64, store to S3 | |
fs.readFile('del.txt', function (err, data) { | |
if (err) { throw err; } |
This file contains 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
/** | |
* @author be9concepts / https://github.com/be9concepts (10/05/17) | |
*/ | |
// This set of controls performs orbiting, dollying (zooming). | |
// | |
// Orbit - directional keys / mousewheel drag | |
// Zoom - mousewheel scoll | |
// # var controls = new THREE.PivotControls(camera, document.documentElement); |
This file contains 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
var angleBetweenPoints = function(p1, p2, rad){ // vector2, vector2, bool | |
if (!p1 || !p2){ | |
return false; | |
} | |
// format angle in radians | |
var angleRadians = Math.atan2(p2.y - p1.y, p2.x - p1.x); | |
// format angle in degrees | |
var angleDegrees = angleRadians * 180 / Math.PI; | |
// return formatted angle |