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
| using UnityEngine; | |
| using System.Collections; | |
| public class Spectrum : MonoBehaviour | |
| { | |
| public int numOfSamples = 8192; //Min: 64, Max: 8192 | |
| public AudioSource aSource; | |
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
| import bpy | |
| from bpy import context | |
| from math import sin, cos, radians | |
| primitive_add = bpy.ops.mesh.primitive_solid_add | |
| # get cursor loc - Script Modified by SardiPax | |
| cursor = context.scene.cursor_location | |
| radialdist = 2.0 |
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
| module.exports = function (grunt) { | |
| grunt.registerTask('compileAssets', [ | |
| 'clean:dev', | |
| 'bower:dev', | |
| 'jst:dev', | |
| 'less:dev', | |
| 'copy:dev', | |
| 'copy:bower', //Added | |
| 'remove:bower', //Added | |
| 'coffee:dev' |
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
| /** | |
| * Remove files and folders. | |
| * | |
| * --------------------------------------------------------------- | |
| * | |
| * This grunt task is configured to remove the contents that aren't needed in the .tmp/public of your | |
| * sails project. This is mostly to fix bower component issues. | |
| * | |
| * For usage docs see: | |
| * https://www.npmjs.com/package/grunt-remove |
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
| /** | |
| * Copy files and folders. | |
| * | |
| * --------------------------------------------------------------- | |
| * | |
| * # dev task config | |
| * Copies all directories and files, exept coffescript and less fiels, from the sails | |
| * assets folder into the .tmp/public directory. | |
| * | |
| * # build task config |
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
| module.exports = function(grunt) { | |
| grunt.config.set('bower', { | |
| dev: { | |
| dest: '.tmp/public', | |
| js_dest: '.tmp/public/js', | |
| css_dest: '.tmp/public/styles' | |
| } | |
| }); |
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
| /** | |
| * | |
| * Converts a file into a zip file. | |
| * More details: | |
| * https://github.com/cthackers/adm-zip/wiki/ADM-ZIP-Introduction | |
| * @param filename: string - The target zip filename to use | |
| * @param targetPathWithFilename: string - Must include the file path and name e.g. /home/me/some_picture.png | |
| * @param destPathWithFilename: string - Must include the destination file path and name e.g. /home/me/mynew.zip | |
| * @param comment: string - Something funny | |
| * @return RSVP promise |
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
| createZipAndUploadToS3 | |
| .then( | |
| function(fileData){ | |
| return uploader.createFileRecord(req.user.id, fileStream, fileData); | |
| } | |
| ) | |
| .then( | |
| function(fileRecord){ | |
| return amazon.createSQSWorkQueue(req.user.id, req.param('name'), settings.aws_s3_render_bucket); | |
| } |
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
| uploader.createZipAndUploadToS3(fileStream, settings.aws_s3_project_bucket).then( | |
| function(fileData){ | |
| sails.log('Promised fullfilled.'); | |
| sails.log.info(fileData); | |
| //Create the file record to store details about the file | |
| uploader.createFileRecord(req.user.id, fileStream, fileData).then( | |
| function(fileRecord){ | |
| sails.log('File record saved.'); | |
| sails.log(fileRecord.id); |