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
<?php | |
$fileName = time().'.mp3'; | |
$fileUrl = $_GET['fileUrl']; | |
$jsonOutputFile = time().'-normalized.json'; | |
file_put_contents($fileName, file_get_contents($fileUrl)); | |
exec('audiowaveform -i '.$fileName.' -o '.$jsonOutputFile.' --pixels-per-second 20 --bits 8'); | |
sleep(5); | |
echo file_get_contents($jsonOutputFile); | |
unlink($fileName); |
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; | |
using System.Collections.Generic; | |
/* | |
http://forum.unity3d.com/threads/adjustable-character-spacing-free-script.288277/ | |
Unity 5.1 and 5.2.2+ compatible | |
Produces an simple tracking/letter-spacing effect on UI Text components. |
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
Path.map("#/activities(/:param1)(/:param2)").to(function(){ | |
// View all activities | |
if(!this.params["param1"]) { | |
activitiesPage(); | |
} | |
// Create a new activity | |
if(this.params["param1"] == 'create') { | |
activitiesCreatePage(); |